Skip to content

Commit

Permalink
Merge pull request #47 from idontgetoutmuch/randomgen-annotate
Browse files Browse the repository at this point in the history
Add MINIMAL annotation to RandomGen
  • Loading branch information
idontgetoutmuch authored and curiousleo committed May 19, 2020
2 parents 85a0a4d + 2270866 commit a3b09d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions System/Random.hs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ mutableByteArrayContentsCompat :: MutableByteArray s -> Ptr Word8
{-# DEPRECATED next "Use genWord32[R] or genWord64[R]" #-}
{-# DEPRECATED genRange "Use genWord32[R] or genWord64[R]" #-}
class RandomGen g where
{-# MINIMAL (next,genRange)|((genWord32|genWord32R),(genWord64|genWord64R)) #-}
-- |The 'next' operation returns an 'Int' that is uniformly
-- distributed in the range returned by 'genRange' (including both
-- end points), and a new generator. Using 'next' is inefficient as
Expand Down

0 comments on commit a3b09d2

Please sign in to comment.