Trying to declare an infix newtype yields ghc panic
The following code:
newtype (f <.> g) a = Compose (f (g a))
makes GHC output the following on the command line:
ghc-6.6: panic! (the 'impossible' happened)
(GHC version 6.6 for i386-unknown-linux):
MkIface.addAvail <.>{tv} main:Utils.Compose{d rCo}
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Trac metadata
Trac field | Value |
---|---|
Version | 6.6 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | benja.fallenstein@gmail.com |
Operating system | |
Architecture |