Opened 10 years ago

Closed 10 years ago

Last modified 46 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: 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.

[email protected]

Change History (1)

comment:1 Changed 10 years ago by simonpj

  • Status changed from assigned to closed
Logged In: YES 

Good point. Now fixed, thank you

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