Browse Source

Fix (>>>) instead of (&) for Haskell Now!

haskell-the-hard-way
parent
commit
fe9bc35b88
Signed by: yogsototh GPG Key ID: 7B19A4C650D59646
  1. 4
      src/posts/0010-Haskell-Now/index.org

4
src/posts/0010-Haskell-Now/index.org

@ -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…
Cancel
Save