Skip to content

Commit

Permalink
[Bodigrim#128] Add {-# OVERLAPPABLE #-} pragma to `instance Integra…
Browse files Browse the repository at this point in the history
…l a => Euclidean a`
  • Loading branch information
rockbmb committed Aug 31, 2018
1 parent 241a204 commit bb0bcf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Math/NumberTheory/Euclidean.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ div x y = fst (divMod x y)
mod :: Euclidean a => a -> a -> a
mod x y = snd (divMod x y)

instance Integral a => Euclidean a where
instance {-# OVERLAPPABLE #-} Integral a => Euclidean a where
quotRem = P.quotRem
divMod = P.divMod

0 comments on commit bb0bcf9

Please sign in to comment.