forked from erlandsona/string-variants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yaml
109 lines (102 loc) · 3.15 KB
/
package.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: string-variants
version: 0.2.2.1
synopsis: Constrained text newtypes
description: See README at <https://github.com/MercuryTechnologies/string-variants#readme>.
category: Data
github: MercuryTechnologies/string-variants
maintainer: Jade Lovelace <[email protected]>, Borys Lykakh <[email protected]>
extra-source-files:
- CHANGELOG.md
license: MIT
tested-with: GHC ==9.2.4 || ==9.4.2
# FIXME(jadel): maybe instances should be in a separate package but whatever
dependencies:
- aeson >= 2.0.0.0
- base >= 4.16 && <5
- bytestring
- mono-traversable
- QuickCheck
- string-conversions
- template-haskell
- refinery
- refined
- text
- http-api-data
- openapi3
- mysql-simple
- mysql-extras
library:
source-dirs: src
# Test suite
tests:
test:
main: Main.hs
source-dirs:
- test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -Wno-incomplete-uni-patterns # Failing at runtime just means failing the test, which is ok
- -O0
dependencies:
- HUnit
- hedgehog
- hspec
- hspec-core
- hspec-hedgehog
- hspec-expectations
- string-variants
build-tools:
- hspec-discover
# from https://medium.com/mercury-bank/enable-all-the-warnings-a0517bc081c3
ghc-options:
- -Weverything
- -Wno-missing-exported-signatures # missing-exported-signatures turns off the more strict -Wmissing-signatures. See https://ghc.haskell.org/trac/ghc/ticket/14794#ticket
- -Wno-missing-export-lists # Requires explicit export lists for every module, a pain for large modules
- -Wno-missing-import-lists # Requires explicit imports of _every_ function (e.g. '$'); too strict
- -Wno-missed-specialisations # When GHC can't specialize a polymorphic function. No big deal and requires fixing underlying libraries to solve.
- -Wno-all-missed-specialisations # See missed-specialisations
- -Wno-unsafe # Don't use Safe Haskell warnings
- -Wno-missing-local-signatures # Warning for polymorphic local bindings. Don't think this is an issue
- -Wno-monomorphism-restriction # Don't warn if the monomorphism restriction is used
- -Wno-missing-safe-haskell-mode # Cabal isn’t setting this currently (introduced in GHC 8.10)
- -Wno-prepositive-qualified-module # Cabal’s generate Path_*.hs doesn’t do this (fixed in https://github.com/haskell/cabal/pull/7352)
- -Wno-unused-packages # Some tooling gives this error
- -Wno-missing-kind-signatures # Warns on literally every type
default-extensions:
- AllowAmbiguousTypes
- ApplicativeDo
- BlockArguments
- DataKinds
- DeriveAnyClass
- DeriveFoldable
- DeriveFunctor
- DeriveGeneric
- DeriveLift
- DeriveTraversable
- DerivingVia
- FlexibleContexts
- FlexibleInstances
- FunctionalDependencies
- GADTs
- GeneralizedNewtypeDeriving
- ImportQualifiedPost
- InstanceSigs
- LambdaCase
- MonoLocalBinds
- MultiWayIf
- NamedFieldPuns
- NumericUnderscores
- OverloadedStrings
- PatternSynonyms
- PolyKinds
- RankNTypes
- RecordWildCards
- RecursiveDo
- ScopedTypeVariables
- StandaloneDeriving
- StandaloneKindSignatures
- TypeApplications
- TypeFamilies
- ViewPatterns