git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix typo
commita4c203ab0f7afe7fb3ba4f358451274ad7989d09 authorPhil Freeman <paf31@cantab.net> dateMon 2 Mar 2015, 14:41 (12 years ago) parent5fbe02f
2 files changed+4−2
prelude/README.md+2−1 prelude/prelude.purs+2−1
prelude/README.md+2−1
@@ -883,7 +883,8 @@ The `on` function is used to change the domain of a binary operator.
883883For example, given a function `height :: Person -> Number`, we can create a function which compares two people by height:
884884
885885```purescript
886−taller :: (>) `on` height
886+taller :: Person -> Person -> Boolean
887+taller = (>) `on` height
887888```
888889
889890
prelude/prelude.purs+2−1
@@ -871,7 +871,8 @@ module Data.Function where
871871 -- | For example, given a function `height :: Person -> Number`, we can create a function which compares two people by height:
872872 -- |
873873 -- | ```purescript
874− -- | taller :: (>) `on` height
874+ -- | taller :: Person -> Person -> Boolean
875+ -- | taller = (>) `on` height
875876 -- | ```
876877 -- |
877878 on :: forall a b c. (b -> b -> c) -> (a -> b) -> a -> a -> c