-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.hlint.yaml
More file actions
22 lines (17 loc) · 1.04 KB
/
.hlint.yaml
File metadata and controls
22 lines (17 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- arguments:
- --cpp-define=__GLASGOW_HASKELL__=910
- --cpp-include=src/include
# CPP macros (NOT_GHC_900, NOT_GHC_910, GHC_900, GHC_910, NOEXTP) expand to
# parenthesised expressions or nothing, producing apparent redundant brackets
# that are required for the pre-expansion source to parse on other GHC versions.
- ignore: {name: "Redundant bracket", within: HsToRocq.ConvertHaskell.Expr}
# getLoc_/noLoc_ are defined point-free in some CPP branches and with explicit
# arguments in others; keeping the eta-expanded form is consistent across
# branches and avoids type-inference differences under CPP.
- ignore: {name: "Eta reduce", within: [getLoc_, noLoc_]}
# CPP-separated imports cannot be merged
- ignore: {name: "Use fewer imports", within: HsToRocq.ConvertHaskell.Pattern}
# NonEmpty pattern synonyms cannot use list literal syntax
- ignore: {name: "Use list literal pattern", within: HsToRocq.Rocq.Gallina.Util}
# Template Haskell splice brackets from CPP macro expansion
- ignore: {name: "Redundant bracket", within: HsToRocq.Util.GHC.OnOff}