#1465: Type errors due to different package versions are a bit cryptic
--------------------------------------+-------------------------------------
  Reporter:  guest                    |          Owner:         
      Type:  feature request          |         Status:  new    
  Priority:  normal                   |      Milestone:         
 Component:  Compiler (Type checker)  |        Version:  6.6.1  
  Severity:  normal                   |       Keywords:         
Difficulty:  Easy (1 hr)              |             Os:  Unknown
  Testcase:                           |   Architecture:  Unknown
--------------------------------------+-------------------------------------
Users of xmonad who've compiled one dependent library against X11 1.2, and
 then update X11, and attempt to recompile xmonad against the new X11
 1.2.2, get a cryptic type error:

 {{{
     Couldn't match expected type `Graphics.X11.Xlib.Types.Display'
               against inferred type `Display'
 }}}

 Perhaps non-local types should be printed with their package name and
 version, which would clarify this error. Something like:

 {{{
     Couldn't match expected type `X11-1.2:
 Graphics.X11.Xlib.Types.Display'
               against inferred type `X11-1.2.2: Display'
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1465>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to