The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: fa.haskell
From: Philippa Cowderoy <fli...@flippac.org>
Date: Sun, 17 Feb 2008 13:32:53 UTC
Local: Sun, Feb 17 2008 8:32 am
Subject: Re: [Haskell-cafe] Doubting Haskell
On Sun, 17 Feb 2008, Anton van Straaten wrote: It's Haskell's standard sum type, with a pile of instances already > Is there a benefit to reusing a generic Either type for this sort of thing? > For code comprehensibility, wouldn't it be better to use more specific > names? If I want car and cdr, I know where to find it. written. There's an instance of MonadError such that you only need to see an Either when you run the computation for example (and then you get an Either whatever the actual error monad was!). If we had appropriate language extensions to map an isomorphic Success/Failure type onto it then I'd probably use them - as it is, the level of inertia around Either is great enough to mean that's only worth doing if I'm expecting to roll a third constructor in at some point. That said, generally I'll wrap it up pretty fast if I have to handle -- "I think you mean Philippa. I believe Phillipa is the one from an You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||