[Haskell-cafe] data PLZ a

Andrew Coppin andrewcoppin at btinternet.com
Tue May 29 16:39:26 EDT 2007


Donald Bruce Stewart wrote:
> We got the names wrong!
>
>     data PLZ a = AWSUM_THX a | O_NOES String
>
>     instance Monad PLZ where
>         return            = AWSUM_THX
>         fail              = O_NOES
>         O_NOES s    >>= _ = O_NOES s
>         AWSUM_THX x >>= f = f x
>
> Thanks to mauke on #haskell.
>   

OMG... Genius!



More information about the Haskell-Cafe mailing list