git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Add `void` function
commit07d6233e156f673f0511dd6e56ef5ba92eeb9757 authorTom Crockett <pelotom@gmail.com> dateSat 28 Jun 2014, 12:59 (12 years ago) parenta43b772
1 file changed+3
prelude/prelude.purs+3
prelude/prelude.purs+3
@@ -116,6 +116,9 @@ 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
121+
119122 infixl 4 <*>
120123
121124 class (Functor f) <= Apply f where