[GHC] #11672: Poor error message

GHC ghc-devs at haskell.org
Sun Sep 11 23:23:17 UTC 2016


#11672: Poor error message
-------------------------------------+-------------------------------------
        Reporter:  adamgundry        |                Owner:  adamgundry
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.0.1-rc2
  checker)                           |             Keywords:
      Resolution:                    |  ErrorMessages, TypeInType
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  warning at compile-time            |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #11198            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 For reference, here is the current error message in GHC 8.0.1/HEAD:

 {{{
     • Couldn't match type ‘*’ with ‘Symbol’
       Expected type: Proxy ((->) Int Bool)
         Actual type: Proxy (Int -> Bool)
       Use -fprint-explicit-kinds to see the kind arguments
     • In the first argument of ‘f’, namely
         ‘(Proxy :: Proxy (Int -> Bool))’
       In the expression: f (Proxy :: Proxy (Int -> Bool))
       In an equation for ‘f’: f _ = f (Proxy :: Proxy (Int -> Bool))
 }}}

 This seems to address the first and third bullet points above.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11672#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list