git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix #374
408d74aPhil Freeman
prelude/prelude.purs+5−3
@@ -6,9 +6,6 @@ module Prelude where
6 const :: forall a b. a -> b -> a
6 const :: forall a b. a -> b -> a
7 const a _ = a
7 const a _ = a
8
8
9− on :: forall a b c. (b -> b -> c) -> (a -> b) -> a -> a -> c
10− on f g x y = g x `f` g y
11−
12 asTypeOf :: forall a. a -> a -> a
9 asTypeOf :: forall a. a -> a -> a
13 asTypeOf x _ = x
10 asTypeOf x _ = x
14
11
@@ -392,6 +389,11 @@ module Prelude where
392 (++) :: forall s. (Semigroup s) => s -> s -> s
389 (++) :: forall s. (Semigroup s) => s -> s -> s
393 (++) = (<>)
390 (++) = (<>)
394
391
392+module Data.Function where
393+
394+ on :: forall a b c. (b -> b -> c) -> (a -> b) -> a -> a -> c
395+ on f g x y = g x `f` g y
396+
395module Data.Eq where
397module Data.Eq where
396
398
397 data Ref a = Ref a
399 data Ref a = Ref a