-
Notifications
You must be signed in to change notification settings - Fork 0
/
TAGS
500 lines (479 loc) · 14.3 KB
/
TAGS
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
./test/Spec.hs,719
main main17,18
data Wrapson Wrapson30,31
Wrapson Wrapson31,32
instance Show Show (Wrapson json)33,34
show show34,35
instance (S(Show json, JSON json) => Arbitrary (Wrapson json)36,37
arbitrary arbitrary37,38
genNull, genBool, genNum, genString, genArray, genObject genObject39,40
genNull, genBool, genNum, genString, genArray,genArray39,40
genNull, genBool, genNum, genString,genString39,40
genNull, genBool, genNum,genNum39,40
genNull, genBool,genBool39,40
genNull,genNull39,40
genBool genBool42,43
genNum genNum43,44
genString genString44,45
genArray genArray45,46
genObject genObject48,49
fromWrapson fromWrapson52,53
keyValuePair keyValuePair55,56
mapSnd mapSnd61,62
./test/CLI.hs,1502
module CLI CLI1,2
data Option Option12,13
data Option = Default Default12,13
data Option = Default | OptionA OptionA12,13
data Option = Default | OptionA | OptionB OptionB12,13
data Option = Default | OptionA | OptionB | OptionC OptionC12,13
data Option = Default | OptionA | OptionB | OptionC | OptionDOptionD12,13
newtype StrArgs StrArgs15,16
data Error Error17,18
data Error = UnexpectedPositional UnexpectedPositional17,18
| UserError UserError18,19
instance Exception Exception Error21,22
instance CliArgs CliArgs (ExceptT SomeException IO) StrArgs23,24
defaults defaults24,25
finalize finalize25,26
positional positional26,27
hyphens hyphens27,28
flags flags30,31
data OptAndFloat OptAndFloat32,33
data OptAndFloat = OptAndFloat OptAndFloat32,33
instance CliArgs CliArgs (ExceptT SomeException IO) OptAndFloat35,36
defaults defaults36,37
finalize finalize37,38
positional positional38,39
hyphens hyphens43,44
flags flags45,46
newtype ArgMap ArgMap47,48
argMap argMap50,51
insertArg insertArg53,54
instance CliArgs CliArgs (ExceptT SomeException IO) ArgMap56,57
defaults defaults57,58
finalize finalize58,59
positional positional59,60
hyphens hyphens60,61
flags flags61,62
type ParseResult ParseResult71,72
parseArgs parseArgs73,74
unrecognisedShort unrecognisedShort76,77
unexpectedPositional unexpectedPositional81,82
missingParam missingParam86,87
cliTests cliTests92,93
./test/Evaluator.hs,412
module Evaluator Evaluator1,2
evalTests evalTests25,26
applyTo applyTo77,78
exprParser exprParser83,84
instance (M(Monad m, JSON a) => JSON (ExceptTraceT m a)87,88
str str88,89
num num89,90
bool bool90,91
null null91,92
obj obj92,93
array array93,94
retKVpair retKVpair95,96
notAnObject notAnObject100,101
notAnArray notAnArray107,108
negativeIndex negativeIndex114,115
./src/Language/Syntax.hs,478
module Language.Syntax Language.Syntax1,2
class JSON j => Syntax Syntax25,26
compose compose26,27
get get27,28
index index28,29
getAst getAst31,32
indexAst indexAst35,36
find find46,47
parser parser53,54
parentheses parentheses62,63
getter getter68,69
getObject getObject78,79
quotedGetObject quotedGetObject84,85
getArray getArray91,92
instance Syntax Syntax (Repr r)98,99
compose compose99,100
get get103,104
index index104,105
./src/Language/Functions.hs,474
module Language.Functions Language.Functions1,2
class Functions Functions24,25
keys keys25,26
jmap jmap26,27
plus plus27,28
type JsonF JsonF30,31
type JsonF2 JsonF231,32
keysAst keysAst34,35
arrayMap arrayMap38,39
numPlus numPlus42,43
parse parse48,49
parser parser51,52
objectKeys objectKeys54,55
arrMap arrMap59,60
numAdd numAdd64,65
instance Functions Functions (Repr j)72,73
keys keys73,74
jmap jmap74,75
plus plus75,76
./src/Language/Eval.hs,440
module Language.Eval Language.Eval1,2
newtype Eval Eval17,18
eval eval19,20
instance JSON JSON Eval22,23
str str23,24
num num24,25
bool bool25,26
null null26,27
array array27,28
obj obj28,29
instance Syntax Syntax Eval31,32
compose compose32,33
get get33,34
index index34,35
instance Functions Functions Eval36,37
keys keys37,38
jmap jmap38,39
plus plus39,40
mconst mconst45,46
./src/Parser/CLI.hs,1189
module Parser.CLI Parser.CLI1,2
data CliError CliError19,20
data CliError = UnrecognisedLong UnrecognisedLong19,20
| UnrecognisedShort UnrecognisedShort20,21
| MissingParam MissingParam21,22
instance Exception Exception CliError24,25
data Or Or26,27
data Or l r = OrLeft OrLeft26,27
| OrRight OrRight27,28
| OrBoth OrBoth28,29
data SimpleSimple30,31
data ParametricParametric31,32
data Arg Arg33,34
Positional Positional34,35
Dashes Dashes35,36
LongFlag LongFlag36,37
ShortFlag ShortFlag37,38
instance Show Show (Arg a)39,40
show show40,41
data AnyArg AnyArg45,46
AnyArg AnyArg46,47
data Consume Consume48,49
ArgS ArgS49,50
ArgZ ArgZ50,51
data FlagSpec FlagSpec52,53
FlagSpec FlagSpec53,54
class MonadThrow m => CliArgs CliArgs55,56
defaults defaults56,57
finalize finalize57,58
positional positional58,59
hyphens hyphens59,60
flags flags60,61
cliParser cliParser63,64
argParser argParser66,67
consumeArgs consumeArgs69,70
classifyArg classifyArg84,85
findFlag findFlag93,94
parseFlag parseFlag110,111
concatMapM concatMapM121,122
./src/Parser/Language.hs,278
module Parser.Language Parser.Language1,2
exprParser exprParser25,26
simpleExprParser simpleExprParser29,30
getter getter34,35
getObject getObject44,45
quotedGetObject quotedGetObject50,51
getArray getArray57,58
constant constant64,65
constants constants67,68
./src/Parser/Core.hs,601
module Parser.Core Parser.Core0,1
newtype InternalParseError InternalParseError23,24
newtype InternalParseError = UnexpectedToken UnexpectedToken23,24
instance ShowErrorComponent ShowErrorComponent InternalParseError26,27
errorComponentLen errorComponentLen27,28
showErrorComponent showErrorComponent28,29
newtype ParseError ParseError32,33
instance Exception Exception ParseError34,35
instance Show Show ParseError36,37
show show37,38
type Parser Parser40,41
parse parse42,43
space space45,46
lexeme lexeme48,49
punctuation punctuation51,52
mapLeft mapLeft55,56
./src/Parser/JSON.hs,206
module Parser.JSON Parser.JSON1,2
parseJSON parseJSON34,35
string string37,38
number number41,42
constants constants44,45
arr arr52,53
object object58,59
json json72,73
quoted quoted75,76
./src/Data/JSON/Repr.hs,772
module Data.JSON.Repr Data.JSON.Repr1,2
toText toText18,19
newtype Indentation Indentation22,23
modifyReturning modifyReturning24,25
indent indent31,32
unindent unindent34,35
indentation indentation37,38
newtype Repr Repr41,42
instance (M(Monad m, Semigroup a) => Semigroup (m a)43,44
ma ma44,45
instance IsString IsString a => IsString (StateT s (Cont r) a)49,50
fromString fromString50,51
kvPair kvPair52,53
withCommas withCommas61,62
enclose enclose68,69
instance JSON JSON (Repr r)74,75
str str75,76
num num76,77
bool bool77,78
null null79,80
array array80,81
obj obj81,82
reprS reprS83,84
instance Show Show (Repr String)87,88
show show88,89
instance Show Show (Repr Text)90,91
show show91,92
./src/Data/JSON/AST.hs,1063
module Data.JSON.AST Data.JSON.AST1,2
data JsonAst JsonAst19,20
data JsonAst = JString JString19,20
| JNum JNum20,21
| JBool JBool21,22
| JNullJNull22,23
| JArray JArray23,24
| JObject JObject24,25
instance JSON JSON JsonAst27,28
str str28,29
num num29,30
bool bool30,31
null null31,32
array array32,33
obj obj33,34
toJSON toJSON35,36
instance Show Show JsonAst45,46
show show46,47
data TypeError TypeError48,49
data TypeError = NotAnObject NotAnObject48,49
| NotAnArray NotAnArray49,50
| NotANumber NotANumber50,51
instance Show Show TypeError52,53
show show53,54
instance Exception Exception TypeError57,58
newtype ValueError ValueError59,60
newtype ValueError = NegativeIndex NegativeIndex59,60
instance Show Show ValueError61,62
show show62,63
instance Exception Exception ValueError64,65
expectArray expectArray67,68
expectObject expectObject71,72
expectNumber expectNumber75,76
./src/Data/Hash.hs,1401
module Data.Hash Data.Hash0,1
newtype Hash Hash19,20
foldNatDown foldNatDown21,22
instance Bits Bits Hash27,28
(H(Hash(a,b)28,29
xor xor30,31
complement complement31,32
shiftL shiftL32,33
shiftR shiftR35,36
rotateL rotateL38,39
rotateR rotateR42,43
bitSize bitSize46,47
bitSizeMaybe bitSizeMaybe47,48
isSigned isSigned48,49
bit bit49,50
testBit testBit52,53
popCount popCount55,56
instance Bounded Bounded Hash57,58
minBound minBound58,59
maxBound maxBound59,60
instance Enum Enum Hash61,62
toEnum toEnum62,63
fromEnum fromEnum63,64
instance Num Num Hash65,66
(H(Hash(a,b)66,67
a a70,71
abs abs71,72
signum signum72,73
fromInteger fromInteger73,74
negate negate74,75
bits bits77,78
splitChunks splitChunks80,81
instance Show Show Hash90,91
show show91,92
newtype RollingHash RollingHash99,100
defaultSeed defaultSeed101,102
hashEnum hashEnum104,105
hashString hashString113,114
hashNum hashNum119,120
hashBool hashBool124,125
hashObj hashObj128,129
instance JSON JSON RollingHash132,133
str str133,134
num num134,135
bool bool135,136
null null136,137
array array137,138
obj obj138,139
instance Show Show RollingHash140,141
show show141,142
concatRollingHashes concatRollingHashes143,144
saltedHash saltedHash148,149
hash hash151,152
./src/Data/Error/Trace.hs,1645
module Data.Error.Trace Data.Error.Trace1,2
newtype Trace Trace26,27
instance Semigroup Semigroup Trace28,29
(T(Tracexs)29,30
instance Monoid Monoid Trace31,32
mempty mempty32,33
instance Show Show Trace34,35
show show35,36
instance Exception Exception a => Exception [a]38,39
instance Monad Monad m => MonadThrow (ExceptT Trace m)40,41
throwM throwM41,42
(!(!:)45,46
e e46,47
singleError singleError48,49
newtype EitherTrace EitherTrace51,52
instance Functor Functor EitherTrace54,55
fmap fmap55,56
instance Applicative Applicative EitherTrace57,58
pure pure58,59
(E(EitherTracef)59,60
instance Monad Monad EitherTrace61,62
(E(EitherTrace(Lefte)62,63
(E(EitherTrace(Righta)63,64
instance MonadThrow MonadThrow EitherTrace65,66
throwM throwM66,67
ofEither ofEither68,69
eitherJustTrace eitherJustTrace72,73
runEitherTrace runEitherTrace76,77
newtype ExceptTraceT ExceptTraceT80,81
instance Functor Functor m => Functor (ExceptTraceT m)82,83
fmap fmap83,84
instance Monad Monad m => Applicative (ExceptTraceT m)85,86
pure pure86,87
(E(ExceptTraceTf)87,88
instance Monad Monad m => Alternative (ExceptTraceT m)89,90
empty empty90,91
(E(ExceptTraceTma)91,92
instance Monad Monad m => Monad (ExceptTraceT m)93,94
(E(ExceptTraceTm)94,95
instance MonadIO MonadIO m => MonadIO (ExceptTraceT m)102,103
liftIO liftIO103,104
instance Monad Monad m => MonadThrow (ExceptTraceT m)105,106
throwM throwM106,107
liftTrace liftTrace108,109
liftEither liftEither111,112
runExceptTraceT runExceptTraceT115,116
runToIO runToIO118,119
./src/Data/JSON.hs,387
module Data.JSON Data.JSON1,2
class JSON JSON11,12
str str12,13
num num13,14
bool bool14,15
null null15,16
array array16,17
obj obj17,18
instance (J(JSON a, JSON b) => JSON (a, b)19,20
str str20,21
num num21,22
bool bool22,23
null null23,24
array array24,25
obj obj25,26
newtype JsonStream JsonStream31,32
unstream unstream33,34
./app/Main.hs,1080
module Main Main1,2
data FFJsonError FFJsonError28,29
data FFJsonError = UnexpectedPositional UnexpectedPositional28,29
| InputError InputError29,30
| NoInputNoInput30,31
| AlreadyNamed AlreadyNamed31,32
| ParseError ParseError32,33
instance Exception Exception FFJsonError35,36
data Config Config37,38
data Config = Config Config37,38
currentInput currentInput38,39
inputs inputs39,40
filters filters40,41
outputs outputs41,42
indentation indentation42,43
setIndentation setIndentation45,46
addOutput addOutput48,49
addNewInput addNewInput51,52
setInputName setInputName56,57
addFilter addFilter62,63
finalizeInput finalizeInput67,68
instance CliArgs CliArgs (ExceptTraceT IO) Config75,76
defaults defaults76,77
finalize finalize77,78
positional positional90,91
hyphens hyphens91,92
flags flags92,93
main main104,105
readJson readJson115,116
parseJson parseJson120,121
outputJson outputJson123,124
write write129,130
./app/Data/Filter.hs,424
module Data.Filter Data.Filter1,2
data Filter Filter30,31
data Filter = Filter Filter30,31
inputKey, outputKey outputKey31,32
filterExpr filterExpr32,33
newtype FilterError FilterError35,36
newtype FilterError = UnknownStream UnknownStream35,36
instance Exception Exception FilterError38,39
evaluate evaluate41,42
parse parse48,49
parser parser51,52
exprParser exprParser58,59
key key61,62
./app/Data/Output.hs,151
module Data.Output Data.Output0,1
data Output Output9,10
data Output = Output Output9,10
parseOutput parseOutput12,13
strSplit strSplit19,20
./app/Data/JsonStream.hs,195
module Data.JsonStream Data.JsonStream1,2
newtype Streamset Streamset15,16
emptyStreamset emptyStreamset17,18
addStream addStream20,21
getStream getStream23,24
toObject toObject26,27
./app/Data/Input.hs,646
module Data.Input Data.Input1,2
data InputError InputError34,35
data InputError = InvalidInput InvalidInput34,35
| JsonError JsonError35,36
| HttpError HttpError36,37
instance Exception Exception InputError39,40
data Input Input41,42
data Input = FileInput FileInput41,42
data Input = FileInput String | UrlInput UrlInput41,42
parseInput parseInput43,44
loadInput loadInput47,48
loadFile loadFile56,57
newtype Inputs Inputs61,62
emptyInputs emptyInputs63,64
isEmptyInputs isEmptyInputs66,67
nextDefaultKey nextDefaultKey69,70
addInput addInput77,78
namedInputs namedInputs84,85
./Setup.hs,15
main main1,2