Re:Why category theory matters in programming
by tome on Thursday September 14, 2017 @05:37AM
(#15246282)
> Monads should never have escaped Haskell.
They should have put them in a monad.
Re:Why category theory matters in programming
by s4vi0r on Wednesday September 13, 2017 @10:58PM
(#15244690)
Isn't a Monad just the fancy name for a type/structure that implements map and flatMap in a lawful manner?
Re:Why category theory matters in programming
by hota_mazi on Wednesday September 13, 2017 @11:21PM
(#15244768)
Close: the required operations are `flatMap` and bind/pure/point/lift/return/whatever-you-want-to-call-it.
You can derive `map` from these two other functions so it doesn't need to be part of the interface.
Monads should never have escaped Haskell.