Skip to content

Commit

Permalink
Merge pull request #80 from purescript/lazy
Browse files Browse the repository at this point in the history
Add `Lazy` instance for `Gen`
  • Loading branch information
garyb authored Jun 18, 2017
2 parents 56eb222 + 6235ecc commit ced9e99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Test/QuickCheck/Gen.purs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import Control.Monad.Rec.Class (class MonadRec, Step(..), tailRecM)
import Control.Monad.State (State, runState, evalState)
import Control.Monad.State.Class (state, modify)
import Control.Monad.Gen.Class (class MonadGen)
import Control.Lazy (class Lazy)

import Data.Array ((!!), length, zip, sortBy)
import Data.Enum (class BoundedEnum, fromEnum, toEnum)
Expand Down Expand Up @@ -76,6 +77,7 @@ derive newtype instance bindGen :: Bind Gen
derive newtype instance monadGen :: Monad Gen
derive newtype instance altGen :: Alt Gen
derive newtype instance monadRecGen :: MonadRec Gen
derive newtype instance lazyGen :: Lazy (Gen a)

instance monadGenGen :: MonadGen Gen where
chooseInt = chooseInt
Expand Down

0 comments on commit ced9e99

Please sign in to comment.