Skip to content

Commit 5695b9b

Browse files
committed
All tests and validations are passing, add official interface
1 parent 342b5b0 commit 5695b9b

File tree

16 files changed

+8655
-612
lines changed

16 files changed

+8655
-612
lines changed

addy.cabal

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cabal-version: 2.2
33
--------------------------------------------------------------------------------
44
name: addy
55
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
77
license: BSD-2-Clause
88
license-file: LICENSE
99
author: Peter Jones <[email protected]>
@@ -35,6 +35,7 @@ common options
3535
GeneralizedNewtypeDeriving
3636
LambdaCase
3737
MultiParamTypeClasses
38+
MultiWayIf
3839
NamedFieldPuns
3940
NumericUnderscores
4041
OverloadedStrings
@@ -43,6 +44,7 @@ common options
4344
ScopedTypeVariables
4445
StandaloneDeriving
4546
TupleSections
47+
TypeApplications
4648

4749
ghc-options:
4850
-Wall
@@ -59,22 +61,28 @@ common dependencies
5961
build-depends:
6062
attoparsec >= 0.13 && < 0.14,
6163
base >= 4.9 && < 5.0,
64+
bytestring >= 0.10 && < 0.11,
6265
ip >= 1.4 && < 1.8,
66+
lens >= 4.17 && < 5.0,
6367
relude >= 0.6 && < 0.7,
6468
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
6671

6772
mixins: base hiding (Prelude)
68-
, relude (Relude as Prelude, Relude.Extra.Lens)
73+
, relude (Relude as Prelude)
6974

7075
--------------------------------------------------------------------------------
7176
library
7277
import: options, dependencies
7378
hs-source-dirs: src
7479
exposed-modules:
80+
Addy
81+
Addy.Internal.Char
7582
Addy.Internal.Parser
7683
Addy.Internal.Render
7784
Addy.Internal.Types
85+
Addy.Internal.Validation
7886

7987
--------------------------------------------------------------------------------
8088
test-suite test
@@ -94,3 +102,12 @@ test-suite test
94102
tasty >= 1.1 && < 1.3,
95103
tasty-hedgehog >= 1.0 && < 1.1,
96104
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

default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,11 @@ nix-hs {
2525
if super ? relude_0_6_0_0
2626
then super.relude_0_6_0_0
2727
else super.relude;
28+
29+
validation-selective =
30+
dontCheck (
31+
super.callCabal2nix
32+
"validation-selective"
33+
sources.validation-selective {});
2834
};
2935
}

doc/rfc1123.txt

Lines changed: 5782 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)