Opened 9 years ago

Closed 9 years ago

Last modified 44 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: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

ross@soi.city.ac.uk

Change History (1)

comment:1 Changed 9 years ago by simonpj

  • Status changed from assigned to closed
Logged In: YES 
user_id=50165

Good point. Now fixed, thank you

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