[ ghc-Bugs-1116210 ] GADT constructor constraints ignored

SourceForge.net noreply at sourceforge.net
Fri Feb 4 09:28:43 EST 2005


Bugs item #1116210, was opened at 2005-02-04 09:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1116210&group_id=8032

Category: Compiler (Type checker)
Group: 6.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Wolfram Kahl (wolfram_kahl)
Assigned to: Nobody/Anonymous (nobody)
Summary: GADT constructor constraints ignored

Initial Comment:
Class constraints on GADT constructore appear to be
ignored.

I tried:

data Expr :: * -> * where
  Const :: Show a => a -> Expr a
  Apply :: Fct a b -> Expr a -> Expr b

and there is no way to define the expected constraint-less
Show instance --- for details, see Expr0.lhs.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1116210&group_id=8032



More information about the Glasgow-haskell-bugs mailing list