[GHC] #13388: Caret diagnostics interact badly with hsc2hs

GHC ghc-devs at haskell.org
Tue Mar 7 15:42:09 UTC 2017


#13388: Caret diagnostics interact badly with hsc2hs
-------------------------------------+-------------------------------------
           Reporter:  bgamari        |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:  8.2.1
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Incorrect
  Unknown/Multiple                   |  error/warning at compile-time
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 I saw this recently,
 {{{
 libraries\Win32\Graphics\Win32\Window.hsc:188:46: error:
     Not in scope: type constructor or class `Int32'
     |
 188 | cW_USEDEFAULT = fromIntegral (#{const CW_USEDEFAULT} :: Int32)
     |                                              ^^^^^
 }}}

 Clearly the caret is pointing to the wrong place in the line. Note that
 the file in question is a `hsc2hs` file.

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


More information about the ghc-tickets mailing list