git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Add asTypeOf to prelude
commitbeb9bd8b6c988bd4294c6e685612bcd6bc182e53 authorGary Burgess <gary.burgess@gmail.com> dateSat 5 Apr 2014, 12:48 (13 years ago) parent883c6b1
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 <<<