@@ -1,3 +1,5 @@
1+{-# LANGUAGE ScopedTypeVariables #-}
1{-# LANGUAGE TypeSynonymInstances #-}
3{-# LANGUAGE TypeSynonymInstances #-}
2{-# LANGUAGE FlexibleInstances #-}
4{-# LANGUAGE FlexibleInstances #-}
3{-# LANGUAGE StandaloneDeriving #-}
5{-# LANGUAGE StandaloneDeriving #-}
@@ -26,10 +28,12 @@ import Control.Applicative
26import Control.Monad.State.Strict
28import Control.Monad.State.Strict
28import Data.IORef
30import Data.IORef
30import Numeric ( showHex )
33import Numeric ( showHex )
32import System.IO
35import System.IO
34type Test = StateT TestState IO
38type Test = StateT TestState IO
@@ -82,3 +86,13 @@ instance Arbitrary DoubleColumnChar where
82liftIOResult :: Testable prop => IO prop -> Property
86liftIOResult :: Testable prop => IO prop -> Property
83liftIOResult = morallyDubiousIOProperty
87liftIOResult = morallyDubiousIOProperty
89+#if __GLASGOW_HASKELL__ <= 701
90+instance Random Word where
92+ let (i :: Int, g') = random g
95+ let (i :: Int, g') = randomR (fromEnum l,fromEnum h) g