-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.yaml
97 lines (87 loc) · 2.37 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
name: mutable
version: 0.2.2.0
github: mstksg/mutable
license: BSD3
author: Justin Le
maintainer: [email protected]
copyright: (c) Justin Le 2020
tested-with: GHC >= 8.6 && < 8.10
extra-source-files:
- README.md
- CHANGELOG.md
# Metadata used when publishing your package
synopsis: Automatic piecewise-mutable references for your types
category: Data
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: |
Associate and generate "piecewise-mutable" versions for your composite data
types. Think of it like a "generalized MVector for all ADTs".
Useful for a situation where you have a record with many fields (or many nested
records) that you want to use for efficient mutable in-place algorithms. This
library lets you do efficient "piecewise" mutations (operations that only edit
one field), and also efficient entire-datatype copies/updates, as well, in many
cases.
See <https://mutable.jle.im> for official introduction and documentation,
or jump right in by importing "Data.Mutable".
ghc-options:
- -Wall
- -Wcompat
- -Wredundant-constraints
- -Werror=incomplete-patterns
library:
source-dirs: src
other-modules:
- Data.Mutable.Internal
- Data.Mutable.Internal.TH
dependencies:
- base >= 4.12 && < 5
- generic-lens >= 2.0
- generic-lens-core >= 2.0
- primitive >= 0.6.4
- template-haskell
- transformers
- vector
- vinyl
benchmarks:
mutable-bench:
main: bench.hs
source-dirs: bench
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -O2
dependencies:
- base >= 4.12 && < 5
- criterion
- deepseq
- directory
- microlens
- microlens-th
- mutable
- time
- transformers
- vector
- vinyl
# executables:
# mutable-exe:
# main: Main.hs
# source-dirs: app
# ghc-options:
# - -threaded
# - -rtsopts
# - -with-rtsopts=-N
# dependencies:
# - mutable
# tests:
# mutable-test:
# main: Spec.hs
# source-dirs: test
# ghc-options:
# - -threaded
# - -rtsopts
# - -with-rtsopts=-N
# dependencies:
# - mutable