on master help sign in
Do not enable -XBangPatterns by default
e5d197fmrkkrp
data/examples/declaration/value/function/lambda-single-line-out.hs+2
@@ -1,3 +1,5 @@
1+{-# LANGUAGE BangPatterns #-}
2+
1foo :: a -> a -> a
3foo :: a -> a -> a
2foo x = \y -> x
4foo x = \y -> x
3
5
data/examples/declaration/value/function/lambda-single-line.hs+2
@@ -1,3 +1,5 @@
1+{-# LANGUAGE BangPatterns #-}
2+
1foo :: a -> a -> a
3foo :: a -> a -> a
2foo x = \y -> x
4foo x = \y -> x
3
5
data/examples/declaration/value/function/pattern/strictness-out.hs+2
@@ -1,3 +1,5 @@
1+{-# LANGUAGE BangPatterns #-}
2+
1!a = ()
3!a = ()
2
4
3~b = ()
5~b = ()
data/examples/declaration/value/function/pattern/strictness.hs+2
@@ -1,2 +1,4 @@
1+{-# LANGUAGE BangPatterns #-}
2+
1!a = ()
3!a = ()
2~b = ()
4~b = ()
src/Ormolu/Parser.hs+1
@@ -76,6 +76,7 @@ manualExts :: [Extension]
76manualExts =
76manualExts =
77 [ Arrows -- steals proc
77 [ Arrows -- steals proc
78 , Cpp -- forbidden
78 , Cpp -- forbidden
79+ , BangPatterns -- makes certain patterns with ! fail
79 , PatternSynonyms -- steals the pattern keyword
80 , PatternSynonyms -- steals the pattern keyword
80 , RecursiveDo -- steals the rec keyword
81 , RecursiveDo -- steals the rec keyword
81 , StaticPointers -- steals static keyword
82 , StaticPointers -- steals static keyword