Skip to content

GHC 8.2.1 allows bang patterns in let-bindings without -XBangPatterns

Bang patterns occurring in let-bindings are allowed even if -XBangPatterns extension is not enabled.

-- Compile error in 8.0.2
-- Compiles in 8.2.1 and 8.2.2
main = print (let !x = 1 + 2 in x)
-- Compile error in all of 8.0.2, 8.2.1, and 8.2.2
main = print (let f !x !y = x + y in f 1 2)
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