@@ -3,7 +3,7 @@ cabal-version: 2.2
3
3
--------------------------------------------------------------------------------
4
4
name : addy
5
5
version : 0.1.0.0
6
- synopsis : Modern email parsing and validating
6
+ synopsis : A full-featured library for parsing, validating, and rendering email addresses
7
7
license : BSD-2-Clause
8
8
license-file : LICENSE
9
9
author : Peter Jones <
[email protected] >
@@ -35,6 +35,7 @@ common options
35
35
GeneralizedNewtypeDeriving
36
36
LambdaCase
37
37
MultiParamTypeClasses
38
+ MultiWayIf
38
39
NamedFieldPuns
39
40
NumericUnderscores
40
41
OverloadedStrings
@@ -43,6 +44,7 @@ common options
43
44
ScopedTypeVariables
44
45
StandaloneDeriving
45
46
TupleSections
47
+ TypeApplications
46
48
47
49
ghc-options :
48
50
-Wall
@@ -59,22 +61,28 @@ common dependencies
59
61
build-depends :
60
62
attoparsec >= 0.13 && < 0.14 ,
61
63
base >= 4.9 && < 5.0 ,
64
+ bytestring >= 0.10 && < 0.11 ,
62
65
ip >= 1.4 && < 1.8 ,
66
+ lens >= 4.17 && < 5.0 ,
63
67
relude >= 0.6 && < 0.7 ,
64
68
text >= 1.2 && < 1.3 ,
65
- text-icu >= 0.7 && < 0.8
69
+ text-icu >= 0.7 && < 0.8 ,
70
+ validation-selective >= 0.1 && < 0.2
66
71
67
72
mixins : base hiding (Prelude)
68
- , relude (Relude as Prelude, Relude.Extra.Lens )
73
+ , relude (Relude as Prelude)
69
74
70
75
--------------------------------------------------------------------------------
71
76
library
72
77
import : options, dependencies
73
78
hs-source-dirs : src
74
79
exposed-modules :
80
+ Addy
81
+ Addy.Internal.Char
75
82
Addy.Internal.Parser
76
83
Addy.Internal.Render
77
84
Addy.Internal.Types
85
+ Addy.Internal.Validation
78
86
79
87
--------------------------------------------------------------------------------
80
88
test-suite test
@@ -94,3 +102,12 @@ test-suite test
94
102
tasty >= 1.1 && < 1.3 ,
95
103
tasty-hedgehog >= 1.0 && < 1.1 ,
96
104
tasty-hunit >= 0.10 && < 0.11
105
+
106
+ --------------------------------------------------------------------------------
107
+ -- test-suite doctests
108
+ -- import: options, dependencies
109
+ -- type: exitcode-stdio-1.0
110
+ -- ghc-options: -threaded
111
+ -- hs-source-dirs: test/docs
112
+ -- main-is: Main.hs
113
+ -- build-depends: doctest >= 0.16
0 commit comments