generated from vst/haskell-template-hebele
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hlint.yaml
57 lines (48 loc) · 1.62 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
54
55
56
57
############################
# 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 }
- { name: Zamazingo.Net, as: Z.Net, importStyle: qualified, asRequired: true }
- { name: Zamazingo.Text, as: Z.Text, importStyle: qualified, asRequired: true }
- { name: Data.Text.IO, as: TIO }
- { name: Options.Applicative, as: OA }
##########################
# EXTENSION RESTRICTIONS #
##########################
- extensions:
- default: false # All extension are banned by default.
- name:
- DeriveGeneric
- DerivingVia
- FlexibleContexts
- LambdaCase
- OverloadedRecordDot
- OverloadedStrings
- QuasiQuotes
- RecordWildCards
- TemplateHaskell
- TupleSections
- TypeApplications
################
# 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 }
# Use tshow
- warn: { lhs: Data.Text.pack . show, rhs: Zamazingo.Text.tshow }
- warn: { lhs: Data.Text.pack (show a), rhs: Zamazingo.Text.tshow a }