-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hlint.yaml
49 lines (39 loc) · 1.25 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
46
47
48
49
############################
# HLint Configuration File #
############################
# See https://github.com/ndmitchell/hlint
# Specify additional command line arguments
- arguments: [--color, --cpp-simple, -XQuasiQuotes]
#######################
# 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.ByteString.Base64, as: Base64 }
- {name: Data.Text, as: T }
- {name: Data.Text.Lazy, as: TL }
- {name: Data.Text.Encoding, as: TE }
- {name: Data.Time, as: Time }
##########################
# EXTENSION RESTRICTIONS #
##########################
- extensions:
- default: false # All extension are banned by default
- name: # Only these listed extensions can be used
- OverloadedStrings
- RankNTypes
- TupleSections
################
# 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}
# Warn about redundant do:
- warn: {name: Redundant do}