git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #455 from pelotom/patch-1
4c7733cPhil Freeman
prelude/prelude.purs+4−1
@@ -7,7 +7,7 @@ module Prelude
7 , ($), (#)
7 , ($), (#)
8 , (:), cons
8 , (:), cons
9 , Show, show
9 , Show, show
10− , Functor, (<$>)
10+ , Functor, (<$>), void
11 , Apply, (<*>)
11 , Apply, (<*>)
12 , Applicative, pure, liftA1
12 , Applicative, pure, liftA1
13 , Alternative, empty, (<|>)
13 , Alternative, empty, (<|>)
@@ -116,6 +116,9 @@ module Prelude
116 class Functor f where
116 class Functor f where
117 (<$>) :: forall a b. (a -> b) -> f a -> f b
117 (<$>) :: forall a b. (a -> b) -> f a -> f b
118
118
119+ void :: forall f a. (Functor f) => f a -> f Unit
120+ void fa = const unit <$> fa
121+
119 infixl 4 <*>
122 infixl 4 <*>
120
123
121 class (Functor f) <= Apply f where
124 class (Functor f) <= Apply f where