We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a43b772 + ea73930 commit 4c7733cCopy full SHA for 4c7733c
prelude/prelude.purs
@@ -7,7 +7,7 @@ module Prelude
7
, ($), (#)
8
, (:), cons
9
, Show, show
10
- , Functor, (<$>)
+ , Functor, (<$>), void
11
, Apply, (<*>)
12
, Applicative, pure, liftA1
13
, Alternative, empty, (<|>)
@@ -116,6 +116,9 @@ module Prelude
116
class Functor f where
117
(<$>) :: forall a b. (a -> b) -> f a -> f b
118
119
+ void :: forall f a. (Functor f) => f a -> f Unit
120
+ void fa = const unit <$> fa
121
+
122
infixl 4 <*>
123
124
class (Functor f) <= Apply f where
0 commit comments