Skip to content

Commit ea73930

Browse files
committed
Change {} to Unit/unit and export void
1 parent 07d6233 commit ea73930

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prelude/prelude.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module Prelude
77
, ($), (#)
88
, (:), cons
99
, Show, show
10-
, Functor, (<$>)
10+
, Functor, (<$>), void
1111
, Apply, (<*>)
1212
, Applicative, pure, liftA1
1313
, Alternative, empty, (<|>)
@@ -116,8 +116,8 @@ module Prelude
116116
class Functor f where
117117
(<$>) :: forall a b. (a -> b) -> f a -> f b
118118

119-
void :: forall f a. (Functor f) => f a -> f {}
120-
void fa = const {} <$> fa
119+
void :: forall f a. (Functor f) => f a -> f Unit
120+
void fa = const unit <$> fa
121121

122122
infixl 4 <*>
123123

0 commit comments

Comments
 (0)