Skip to content

Commit

Permalink
Added pattern guards as a language extension
Browse files Browse the repository at this point in the history
  • Loading branch information
josefs committed Apr 16, 2005
1 parent 7d2ce1a commit 7feaabf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Distribution/Extension.hs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ data Extension =
| Generics
| NoImplicitPrelude
| NamedFieldPuns
| PatternGuards

| ExtensibleRecords
| RestrictedTypeSynonyms
Expand Down Expand Up @@ -129,6 +130,7 @@ extensionsToGHCFlag l
extensionToGHCFlag FlexibleContexts = Right "-fglasgow-exts"
extensionToGHCFlag FlexibleInstances = Right "-fglasgow-exts"
extensionToGHCFlag EmptyDataDecls = Right "-fglasgow-exts"
extensionToGHCFlag PatternGuards = Right "-fglasgow-exts"

extensionToGHCFlag e@ExtensibleRecords = Left e
extensionToGHCFlag e@RestrictedTypeSynonyms = Left e
Expand Down

0 comments on commit 7feaabf

Please sign in to comment.