[Haskell-cafe] type constructor confusion

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Thu Jun 19 18:14:33 EDT 2008

On 2008 Jun 19, at 12:28, Stephen Howard wrote:

> Cool, "Either" looks like what I'm looking for.  I'll have to look  
> into that.  What do I do about the fact that both HttpRequest and  
> HttpResponse have some of the same named fields (headers and body,  
> for example).  Seems a pain to drop them into separate modules just  
> so I can keep the naming conventions consistent.

IIRC as long as they have the same types you can use them in both.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list