on master help sign in
hext/README.md
30 lines 917 B history raw
1# hext
3It can be tempting to keep all GHC extensions in your stack.yaml or cabal file but many haskell tools don't have integrations with build tools like stack and cabal, and thus would break if they don't see an explicit language pragma at the start of the file.
5Hext alows you to mainain a single list of GHC extensions and automatically apply them to every file.
7Create a `.hext.yaml` file and put it into your project directory:
9```yaml
10- src:
11 - src
12 - tests
13 - app
15 line_limit: 100
17 extensions:
18 - OverloadedStrings
19 - NoImplicitPrelude
20 - TypeApplications
21 - DeriveGeneric
22 - DeriveAnyClass
23 - RecordWildCards
24 - ScopedTypeVariables
25 - LambdaCase
26```
28You can create multiple groups with different GHC extensions.
30`line_limit` can be abset, indicating that every extensions should be on its own line, a positive int or `none`, indicating that all extensions should be placed on one lines.