[GHC] #13342: Core Lint warnings are emitted on stdout rather than stderr
GHC
ghc-devs at haskell.org
Sun Feb 26 14:30:29 UTC 2017
#13342: Core Lint warnings are emitted on stdout rather than stderr
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner: (none)
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by mpickering):
Here is an easy way to reproduce the problem. You need a compiler compiled
with `-DDEBUG` (build flavour devel2 is easiest) and then
`inplace/bin/ghc-stage2 -dcore-lint A.hs`
{{{
module A where
f :: [()] -> [()]
f (x:xs) = x : f xs
{-# INLINE f #-}
}}}
{{{
[1 of 1] Compiling A ( cltest.hs, cltest.o )
*** Core Lint warnings : in result of Occurrence analysis ***
cltest.hs:4:1: warning:
[RHS of f :: [()] -> [()]]
INLINE binder is (non-rule) loop breaker: f
*** Core Lint warnings : in result of Simplifier ***
cltest.hs:4:1: warning:
[RHS of f :: [()] -> [()]]
INLINE binder is (non-rule) loop breaker: f
*** Core Lint warnings : in result of Occurrence analysis ***
cltest.hs:4:1: warning:
[RHS of f :: [()] -> [()]]
INLINE binder is (non-rule) loop breaker: f
*** Core Lint warnings : in result of Simplifier ***
cltest.hs:4:1: warning:
[RHS of f :: [()] -> [()]]
INLINE binder is (non-rule) loop breaker: f
*** Core Lint warnings : in result of Tidy Core ***
cltest.hs:4:1: warning:
[RHS of f :: [()] -> [()]]
INLINE binder is (non-rule) loop breaker: f
*** Core Lint warnings : in result of CorePrep ***
cltest.hs:4:1: warning:
[RHS of f :: [()] -> [()]]
INLINE binder is (non-rule) loop breaker: f
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13342#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list