1PostgREST # 22:module PostgREST.Parsers where 2Parsers 3Protolude 4hiding 5try 6intercalate 7replace 8option 9Control 10Monad 11Data 12Foldable 13foldl1 14qualified 15Data 16HashMap 17Strict 18as 19M 20Data 21Text 22intercalate 23replace 24strip 25Data 26List 27init 28last 29Data 30Tree 31Data 32Either 33Combinators 34mapLeft 35PostgREST 36RangeQuery 37NonnegRange 38allRange 39PostgREST 40Types 41Text 42ParserCombinators 43Parsec 44hiding 45many 46Text 47Parsec 48Error 49pRequestSelect # 37:pRequestSelect :: 50Text 51Text 52Either 53ApiRequestError 54ReadRequest 55pRequestSelect 56rootName 57selStr 58mapError 59parse 60pReadRequest 61rootName 62toS 63selStr 64toS 65selStr 66pRequestFilter # 41:pRequestFilter :: 67Text 68Text 69Either 70ApiRequestError 71EmbedPath 72Filter 73pRequestFilter 74k 75v 76mapError 77path 78Filter 79fld 80oper 81treePath 82parse 83pTreePath 84toS 85k 86toS 87k 88oper 89parse 90pOpExpr 91pSingleVal 92pListVal 93toS 94v 95toS 96v 97path 98fst 99treePath 100fld 101snd 102treePath 103pRequestOrder # 49:pRequestOrder :: 104Text 105Text 106Either 107ApiRequestError 108EmbedPath 109OrderTerm 110pRequestOrder 111k 112v 113mapError 114path 115ord' 116treePath 117parse 118pTreePath 119toS 120k 121toS 122k 123path 124fst 125treePath 126ord' 127parse 128pOrder 129toS 130v 131toS 132v 133pRequestRange # 56:pRequestRange :: 134ByteString 135NonnegRange 136Either 137ApiRequestError 138EmbedPath 139NonnegRange 140pRequestRange 141k 142v 143mapError 144path 145pure 146v 147treePath 148parse 149pTreePath 150toS 151k 152toS 153k 154path 155fst 156treePath 157pRequestLogicTree # 62:pRequestLogicTree :: 158Text 159Text 160Either 161ApiRequestError 162EmbedPath 163LogicTree 164pRequestLogicTree 165k 166v 167mapError 168embedPath 169logicTree 170path 171parse 172pLogicPath 173toS 174k 175toS 176k 177embedPath 178fst 179path 180op 181snd 182path 183logicTree 184join 185parse 186pLogicTree 187toS 188v 189toS 190op 191pure 192v 193pRequestRpcQParam # 71:pRequestRpcQParam :: 194Text 195Text 196Either 197ApiRequestError 198RpcQParam 199pRequestRpcQParam 200k 201v 202mapError 203name 204val 205name 206parse 207pFieldName 208toS 209k 210toS 211k 212val 213toS 214parse 215many 216anyChar 217toS 218v 219v 220ws 221Parser 222Text 223ws 224toS 225many 226oneOf 227lexeme 228Parser 229a 230Parser 231a 232lexeme 233p 234ws 235p 236ws 237pReadRequest # 83:pReadRequest :: 238Text 239Parser 240ReadRequest 241pReadRequest 242rootNodeName 243fieldTree 244pFieldForest 245return 246foldr 247treeEntry 248Node 249readQuery 250rootNodeName 251Nothing 252Nothing 253Nothing 254fieldTree 255readQuery 256Select 257rootNodeName 258Nothing 259allRange 260treeEntry 261Tree 262SelectItem 263ReadRequest 264ReadRequest 265treeEntry 266Node 267fld 268fn 269alias 270relationDetail 271fldForest 272Node 273q 274i 275rForest 276fldForest 277Node 278q 279select 280fld 281select 282q 283i 284rForest 285Node 286q 287i 288newForest 289newForest 290foldr 291treeEntry 292Node 293Select 294fn 295Nothing 296allRange 297fn 298Nothing 299alias 300relationDetail 301fldForest 302rForest 303pTreePath # 98:pTreePath :: Parser (EmbedPath, Field) 304Parser 305EmbedPath 306Field 307pTreePath 308p 309pFieldName 310sepBy1 311pDelimiter 312jp 313optionMaybe 314pJsonPath 315return 316init 317p 318last 319p 320jp 321pFieldForest # 104:pFieldForest :: Parser 322Parser 323Tree 324SelectItem 325pFieldForest 326pFieldTree 327sepBy1 328lexeme 329char 330pFieldTree 331Parser 332Tree 333SelectItem 334pFieldTree 335try 336Node 337pRelationSelect 338between 339char 340char 341pFieldForest 342try 343Node 344pRelationSelect 345between 346char 347char 348pFieldForest 349Node 350pFieldSelect 351pure 352pStar 353Parser 354Text 355pStar 356toS 357string 358pure 359ByteString 360pFieldName # 116:pFieldName :: Parser Text 361Parser 362Text 363pFieldName 364matches 365many1 366letter 367digit 368oneOf 369sepBy1 370dash 371return 372intercalate 373map 374toS 375matches 376isDash 377GenParser 378Char 379st 380isDash 381try 382char 383notFollowedBy 384char 385dash 386Parser 387Char 388dash 389isDash 390pure 391pJsonPathStep # 129:pJsonPathStep :: Parser Text 392Parser 393Text 394pJsonPathStep 395toS 396try 397string 398pFieldName 399pJsonPath 400Parser 401Text 402pJsonPath 403many 404pJsonPathStep 405string 406pFieldName 407pField 408Parser 409Field 410pField 411lexeme 412pFieldName 413optionMaybe 414pJsonPath 415aliasSeparator 416Parser 417aliasSeparator 418char 419notFollowedBy 420char 421pRelationSelect # 138:pRelationSelect :: Parser SelectItem 422Parser 423SelectItem 424pRelationSelect 425lexeme 426try 427alias 428optionMaybe 429try 430pFieldName 431aliasSeparator 432fld 433pField 434relationDetail 435optionMaybe 436try 437char 438pFieldName 439return 440fld 441Nothing 442alias 443relationDetail 444pFieldSelect # 147:pFieldSelect :: Parser SelectItem 445Parser 446SelectItem 447pFieldSelect 448lexeme 449try 450alias 451optionMaybe 452try 453pFieldName 454aliasSeparator 455fld 456pField 457cast' 458optionMaybe 459string 460many 461letter 462return 463fld 464toS 465cast' 466alias 467Nothing 468s 469pStar 470return 471s 472Nothing 473Nothing 474Nothing 475Nothing 476pOpExpr # 160:pOpExpr :: Parser SingleVal 477Parser 478SingleVal 479Parser 480ListVal 481Parser 482OpExpr 483pOpExpr 484pSVal 485pLVal 486try 487string 488pDelimiter 489OpExpr 490True 491pOperation 492OpExpr 493False 494pOperation 495pOperation 496Parser 497Operation 498pOperation 499Op 500toS 501foldl1 502try 503pDelimiter 504string 505toS 506M 507keys 508ops 509pSVal 510In 511string 512pDelimiter 513pLVal 514pFts 515pFts 516op 517foldl1 518try 519string 520toS 521ftsOps 522lang 523optionMaybe 524try 525between 526char 527char 528many 529letter 530digit 531oneOf 532pDelimiter 533Fts 534toS 535op 536toS 537lang 538pSVal 539ops 540M 541filterWithKey 542const 543flip 544notElem 545ftsOps 546operators 547ftsOps 548M 549keys 550ftsOperators 551pSingleVal # 178:pSingleVal :: Parser SingleVal 552Parser 553SingleVal 554pSingleVal 555toS 556many 557anyChar 558pListVal 559Parser 560ListVal 561pListVal 562try 563lexeme 564char 565pListElement 566sepBy1 567char 568lexeme 569char 570lexeme 571pListElement 572sepBy1 573char 574pListElement # 185:pListElement :: Parser Text 575Parser 576Text 577pListElement 578try 579pQuotedValue 580toS 581many 582noneOf 583pQuotedValue 584Parser 585Text 586pQuotedValue 587toS 588char 589many 590noneOf 591char 592notFollowedBy 593noneOf 594pDelimiter 595Parser 596Char 597pDelimiter 598char 599pOrder 600Parser 601OrderTerm 602pOrder 603lexeme 604pOrderTerm 605sepBy 606char 607pOrderTerm # 197:pOrderTerm :: Parser OrderTerm 608Parser 609OrderTerm 610pOrderTerm 611try 612c 613pField 614d 615optionMaybe 616try 617pDelimiter 618try 619string 620pure 621OrderAsc 622try 623string 624pure 625OrderDesc 626nls 627optionMaybe 628pDelimiter 629try 630string 631pure 632OrderNullsLast 633try 634string 635pure 636OrderNullsFirst 637return 638OrderTerm 639c 640d 641nls 642OrderTerm 643pField 644pure 645Nothing 646pure 647Nothing 648pLogicTree # 213:pLogicTree :: Parser LogicTree 649Parser 650LogicTree 651pLogicTree 652Stmnt 653try 654pLogicFilter 655Expr 656pNot 657pLogicOp 658lexeme 659char 660pLogicTree 661sepBy1 662lexeme 663char 664lexeme 665char 666pLogicFilter 667Parser 668Filter 669pLogicFilter 670Filter 671pField 672pDelimiter 673pOpExpr 674pLogicSingleVal 675pLogicListVal 676pNot 677Parser 678Bool 679pNot 680try 681string 682pDelimiter 683pure 684True 685pure 686False 687pLogicOp 688Parser 689LogicOperator 690pLogicOp 691try 692string 693pure 694And 695string 696pure 697Or 698pLogicSingleVal # 228:pLogicSingleVal :: Parser SingleVal 699Parser 700SingleVal 701pLogicSingleVal 702try 703pQuotedValue 704try 705pPgArray 706toS 707many 708noneOf 709pPgArray 710Parser 711Text 712pPgArray 713a 714string 715b 716many 717noneOf 718c 719string 720toS 721pure 722a 723b 724c 725pLogicListVal # 239:pLogicListVal :: Parser ListVal 726Parser 727ListVal 728pLogicListVal 729lexeme 730char 731pListElement 732sepBy1 733char 734lexeme 735char 736pLogicPath 737Parser 738EmbedPath 739Text 740pLogicPath 741path 742pFieldName 743sepBy1 744pDelimiter 745op 746last 747path 748notOp 749op 750return 751filter 752init 753path 754elem 755path 756notOp 757op 758mapError # 249:mapError :: Either ParseError 759Either 760ParseError 761a 762Either 763ApiRequestError 764a 765mapError 766mapLeft 767translateError 768translateError 769e 770ParseRequestError 771message 772details 773message 774show 775errorPos 776e 777details 778strip 779replace 780toS 781showErrorMessages 782errorMessages 783e 784allRange # 259:allRange :: NonnegRange 785NonnegRange 786allRange 787rangeGeq 788