Skip to content

Commit 12b6a49

Browse files
Another extension that Brittany cannot parse (#1369)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 64e9525 commit 12b6a49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/default/src/Ide/Plugin/Brittany.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ showExtension :: Extension -> Maybe String
111111
showExtension Cpp = Just "-XCPP"
112112
-- Brittany chokes on parsing extensions that produce warnings
113113
showExtension DatatypeContexts = Nothing
114+
showExtension RecordPuns = Just "-XNamedFieldPuns"
114115
showExtension other = Just $ "-X" ++ show other
115116

116117
getExtensions :: D.DynFlags -> [String]

0 commit comments

Comments
 (0)