On Sun, Mar 18, 2007 at 05:47:21PM +, C Rodrigues wrote:
Type synonyms aren't applied as I would expect during kind checking.
What's going on here?
type WithList a b = b [a]
type FooPair a b = (b, a - b)
-- error: `WithList' is applied to too many type arguments
ints1 :: WithList
On Mon, 19 Mar 2007, Ian Lynagh wrote:
On Sun, Mar 18, 2007 at 05:47:21PM +, C Rodrigues wrote:
Type synonyms aren't applied as I would expect during kind checking.
What's going on here?
type WithList a b = b [a]
type FooPair a b = (b, a - b)
-- error: `WithList' is applied to
Type synonyms aren't applied as I would expect during kind checking. What's
going on here?
type WithList a b = b [a]
type FooPair a b = (b, a - b)
-- error: `WithList' is applied to too many type arguments
ints1 :: WithList Int FooPair [Int]
ints1 = ([1], id)
-- error: `FooPair' is not
Hello C,
Sunday, March 18, 2007, 8:47:21 PM, you wrote:
Type synonyms aren't applied as I would expect during kind checking. What's
going on here?
type WithList a b = b [a]
type FooPair a b = (b, a - b)
ghc fixes kinds of parameters in 'type' definitions. in your
definition, it fixes