git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Change `{}` to `Unit/unit` and export `void`
commitea73930211282c3d573b2acb2ca7b435c7dd67d2 authorTom Crockett <pelotom@gmail.com> dateSat 28 Jun 2014, 13:05 (12 years ago) parent07d6233
1 file changed+3−3
prelude/prelude.purs+3−3
prelude/prelude.purs+3−3
@@ -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