[Haskell-cafe] type constructor confusion

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Wed Jun 18 15:38:15 EDT 2008

On Jun 18, 2008, at 15:31 , Stephen Howard wrote:

> HttpMessage.hs:36:20: Not in scope: type constructor or class  
> `HttpRequest'
> The troublesome line is the definition of the cookie function at  
> the end of the code.  I've made

Right.  "HttpRequest" is a data constructor associated with the type  
constructor "HttpMessage".
(Data constructors are effectively functions; you used it in the  
context of a type, not a function name.)

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