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
|
#+end_src
|
||||||
|
|
||||||
Those operation constructed with the bind operator ~(>>=)~ are a
|
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:
|
If you can look at the type this become visible, simply compare:
|
||||||
|
|
||||||
#+begin_src haskell
|
#+begin_src haskell
|
||||||
f :: a -> b
|
f :: a -> b
|
||||||
g :: b -> c
|
g :: b -> c
|
||||||
g . f :: a -> c
|
g . f :: a -> c
|
||||||
f & g :: a -> c
|
f >>> g :: a -> c
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
with
|
with
|
||||||
|
|
Loading…
Reference in New Issue