-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hlint.yaml
53 lines (45 loc) · 1.33 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
50
51
52
53
############################
# 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:
- DataKinds
- DeriveGeneric
- DeriveLift
- FlexibleContexts
- FlexibleInstances
- GADTs
- GeneralizedNewtypeDeriving
- KindSignatures
- OverloadedStrings
- RankNTypes
- RecordWildCards
- ScopedTypeVariables
- StandaloneDeriving
- TypeApplications
- TypeOperators
################
# 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 }