[GHC] #3714: Improve error message if an associated family
declaration has excess parameters
Stefan Holdermans
stefan at cs.uu.nl
Wed Dec 9 03:42:04 EST 2009
Simon,
Regarding distinguishing between type indices and parameters, you
suggested:
> type family T3 f !e :: * -- The ! indicates a type parameter
> (not
> an index)
I'd rather have indices, rather than parameters, explicated by mean of
syntax. This seems more consistent with ordinary type declarations.
On paper, I often find myself writing
type family T3 {|f|} e :: * .
(A remnant of overexposure to generic programming, I guess.)
Cheers,
Stefan
More information about the Glasgow-haskell-bugs
mailing list