Skip to content

Core lint error while compiling GHC.IO.Handle

While compiling GHC.IO.Handle with -g3 -dcore-lint -O I encountered the following,

*** Core Lint errors : in result of Simplifier ***
<no location info>: warning:
    [RHS of w1_s8qY :: Addr#]
    Recursive or top-level binder has strict demand info: w1_s8qY
    Binder's demand info: <L,U>

The binding in question is,

w1_s8qY :: Addr#
[LclId,
 Unf=Unf{Src=<vanilla>, TopLvl=False, Value=True, ConLike=True,
         WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 20 0}]
w1_s8qY
  = src<libraries/base/GHC/IO/Handle.hs:745:37-50>
    src<libraries/base/GHC/IO/Handle.hs:739:9-10> "}"#
Trac metadata
Trac field Value
Version 8.2.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information