File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4242
4343 replicateM :: forall m a. (Monad m) => Number -> m a -> m [a]
4444
45- unless :: forall m. (Monad m) => Boolean -> m { } -> m { }
45+ unless :: forall m. (Monad m) => Boolean -> m Unit -> m Unit
4646
47- when :: forall m. (Monad m) => Boolean -> m { } -> m { }
47+ when :: forall m. (Monad m) => Boolean -> m Unit -> m Unit
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ foldM :: forall m a b. (Monad m) => (a -> b -> m a) -> a -> [b] -> m a
1111foldM _ a [] = return a
1212foldM f a (b:bs) = f a b >>= \a' -> foldM f a' bs
1313
14- when :: forall m . (Monad m ) => Boolean -> m { } -> m { }
14+ when :: forall m . (Monad m ) => Boolean -> m Unit -> m Unit
1515when true m = m
16- when false _ = return {}
16+ when false _ = return unit
1717
18- unless :: forall m . (Monad m ) => Boolean -> m { } -> m { }
18+ unless :: forall m . (Monad m ) => Boolean -> m Unit -> m Unit
1919unless false m = m
20- unless true _ = return {}
20+ unless true _ = return unit
You can’t perform that action at this time.
0 commit comments