forked from sebastiaanvisser/fclabels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fclabels.cabal
57 lines (51 loc) · 2.06 KB
/
fclabels.cabal
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
Name: fclabels
Version: 1.1.0.1
Author: Sebastiaan Visser, Erik Hesselink, Chris Eidhof, Sjoerd Visscher.
Synopsis: First class accessor labels.
Description: This package provides first class labels that can act as
bidirectional record fields. The labels can be derived
automatically using Template Haskell which means you don't have
to write any boilerplate yourself. The labels are implemented as
lenses and are fully composable. Labels can be used to /get/,
/set/ and /modify/ parts of a datatype in a consistent way.
.
See "Data.Label" for an introductory explanation.
.
Internally lenses are not tied to Haskell functions directly,
but are implemented as arrows. Arrows allow the lenses to be run
in custom computational contexts. This approach allows us to
make partial lenses that point to fields of multi-constructor
datatypes in an elegant way.
.
See the "Data.Label.Maybe" module for the use of partial labels.
.
> 1.0.4 -> 1.1.0
> - Fixed error in derived code in combination with -XMonoLocalBinds.
> - Lowered the priority of =: operator.
> - Added the =. operator for modification in state monads.
Maintainer: Sebastiaan Visser <[email protected]>
License: BSD3
License-File: LICENCE
Category: Data
Cabal-Version: >= 1.6
Build-Type: Simple
Library
HS-Source-Dirs: src
Other-Modules:
Data.Label.Derive
Exposed-Modules:
Data.Label
Data.Label.Abstract
Data.Label.Maybe
Data.Label.MaybeM
Data.Label.Pure
Data.Label.PureM
GHC-Options: -Wall
Build-Depends:
base < 5
, template-haskell >= 2.2 && < 2.8
, mtl >= 1.0 && < 2.2
, transformers >= 0.2 && < 0.3
Source-Repository head
Type: git
Location: git://github.com/sebastiaanvisser/fclabels.git