Opened 7 years ago
Closed 7 years ago
#4917 closed bug (fixed)
ghc7 does not equate type synonyms under RankNTypes
Reported by: | kyagrd | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Compiler (Type checker) | Version: | 7.0.1 |
Keywords: | Cc: | ||
Operating System: | Linux | Architecture: | x86_64 (amd64) |
Type of failure: | GHC rejects valid program | Test Case: | typecheck/should_compile/T4917 |
Blocked By: | Blocking: | ||
Related Tickets: | Differential Rev(s): | ||
Wiki Page: |
Description (last modified by )
See the source at
http://hpaste.org/43297/ghc7_problem_with_rankntypes_a
It works on ghc6 but not on ghc 7
The type error message is
ghc7rankn.hs:23:20: Couldn't match expected type `forall a'1. x a'1 -> Const (Const b a') a'1' with actual type `forall a'1. x1 a'1 -> Const b a'1' Expected type: (forall a'1. x a'1 -> Const (Const b a') a'1) -> f x a -> Const (Const b a') a Actual type: (forall a'1. x1 a'1 -> Const b a'1) -> f1 x1 a1 -> Const b a1 In the first argument of `mcata', namely `f' In the first argument of `f', namely `(mcata f)'
Attachments (1)
Change History (4)
Changed 7 years ago by
Attachment: | ghc7rankn.hs added |
---|
comment:1 Changed 7 years ago by
Component: | Compiler → Compiler (Type checker) |
---|
comment:2 Changed 7 years ago by
Description: | modified (diff) |
---|---|
Status: | new → merge |
Test Case: | → typecheck/should_compile/T4917 |
Note: See
TracTickets for help on using
tickets.
Very good point, thank you. Fixed by
Ian, please merge.
Simon