-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtokenizer.cabal
125 lines (99 loc) · 3.56 KB
/
tokenizer.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
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
120
121
122
123
124
125
cabal-version: 3.0
name: tokenizer
version: 0.1.0.0
synopsis: Check uniqueness and tokenize safely
homepage: https://github.com/Lev135/tokenizer
description:
Provide fast enough uniqueness checking for set of tokens specified on a
subset of regular expression. See README for more info.
/WARNING this package is not tested enough for the moment. Bugs are very likely here./
license: MIT
license-file: LICENSE
author: Lev135
maintainer: [email protected]
copyright: Lev Dvorkin (c) 2022
category: text
extra-source-files: CHANGELOG.md
extra-doc-files: README.md
source-repository head
type: git
location: https://github.com/Lev135/tokenizer
common basics
default-language: Haskell2010
default-extensions: DuplicateRecordFields
NamedFieldPuns
TupleSections
RecordWildCards
LambdaCase
MonadComprehensions
GeneralizedNewtypeDeriving
StandaloneDeriving
DeriveTraversable
RankNTypes
ScopedTypeVariables
PartialTypeSignatures
KindSignatures
ConstraintKinds
DataKinds
GADTs
TypeFamilies
QuantifiedConstraints
FlexibleContexts
FlexibleInstances
TypeOperators
TypeApplications
ghc-options: -Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
-Wmissing-exported-signatures
-Wno-name-shadowing
-Wno-unused-do-bind
build-depends: base ^>=4.14.3.0
, containers
common lib
import: basics
build-depends: transformers
common test
import: basics
build-depends: megaparsec
, hspec
library
import: lib
hs-source-dirs: src
exposed-modules: Text.Tokenizer
Text.Tokenizer.BlackWhiteSet
Text.Tokenizer.Types
Text.Tokenizer.Uniqueness
Text.Tokenizer.Split
test-suite tokenizer-test
import: test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends: tokenizer
test-suite test-repl
import: lib, test
type: exitcode-stdio-1.0
hs-source-dirs: src, test
main-is: Main.hs
other-modules: Text.Tokenizer
Text.Tokenizer.BlackWhiteSet
Text.Tokenizer.Types
Text.Tokenizer.Uniqueness
Text.Tokenizer.Split
executable examples
import: basics
hs-source-dirs: examples
main-is: Main.hs
other-modules:
if flag(examples)
build-depends: tokenizer
, megaparsec
else
buildable: False
flag examples
manual: True
default: False
description: Build examples executable