Skip to content

Panics when making a quotation as pattern synonym

$ ghci -XPatternSynonyms -XViewPatterns -ignore-dot-ghci
GHCi, version 8.0.1: http://www.haskell.org/ghc/  :? for help
Prelude> :m + Language.Haskell.TH
Prelude Language.Haskell.TH> pattern A :: ExpQ; pattern A <- (undefined -> ()) where A = undefined
ghc: panic! (the 'impossible' happened)
  (GHC version 8.0.1 for x86_64-unknown-linux):
        nameModule system $dIP_a4HS

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Prelude Language.Haskell.TH> 

should we be able to use quotations that are pattern synonyms? I have no use for this.

Trac metadata
Trac field Value
Version 8.0.1
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