[GHC] #14612: unsolved constraints, panic during compilation
GHC
ghc-devs at haskell.org
Tue Dec 26 22:57:14 UTC 2017
#14612: unsolved constraints, panic during compilation
-------------------------------------+-------------------------------------
Reporter: msk | Owner: (none)
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.2
Resolution: duplicate | Keywords:
Operating System: Linux | Architecture: x86_64
Type of failure: Compile-time | (amd64)
crash or panic | Test Case:
Blocked By: | Blocking:
Related Tickets: #13106 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by RyanGlScott):
* status: new => closed
* resolution: => duplicate
* related: => #13106
Comment:
Yep, this is a duplicate of #13160. Here's the (proper) error you get on
GHC 8.2.2:
{{{
$ /opt/ghc/8.2.2/bin/ghci Bug.hs
GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /home/rgscott/.ghci
[1 of 1] Compiling Main ( Bug.hs, interpreted )
Bug.hs:4:28: error:
Variable not in scope: makeRect :: a0 -> Rectangle
|
4 | getWindowRect dpy w = fmap makeRect (getWindowAttributes dpy w)
| ^^^^^^^^
Bug.hs:4:38: error:
• Variable not in scope:
getWindowAttributes :: Display -> Window -> IO a0
• Perhaps you meant ‘setLineAttributes’ (imported from
Graphics.X11.Xlib)
|
4 | getWindowRect dpy w = fmap makeRect (getWindowAttributes dpy w)
| ^^^^^^^^^^^^^^^^^^^
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14612#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list