-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hlint.yaml
45 lines (37 loc) · 1.09 KB
/
.hlint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
############################
# HLint Configuration File #
############################
# See https://github.com/ndmitchell/hlint
#######################
# MODULE RESTRICTIONS #
#######################
- modules:
- {name: Control.Monad.Error, within: []}
- {name: [Data.Aeson], as: Aeson}
- {name: Data.ByteString, as: B }
- {name: Data.ByteString.Char8, as: BC }
- {name: Data.ByteString.Lazy, as: BL }
- {name: Data.ByteString.Lazy.Char8, as: BLC }
- {name: Data.Text, as: T }
- {name: Data.Text.Lazy, as: TL }
- {name: Data.Text.Encoding, as: TE }
##########################
# EXTENSION RESTRICTIONS #
##########################
- extensions:
- default: false # All extension are banned by default
- name: # Only these listed extensions can be used
- CPP
- DataKinds
- DerivingVia
- GADTs
- QuasiQuotes
- RecordWildCards
- TemplateHaskell
################
# CUSTOM RULES #
################
# Replace a $ b $ c with a . b $ c
- group: {name: dollar, enabled: true}
# Generalise map to fmap, ++ to <>
- group: {name: generalise, enabled: true}