Fix (>>>) instead of (&) for Haskell Now!
This commit is contained in:
parent
bd111cf45c
commit
fe9bc35b88
|
@ -3203,14 +3203,14 @@ g <=< f = f >=> g
|
|||
#+end_src
|
||||
|
||||
Those operation constructed with the bind operator ~(>>=)~ are a
|
||||
generalisation of ~(.)~ and ~(&)~ where ~f & g = g . f~.
|
||||
generalisation of ~(.)~ and ~(>>>)~ where ~f >>> g = g . f~.
|
||||
If you can look at the type this become visible, simply compare:
|
||||
|
||||
#+begin_src haskell
|
||||
f :: a -> b
|
||||
g :: b -> c
|
||||
g . f :: a -> c
|
||||
f & g :: a -> c
|
||||
f >>> g :: a -> c
|
||||
#+end_src
|
||||
|
||||
with
|
||||
|
|
Loading…
Reference in a new issue