Skip to content

Commit ced9e99

Browse files
authored
Merge pull request #80 from purescript/lazy
Add `Lazy` instance for `Gen`
2 parents 56eb222 + 6235ecc commit ced9e99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Test/QuickCheck/Gen.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import Control.Monad.Rec.Class (class MonadRec, Step(..), tailRecM)
3939
import Control.Monad.State (State, runState, evalState)
4040
import Control.Monad.State.Class (state, modify)
4141
import Control.Monad.Gen.Class (class MonadGen)
42+
import Control.Lazy (class Lazy)
4243

4344
import Data.Array ((!!), length, zip, sortBy)
4445
import Data.Enum (class BoundedEnum, fromEnum, toEnum)
@@ -76,6 +77,7 @@ derive newtype instance bindGen :: Bind Gen
7677
derive newtype instance monadGen :: Monad Gen
7778
derive newtype instance altGen :: Alt Gen
7879
derive newtype instance monadRecGen :: MonadRec Gen
80+
derive newtype instance lazyGen :: Lazy (Gen a)
7981

8082
instance monadGenGen :: MonadGen Gen where
8183
chooseInt = chooseInt

0 commit comments

Comments
 (0)