[GHC] #10021: Add "Error:" prefix for error-messages
GHC
ghc-devs at haskell.org
Mon Jan 26 14:20:37 UTC 2015
#10021: Add "Error:" prefix for error-messages
-------------------------------------+-------------------------------------
Reporter: k-bx | Owner:
Type: feature | Status: new
request | Milestone: 7.12.1
Priority: normal | Version: 7.8.4
Component: Compiler | Operating System: Unknown/Multiple
Keywords: | Type of failure: None/Unknown
Architecture: | Blocked By:
Unknown/Multiple | Related Tickets:
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Similar to what we have for "Warning:".
E.g., we have:
{{{
➜ cat test.hs
main = putStrLn "Hello!"
➜ ghc --make -fforce-recomp -Wall ./test.hs
[1 of 1] Compiling Main ( test.hs, test.o )
test.hs:1:1: Warning:
Top-level binding with no type signature: main :: IO ()
Linking test ...
➜ cat test2.hs
main = foo
➜ ghc --make -fforce-recomp -Wall ./test2.hs
[1 of 1] Compiling Main ( test2.hs, test2.o )
test2.hs:1:8: Not in scope: ‘foo’
}}}
And I propose having:
{{{
➜ cat test2.hs
main = foo
➜ ghc --make -fforce-recomp -Wall ./test2.hs
[1 of 1] Compiling Main ( test2.hs, test2.o )
test2.hs:1:8: Error: Not in scope: ‘foo’
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10021>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list