unsolved constraints, panic during compilation
Code:
import Graphics.X11.Xlib
getWindowRect :: Display -> Window -> IO Rectangle
getWindowRect dpy w = fmap makeRect (getWindowAttributes dpy w)
Error:
# ghc main.hs
[1 of 1] Compiling Main ( main.hs, main.o )
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.2 for x86_64-unknown-linux):
initTc: unsolved constraints
WC {wc_insol =
[W] makeRect_a1LX :: t_a1LW[tau:1] (CHoleCan: makeRect)
[W] getWindowAttributes_a1M2 :: t_a1M1[tau:1] (CHoleCan: getWindowAttributes)}
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Compiler:
ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2
Graphics.X11.Xlib from the ArchHaskell package:
haskell-x11 1.8.x0-1
Frankly, I'm just following the request made by the compiler output "Please report this as a GHC bug" and have no idea what's going on. Hopefully this isn't spurious. Let me know if I can help at all.
Trac metadata
Trac field | Value |
---|---|
Version | 8.2.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |