Caret diagnostics interact badly with hsc2hs
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.
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | Rufflewind |
Operating system | |
Architecture |