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 42
42
43
43
replicateM :: forall m a. (Monad m) => Number -> m a -> m [a]
44
44
45
- unless :: forall m. (Monad m) => Boolean -> m { } -> m { }
45
+ unless :: forall m. (Monad m) => Boolean -> m Unit -> m Unit
46
46
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
11
11
foldM _ a [] = return a
12
12
foldM f a (b:bs) = f a b >>= \a' -> foldM f a' bs
13
13
14
- when :: forall m . (Monad m ) => Boolean -> m { } -> m { }
14
+ when :: forall m . (Monad m ) => Boolean -> m Unit -> m Unit
15
15
when true m = m
16
- when false _ = return {}
16
+ when false _ = return unit
17
17
18
- unless :: forall m . (Monad m ) => Boolean -> m { } -> m { }
18
+ unless :: forall m . (Monad m ) => Boolean -> m Unit -> m Unit
19
19
unless false m = m
20
- unless true _ = return {}
20
+ unless true _ = return unit
You can’t perform that action at this time.
0 commit comments