[Haskell-cafe] Re: Are there standard idioms for lazy,
pure error handling?
nicolas.pouillard at gmail.com
Mon Dec 7 14:55:52 EST 2009
Excerpts from Henning Thielemann's message of Mon Dec 07 20:36:27 +0100 2009:
> For practical purposes I think Train should have swapped type parameters
> in order to make Functor act on the type of the list elements.
> data Train b a = Wagon a (Train b a)
> | Loco b
The functor on the Loco/Caboose makes sense too and swapping the arguments
is less natural to read.
More information about the Haskell-Cafe