1
0
mirror of https://github.com/redelmann/scat synced 2025-01-09 14:19:52 +01:00

fix for base 4.11

This commit is contained in:
Michele Guerini Rocco 2018-10-07 21:05:57 +02:00
parent ac98989fd5
commit 429f22944b
Signed by: rnhmjoj
GPG Key ID: 91BE884FBA4B591A

View File

@ -71,9 +71,11 @@ instance Monad Builder where
let (n', v) = runBuilder x n
in runBuilder (f v) n'
instance Semigroup a => Semigroup (Builder a) where
a <> b = (<>) <$> a <*> b
instance Monoid a => Monoid (Builder a) where
mempty = return mempty
mappend a b = mappend <$> a <*> b
-- | Returns a positive integer less than `i`.
lessThan :: Integral a => a -> Builder a