More than a couple of people have asked me to talk about what it's like to program in Haskell. As a first attempt, here's a little window into the experience via something incredibly banal, but IMO hugely motivating.
-
-
Well, the whole story was about my discovering <|> as a replacement for my own Maybe-only impl I haven't used it with Either, but surely will after last night
-
There is no Alternative for Either because there is no empty. Have a look at Data.Functor.Alt.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
), popped back a set of results, the second of which is exactly equivalent to my `orElse`:
<|>, defined in Control.Applicative: