-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.yaml
119 lines (102 loc) · 2.51 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
110
111
112
113
114
115
116
117
118
119
name: binrep
version: 1.0.0
synopsis: Encode precise binary representations directly in types
description: Please see README.md.
extra-source-files:
- README.md
- CHANGELOG.md
category: Data, Serialization, Generics
tested-with:
- GHC==9.8
#- GHC==9.10 # waiting on defun-core
license: MIT
license-file: LICENSE
github: raehik/binrep
maintainer: Ben Orchard <thefirstmuffinman@gmail.com>
author: Ben Orchard
# raehik's extensions (GHC 9.2; last updated: 2022-10-09)
language: GHC2021
default-extensions:
# syntax that should be default
- LambdaCase
- NoStarIsType
## deriving-related
- DerivingVia # implies DerivingStrategies
- DeriveAnyClass
# features that should be default
- GADTs
- RoleAnnotations
# other features
- DefaultSignatures
- TypeFamilies
- DataKinds
# other syntax
- MagicHash
# useful extensions to know about, but which should be specified on-demand
#
# UndecidableInstances:
# required for type class wizardry
# generally only enable if you were expecting to & compilation fails without
# AllowAmbiguousTypes:
# often goes hand in hand with TypeApplications-heavy code
# enabling on demand brings attention to the sort of functions to expect
# StarIsType:
# may need to enable if you're working with old code that uses `Int :: *`
ghc-options:
- -fhide-source-paths # hides module filepaths when compiling (bit neater)
- -Wall
#- -ddump-to-file
#- -ddump-simpl
#- -ddump-stg-final
dependencies:
- base >= 4.18 && < 5
- bytestring >= 0.11 && < 0.13
- text >= 2.0 && < 2.2
- bytezap ^>= 1.6.0
- flatparse >= 0.5.0.2 && < 0.6
- text-builder-linear ^>= 0.1.3
- generic-data-functions ^>= 0.6.0
- generic-type-asserts ^>= 0.3.0
- generic-type-functions ^>= 0.1.0
- strongweak ^>= 0.11.0
- defun-core ^>= 0.1
# core instances
- rerefined ^>= 0.8.0
# types
- type-level-show ^>= 0.3.0
- parser-combinators ^>= 1.3.0
- ghc-bignum ^>= 1.3
- deepseq >= 1.4.6.1 && < 1.6
- type-level-bytestrings >= 0.1.0 && < 0.3
library:
source-dirs: src
tests:
spec:
source-dirs: test
main: Spec.hs
build-tools:
- hspec-discover >= 2.7 && < 2.12
dependencies:
- binrep
- hspec >= 2.7 && < 2.12
- QuickCheck ^>= 2.14.2
- quickcheck-instances ^>= 0.3.26
- generic-random ^>= 1.5.0.1
flags:
icu:
description: use text-icu package (requires ICU library)
default: true
manual: true
when:
- condition: flag(icu)
dependencies:
- text-icu >= 0.7.0.0 && < 0.9
cpp-options:
- -DHAVE_ICU
benchmarks:
bench:
source-dirs: bench
main: Main.hs
dependencies:
- binrep
- gauge