diff options
Diffstat (limited to 'packages/tests/src/Numeric/LinearAlgebra/Tests')
-rw-r--r-- | packages/tests/src/Numeric/LinearAlgebra/Tests/Instances.hs | 6 | ||||
-rw-r--r-- | packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/packages/tests/src/Numeric/LinearAlgebra/Tests/Instances.hs b/packages/tests/src/Numeric/LinearAlgebra/Tests/Instances.hs index 37f7da2..f0bddd0 100644 --- a/packages/tests/src/Numeric/LinearAlgebra/Tests/Instances.hs +++ b/packages/tests/src/Numeric/LinearAlgebra/Tests/Instances.hs | |||
@@ -1,4 +1,4 @@ | |||
1 | {-# LANGUAGE FlexibleContexts, UndecidableInstances, FlexibleInstances, ScopedTypeVariables #-} | 1 | {-# LANGUAGE CPP, FlexibleContexts, UndecidableInstances, FlexibleInstances, ScopedTypeVariables #-} |
2 | ----------------------------------------------------------------------------- | 2 | ----------------------------------------------------------------------------- |
3 | {- | | 3 | {- | |
4 | Module : Numeric.LinearAlgebra.Tests.Instances | 4 | Module : Numeric.LinearAlgebra.Tests.Instances |
@@ -32,7 +32,9 @@ import Test.QuickCheck(Arbitrary,arbitrary,choose,vector,sized,shrink) | |||
32 | import GHC.TypeLits | 32 | import GHC.TypeLits |
33 | import Data.Proxy (Proxy(..)) | 33 | import Data.Proxy (Proxy(..)) |
34 | import qualified Numeric.LinearAlgebra.Static as Static | 34 | import qualified Numeric.LinearAlgebra.Static as Static |
35 | 35 | #if MIN_VERSION_base(4,11,0) | |
36 | import Prelude hiding ((<>)) | ||
37 | #endif | ||
36 | 38 | ||
37 | shrinkListElementwise :: (Arbitrary a) => [a] -> [[a]] | 39 | shrinkListElementwise :: (Arbitrary a) => [a] -> [[a]] |
38 | shrinkListElementwise [] = [] | 40 | shrinkListElementwise [] = [] |
diff --git a/packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs b/packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs index 0de9f37..e3a6242 100644 --- a/packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs +++ b/packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | {-# LANGUAGE FlexibleContexts #-} | 2 | {-# LANGUAGE FlexibleContexts #-} |
2 | {-# LANGUAGE TypeFamilies #-} | 3 | {-# LANGUAGE TypeFamilies #-} |
3 | {-# LANGUAGE DataKinds #-} | 4 | {-# LANGUAGE DataKinds #-} |
@@ -58,6 +59,9 @@ import Data.Binary | |||
58 | import Data.Binary.Get (runGet) | 59 | import Data.Binary.Get (runGet) |
59 | import Data.Either (isLeft) | 60 | import Data.Either (isLeft) |
60 | import Debug.Trace (traceShowId) | 61 | import Debug.Trace (traceShowId) |
62 | #if MIN_VERSION_base(4,11,0) | ||
63 | import Prelude hiding ((<>)) | ||
64 | #endif | ||
61 | 65 | ||
62 | (~=) :: Double -> Double -> Bool | 66 | (~=) :: Double -> Double -> Bool |
63 | a ~= b = abs (a - b) < 1e-10 | 67 | a ~= b = abs (a - b) < 1e-10 |