Skip to content

Operations on string literals won't be inlined

An example is attached, GHC won't optimize

head "stringliteral"

into

's'
Trac metadata
Trac field Value
Version 7.8.4
Type Bug
TypeOfFailure CompileTimePerformance
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