Skip to content

Commit

Permalink
Enable MonoLocalBinds extension
Browse files Browse the repository at this point in the history
It helps with type check in presence of type level programming.
Also it is included in GHC2024, so IMO it can be considered safe.
  • Loading branch information
WoWaster committed Oct 14, 2024
1 parent ce8b9fe commit 10329f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lamagraph-compiler/lamagraph-compiler.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ library
OverloadedStrings
LambdaCase
NoFieldSelectors
MonoLocalBinds
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
build-tools:
alex
Expand All @@ -70,6 +71,7 @@ executable lamagraph-compiler-exe
OverloadedStrings
LambdaCase
NoFieldSelectors
MonoLocalBinds
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
build-depends:
array
Expand All @@ -94,6 +96,7 @@ test-suite lamagraph-compiler-test
OverloadedStrings
LambdaCase
NoFieldSelectors
MonoLocalBinds
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
build-depends:
array
Expand Down
1 change: 1 addition & 0 deletions lamagraph-compiler/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ default-extensions:
- OverloadedStrings
- LambdaCase # Remove with GHC2024
- NoFieldSelectors
- MonoLocalBinds # Remove with GHC2024

ghc-options:
- -Wall
Expand Down

0 comments on commit 10329f1

Please sign in to comment.