
16 Apr
2013
16 Apr
'13
2:48 p.m.
On 16 April 2013 16:12, Alejandro Serrano Mena
Hi, First of all, let me say that this work on matchers is really useful :)
Following Roman advice, I'm trying to find a more principled approach that could be useful for this library. It seems that "Match" could easily be converted to Either and thus made into Functor, Applicative, Alternative and Monad. That would allow to write things like:
Have you seen Ralf Hinze, Johan Jeuring and Andreas Loeh's paper on Contracts? The found their Contract datatype formed a comonad - at the time this seemed to be one of the few (non-synthetic) uses of comonads.