Skip to content

GADT record with polytype argument causes irrefutable pattern failure in basicTypes/MkId.lhs

data GADTRecordPoly a n where                                                                                                                                     
    G {val :: a} :: GADTRecordPoly a (forall n . n)                                                                                                         

causes

  • ** Exception: basicTypes/MkId.lhs:642:8-70: Irrefutable pattern failed for pattern Maybes.Succeeded refinement

when loaded in GHCi

Trac metadata
Trac field Value
Version 6.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information