git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #350 from garyb/astypeof

Add asTypeOf to prelude

commit2fe0a83fa85117e71b9e2583cee9ff5ec340bca3 authorPhil Freeman <paf31@cantab.net> dateSat 5 Apr 2014, 09:17 (13 years ago) parent883c6b1beb9bd8
1 file changed+3
prelude/prelude.purs+3
prelude/prelude.purs+3
@@ -8,6 +8,9 @@ module Prelude where
88
99 on :: forall a b c. (b -> b -> c) -> (a -> b) -> a -> a -> c
1010 on f g x y = g x `f` g y
11+
12+ asTypeOf :: forall a. a -> a -> a
13+ asTypeOf x _ = x
1114
1215 infixr 9 >>>
1316 infixr 9 <<<