Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Jul 8, 2024
1 parent ba97548 commit 8bbf5e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Math/NumberTheory/ArithmeticFunctions/Inverse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module Math.NumberTheory.ArithmeticFunctions.Inverse
asSetOfPreimages
) where

import Prelude hiding (rem, quot)
import Prelude hiding (rem, quot, Foldable(..))
import Data.Bits (Bits)
import Data.Euclidean
import Data.Foldable
Expand Down
3 changes: 2 additions & 1 deletion Math/NumberTheory/Primes/Factorisation/Montgomery.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ module Math.NumberTheory.Primes.Factorisation.Montgomery
, findParms
) where

import Prelude hiding (Foldable(..))
import Control.Arrow
import Control.Monad.Trans.State.Lazy
import Data.Array.Base (bounds, unsafeAt)
import Data.Bits
import Data.Foldable
import Data.IntMap (IntMap)
import qualified Data.IntMap as IM
import Data.List (foldl')
import Data.Maybe
import Data.Mod
import Data.Proxy
Expand Down
3 changes: 2 additions & 1 deletion Math/NumberTheory/Primes/Testing/Certified.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ module Math.NumberTheory.Primes.Testing.Certified
( isCertifiedPrime
) where

import Data.List (foldl')
import Prelude hiding (Foldable(..))
import Data.Bits ((.&.))
import Data.Foldable
import Data.Mod
import Data.Proxy
import GHC.Num.Integer
Expand Down
4 changes: 3 additions & 1 deletion benchmark/Math/NumberTheory/PrimesBench.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
{-# OPTIONS_GHC -Wno-type-defaults #-}
{-# OPTIONS_GHC -Wno-x-partial #-}
{-# OPTIONS_GHC -Wno-unrecognised-warning-flags #-}

module Math.NumberTheory.PrimesBench
( benchSuite
Expand Down

0 comments on commit 8bbf5e9

Please sign in to comment.