Opened 12 years ago

Closed 12 years ago

Last modified 48 years ago

#416 closed bug (Fixed)

instance of synonym

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: Compiler (Type checker) Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


The following non-Haskell 98 instance is accepted even
without -fglasgow-exts:

type Foo = Double
instance Bounded Foo

The error message quotes the relevant part of the
Report (The instance type must be of form (T a b c)
where T is not a synonym, and a,b,c are distinct type
variables) and the code expresses this, but it seems
that type synonyms have already been expanded, so only
non-saturated ones are left at this stage.

Change History (1)

comment:1 Changed 12 years ago by simonpj

Status: assignedclosed
Logged In: YES 

Good point. Now fixed, thank you

tcfail139 tests it.
Note: See TracTickets for help on using tickets.