Skip to content

Commit

Permalink
Revive a version of haskell#87. Fix warnings and add .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
rrnewton committed Aug 16, 2016
1 parent f368d57 commit fa9232a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
dist
cabal.sandbox.config
6 changes: 3 additions & 3 deletions tests/Properties.hs
Expand Up @@ -3,15 +3,15 @@

module Properties (tests) where

import Control.Applicative ((<$>))
import Control.Applicative as A ((<$>))
import Criterion.Analysis
import Statistics.Types (Sample)
import Test.Framework (Test, testGroup)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Test.QuickCheck
import qualified Data.Vector.Generic as G
import qualified Data.Vector.Unboxed as U

#if __GLASGOW_HASKELL__ >= 704
import Data.Monoid ((<>))
#else
Expand All @@ -23,7 +23,7 @@ infixr 6 <>
#endif

instance (Arbitrary a, U.Unbox a) => Arbitrary (U.Vector a) where
arbitrary = U.fromList <$> arbitrary
arbitrary = U.fromList A.<$> arbitrary
shrink = map U.fromList . shrink . U.toList

outlier_bucketing :: Double -> Sample -> Bool
Expand Down

0 comments on commit fa9232a

Please sign in to comment.