RecordWildCards trigger "Impossible happened" in Lucius
The presence of RecordWildCards
in the following code makes GHC crash with "impossible happened".
#!/usr/bin/env stack
-- stack --resolver lts-7.5 runghc --package shakespeare
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
import Text.Lucius
renderPrintStylesheet = [lucius|p{}|]
main :: IO ()
main = return ()
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.1 for x86_64-unknown-linux):
find_tycon
Block
[]
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Removing RecordWildCards
makes the program compile.
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 |