diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d39ca9..81c13be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,11 +8,11 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: purescript-contrib/setup-purescript@v2.0.0 + - uses: purescript-contrib/setup-purescript@main with: - purescript: "0.15.12" - psa: "0.8.2" - spago: "0.20.9" + purescript: 0.15.15 + psa: 0.8.2 + spago: unstable - name: Cache PureScript dependencies uses: actions/cache@v2 @@ -33,8 +33,8 @@ jobs: examples/1-simple/output examples/2-codegen/.spago examples/2-codegen/output - + - run: spago build - - run: npm i + - run: npm i - run: npm run bundle - run: npm t diff --git a/codegen/schema/packages.dhall b/codegen/schema/packages.dhall deleted file mode 100644 index e9d1f7a..0000000 --- a/codegen/schema/packages.dhall +++ /dev/null @@ -1,73 +0,0 @@ -let upstream = - https://github.com/purescript/package-sets/releases/download/psc-0.15.7-20230408/packages.dhall - sha256:eafb4e5bcbc2de6172e9457f321764567b33bc7279bd6952468d0d422aa33948 - -in upstream - with graphql-client = ../../spago.dhall as Location - with tidy-codegen = - { dependencies = - [ "aff" - , "ansi" - , "arrays" - , "avar" - , "bifunctors" - , "console" - , "control" - , "dodo-printer" - , "effect" - , "either" - , "enums" - , "exceptions" - , "filterable" - , "foldable-traversable" - , "free" - , "identity" - , "integers" - , "language-cst-parser" - , "lazy" - , "lists" - , "maybe" - , "newtype" - , "node-buffer" - , "node-child-process" - , "node-fs-aff" - , "node-path" - , "node-process" - , "node-streams" - , "ordered-collections" - , "parallel" - , "partial" - , "posix-types" - , "prelude" - , "record" - , "safe-coerce" - , "st" - , "strings" - , "tidy" - , "transformers" - , "tuples" - , "type-equality" - , "unicode" - ] - , repo = "https://github.com/natefaubion/purescript-tidy-codegen.git" - , version = "v4.0.0" - } - with language-cst-parser = - (upstream.language-cst-parser with version = "v0.13.0") - with tidy = - { dependencies = - [ "arrays" - , "dodo-printer" - , "foldable-traversable" - , "lists" - , "maybe" - , "ordered-collections" - , "partial" - , "prelude" - , "language-cst-parser" - , "strings" - , "tuples" - ] - , repo = "https://github.com/natefaubion/purescript-tidy.git" - , version = "v0.10.0" - } diff --git a/codegen/schema/spago.dhall b/codegen/schema/spago.dhall deleted file mode 100644 index e2a64ae..0000000 --- a/codegen/schema/spago.dhall +++ /dev/null @@ -1,68 +0,0 @@ -{- -Welcome to a Spago project! -You can edit this file as you like. --} -{ name = "graphql-client" -, repository = "https://github.com/OxfordAbstracts/purescript-graphql-client" -, license = "MIT" -, dependencies = - [ "aff" - , "aff-promise" - , "argonaut-codecs" - , "argonaut-core" - , "argonaut-generic" - , "arrays" - , "bifunctors" - , "console" - , "control" - , "datetime" - , "debug" - , "effect" - , "either" - , "enums" - , "exceptions" - , "filterable" - , "foldable-traversable" - , "foreign" - , "foreign-object" - , "functions" - , "http-methods" - , "integers" - , "language-cst-parser" - , "lists" - , "literals" - , "maybe" - , "media-types" - , "newtype" - , "node-buffer" - , "node-fs" - , "now" - , "nullable" - , "numbers" - , "ordered-collections" - , "parsing" - , "partial" - , "prelude" - , "profunctor" - , "profunctor-lenses" - , "psci-support" - , "quickcheck" - , "record" - , "record-studio" - , "spec" - , "spec-discovery" - , "strings" - , "strings-extra" - , "tidy" - , "tidy-codegen" - , "transformers" - , "tuples" - , "unfoldable" - , "unicode" - , "unsafe-coerce" - , "untagged-union" - , "variant" - ] -, packages = ./packages.dhall -, sources = [ "src/**/*.purs", "test/**/*.purs" ] -} diff --git a/codegen/schema/spago.lock b/codegen/schema/spago.lock new file mode 100644 index 0000000..787527c --- /dev/null +++ b/codegen/schema/spago.lock @@ -0,0 +1,2020 @@ +workspace: + packages: + schema: + path: ./ + core: + dependencies: + - aff + - aff-promise + - argonaut-codecs + - argonaut-core + - argonaut-generic + - arrays + - bifunctors + - console + - control + - datetime + - debug + - effect + - either + - enums + - exceptions + - filterable + - foldable-traversable + - foreign + - foreign-object + - functions + - http-methods + - integers + - language-cst-parser + - lists + - literals + - maybe + - media-types + - newtype + - node-buffer + - node-fs + - now + - nullable + - numbers + - ordered-collections + - parsing + - partial + - prelude + - profunctor + - profunctor-lenses + - psci-support + - quickcheck + - record + - record-studio + - strings + - strings-extra + - tidy + - tidy-codegen + - transformers + - tuples + - unfoldable + - unicode + - unsafe-coerce + - untagged-union + - variant + build_plan: + - aff + - aff-promise + - ansi + - argonaut-codecs + - argonaut-core + - argonaut-generic + - arraybuffer-types + - arrays + - assert + - avar + - bifunctors + - catenable-lists + - console + - const + - contravariant + - control + - datetime + - debug + - distributive + - dodo-printer + - effect + - either + - enums + - exceptions + - exists + - filterable + - foldable-traversable + - foreign + - foreign-object + - free + - functions + - functors + - gen + - heterogeneous + - http-methods + - identity + - integers + - invariant + - js-date + - language-cst-parser + - lazy + - lcg + - lists + - literals + - maybe + - media-types + - minibench + - newtype + - node-buffer + - node-child-process + - node-event-emitter + - node-fs + - node-os + - node-path + - node-process + - node-streams + - nonempty + - now + - nullable + - numbers + - ordered-collections + - orders + - parallel + - parsing + - partial + - posix-types + - prelude + - profunctor + - profunctor-lenses + - psci-support + - quickcheck + - random + - record + - record-studio + - refs + - safe-coerce + - st + - strings + - strings-extra + - tailrec + - tidy + - tidy-codegen + - transformers + - tuples + - type-equality + - typelevel-prelude + - unfoldable + - unicode + - unsafe-coerce + - untagged-union + - variant + test: + dependencies: + - spec + - spec-discovery + build_plan: + - aff + - aff-promise + - ansi + - arrays + - avar + - bifunctors + - catenable-lists + - const + - contravariant + - control + - datetime + - distributive + - effect + - either + - enums + - exceptions + - exists + - foldable-traversable + - foreign + - fork + - free + - functions + - functors + - gen + - identity + - integers + - invariant + - lazy + - lists + - maybe + - mmorph + - newtype + - nonempty + - now + - numbers + - ordered-collections + - orders + - parallel + - partial + - pipes + - prelude + - profunctor + - refs + - safe-coerce + - spec + - spec-discovery + - st + - strings + - tailrec + - transformers + - tuples + - type-equality + - unfoldable + - unsafe-coerce + package_set: + address: + registry: 60.2.1 + compiler: ">=0.15.15 <0.16.0" + content: + abc-parser: 2.0.1 + ace: 9.1.0 + address-rfc2821: 0.1.1 + aff: 8.0.0 + aff-bus: 6.0.0 + aff-coroutines: 9.0.0 + aff-promise: 4.0.0 + aff-retry: 2.0.0 + affjax: 13.0.0 + affjax-node: 1.0.0 + affjax-web: 1.0.0 + ansi: 7.0.0 + apexcharts: 0.5.0 + applicative-phases: 1.0.0 + argonaut: 9.0.0 + argonaut-aeson-generic: 0.4.1 + argonaut-codecs: 9.1.0 + argonaut-core: 7.0.0 + argonaut-generic: 8.0.0 + argonaut-traversals: 10.0.0 + argparse-basic: 2.0.0 + array-builder: 0.1.2 + array-search: 0.6.0 + arraybuffer: 13.2.0 + arraybuffer-builder: 3.1.0 + arraybuffer-types: 3.0.2 + arrays: 7.3.0 + arrays-extra: 0.6.1 + arrays-zipper: 2.0.1 + ask: 1.0.0 + assert: 6.0.0 + assert-multiple: 0.4.0 + avar: 5.0.0 + b64: 0.0.8 + barbies: 1.0.1 + barlow-lens: 0.9.0 + bifunctors: 6.0.0 + bigints: 7.0.1 + bolson: 0.3.9 + bookhound: 0.1.7 + bower-json: 3.0.0 + call-by-name: 4.0.1 + canvas: 6.0.0 + canvas-action: 9.0.0 + cartesian: 1.0.6 + catenable-lists: 7.0.0 + cbor-stream: 1.3.0 + chameleon: 1.0.0 + chameleon-halogen: 1.0.3 + chameleon-react-basic: 1.1.0 + chameleon-styled: 2.5.0 + chameleon-transformers: 1.0.0 + channel: 1.0.0 + checked-exceptions: 3.1.1 + choku: 1.0.1 + classless: 0.1.1 + classless-arbitrary: 0.1.1 + classless-decode-json: 0.1.1 + classless-encode-json: 0.1.3 + classnames: 2.0.0 + codec: 6.1.0 + codec-argonaut: 10.0.0 + codec-json: 2.0.0 + colors: 7.0.1 + concur-core: 0.5.0 + concur-react: 0.5.0 + concurrent-queues: 3.0.0 + console: 6.1.0 + const: 6.0.0 + contravariant: 6.0.0 + control: 6.0.0 + convertable-options: 1.0.0 + coroutines: 7.0.0 + css: 6.0.0 + css-frameworks: 1.0.1 + csv-stream: 2.3.0 + data-mvc: 0.0.2 + datetime: 6.1.0 + datetime-parsing: 0.2.0 + debounce: 0.1.0 + debug: 6.0.2 + decimals: 7.1.0 + default-values: 1.0.1 + deku: 0.9.23 + deno: 0.0.5 + dissect: 1.0.0 + distributive: 6.0.0 + dom-filereader: 7.0.0 + dom-indexed: 12.0.0 + dom-simple: 0.4.0 + dotenv: 4.0.3 + droplet: 0.6.0 + dts: 1.0.0 + dual-numbers: 1.0.3 + dynamic-buffer: 3.0.1 + echarts-simple: 0.0.1 + effect: 4.0.0 + either: 6.1.0 + elmish: 0.13.0 + elmish-enzyme: 0.1.1 + elmish-hooks: 0.10.3 + elmish-html: 0.9.0 + elmish-testing-library: 0.3.2 + email-validate: 7.0.0 + encoding: 0.0.9 + enums: 6.0.1 + env-names: 0.4.0 + error: 2.0.0 + eta-conversion: 0.3.2 + exceptions: 6.1.0 + exists: 6.0.0 + exitcodes: 4.0.0 + expect-inferred: 3.0.0 + ezfetch: 1.0.0 + fahrtwind: 2.0.0 + fallback: 0.1.0 + fast-vect: 1.2.0 + fetch: 4.1.0 + fetch-argonaut: 1.0.1 + fetch-core: 5.1.0 + fetch-yoga-json: 1.1.0 + ffi-simple: 0.5.1 + fft-js: 0.1.0 + filterable: 5.0.0 + fix-functor: 0.1.0 + fixed-points: 7.0.0 + fixed-precision: 5.0.0 + flame: 1.3.0 + float32: 2.0.0 + fmt: 0.2.1 + foldable-traversable: 6.0.0 + foldable-traversable-extra: 0.0.6 + foreign: 7.0.0 + foreign-object: 4.1.0 + foreign-readwrite: 3.4.0 + forgetmenot: 0.1.0 + fork: 6.0.0 + form-urlencoded: 7.0.0 + formatters: 7.0.0 + framer-motion: 1.0.1 + free: 7.1.0 + freeap: 7.0.0 + freer-free: 0.0.1 + freet: 7.0.0 + functions: 6.0.0 + functor1: 3.0.0 + functors: 5.0.0 + fuzzy: 0.4.0 + gen: 4.0.0 + generate-values: 1.0.1 + generic-router: 0.0.1 + geojson: 0.0.5 + geometria: 2.2.0 + gojs: 0.1.1 + grain: 3.0.0 + grain-router: 3.0.0 + grain-virtualized: 3.0.0 + graphs: 8.1.0 + group: 4.1.1 + halogen: 7.0.0 + halogen-bootstrap5: 5.3.2 + halogen-canvas: 1.0.0 + halogen-css: 10.0.0 + halogen-echarts-simple: 0.0.4 + halogen-formless: 4.0.3 + halogen-helix: 1.0.1 + halogen-hooks: 0.6.3 + halogen-hooks-extra: 0.9.0 + halogen-infinite-scroll: 1.1.0 + halogen-store: 0.5.4 + halogen-storybook: 2.0.0 + halogen-subscriptions: 2.0.0 + halogen-svg-elems: 8.0.0 + halogen-typewriter: 1.0.4 + halogen-vdom: 8.0.0 + halogen-vdom-string-renderer: 0.5.0 + halogen-xterm: 2.0.0 + heckin: 2.0.1 + heterogeneous: 0.6.0 + homogeneous: 0.4.0 + http-methods: 6.0.0 + httpurple: 4.0.0 + huffman: 0.4.0 + humdrum: 0.0.1 + hyrule: 2.3.8 + identity: 6.0.0 + identy: 4.0.1 + indexed-db: 1.0.0 + indexed-monad: 3.0.0 + int64: 3.0.0 + integers: 6.0.0 + interpolate: 5.0.2 + intersection-observer: 1.0.1 + invariant: 6.0.0 + jarilo: 1.0.1 + jelly: 0.10.0 + jelly-router: 0.3.0 + jelly-signal: 0.4.0 + jest: 1.0.0 + js-abort-controller: 1.0.0 + js-bigints: 2.2.1 + js-date: 8.0.0 + js-fetch: 0.2.1 + js-fileio: 3.0.0 + js-intl: 1.0.4 + js-iterators: 0.1.1 + js-maps: 0.1.2 + js-promise: 1.0.0 + js-promise-aff: 1.0.0 + js-timers: 6.1.0 + js-uri: 3.1.0 + json: 1.1.0 + json-codecs: 5.0.0 + justifill: 0.5.0 + jwt: 0.0.9 + labeled-data: 0.2.0 + language-cst-parser: 0.14.0 + lazy: 6.0.0 + lazy-joe: 1.0.0 + lcg: 4.0.0 + leibniz: 5.0.0 + leveldb: 1.0.1 + liminal: 1.0.1 + linalg: 6.0.0 + lists: 7.0.0 + literals: 1.0.2 + logging: 3.0.0 + logging-journald: 0.4.0 + lumi-components: 18.0.0 + machines: 7.0.0 + maps-eager: 0.5.0 + marionette: 1.0.0 + marionette-react-basic-hooks: 0.1.1 + marked: 0.1.0 + matrices: 5.0.1 + matryoshka: 1.0.0 + maybe: 6.0.0 + media-types: 6.0.0 + meowclient: 1.0.0 + midi: 4.0.0 + milkis: 9.0.0 + minibench: 4.0.1 + mmorph: 7.0.0 + monad-control: 5.0.0 + monad-logger: 1.3.1 + monad-loops: 0.5.0 + monad-unlift: 1.0.1 + monoid-extras: 0.0.1 + monoidal: 0.16.0 + morello: 0.4.0 + mote: 3.0.0 + motsunabe: 2.0.0 + mvc: 0.0.1 + mysql: 6.0.1 + n3: 0.1.0 + nano-id: 1.1.0 + nanoid: 0.1.0 + naturals: 3.0.0 + nested-functor: 0.2.1 + newtype: 5.0.0 + nextjs: 0.1.1 + nextui: 0.2.0 + node-buffer: 9.0.0 + node-child-process: 11.1.0 + node-event-emitter: 3.0.0 + node-execa: 5.0.0 + node-fs: 9.2.0 + node-glob-basic: 1.3.0 + node-http: 9.1.0 + node-http2: 1.1.1 + node-human-signals: 1.0.0 + node-net: 5.1.0 + node-os: 5.1.0 + node-path: 5.0.0 + node-process: 11.2.0 + node-readline: 8.1.1 + node-sqlite3: 8.0.0 + node-stream-pipes: 2.1.6 + node-streams: 9.0.0 + node-tls: 0.3.1 + node-url: 7.0.1 + node-zlib: 0.4.0 + nonempty: 7.0.0 + now: 6.0.0 + npm-package-json: 2.0.0 + nullable: 6.0.0 + numberfield: 0.2.2 + numbers: 9.0.1 + oak: 3.1.1 + oak-debug: 1.2.2 + object-maps: 0.3.0 + ocarina: 1.5.4 + oooooooooorrrrrrrmm-lib: 0.0.1 + open-folds: 6.4.0 + open-foreign-generic: 11.0.3 + open-memoize: 6.2.0 + open-mkdirp-aff: 1.2.0 + open-pairing: 6.2.0 + open-smolder: 12.0.2 + options: 7.0.0 + optparse: 5.0.1 + ordered-collections: 3.2.0 + ordered-set: 0.4.0 + orders: 6.0.0 + owoify: 1.2.0 + pairs: 9.0.1 + parallel: 7.0.0 + parsing: 10.2.0 + parsing-dataview: 3.2.4 + partial: 4.0.0 + pathy: 9.0.0 + pha: 0.13.0 + phaser: 0.7.0 + phylio: 1.1.2 + pipes: 8.0.0 + pirates-charm: 0.0.1 + pmock: 0.9.0 + point-free: 1.0.0 + pointed-list: 0.5.1 + polymorphic-vectors: 4.0.0 + posix-types: 6.0.0 + postgresql: 2.0.19 + precise: 6.0.0 + precise-datetime: 7.0.0 + prelude: 6.0.1 + prettier-printer: 3.0.0 + priority-queue: 0.1.2 + profunctor: 6.0.1 + profunctor-lenses: 8.0.0 + protobuf: 4.3.0 + psa-utils: 8.0.0 + psci-support: 6.0.0 + punycode: 1.0.0 + qualified-do: 2.2.0 + quantities: 12.2.0 + quickcheck: 8.0.1 + quickcheck-combinators: 0.1.3 + quickcheck-laws: 7.0.0 + quickcheck-utf8: 0.0.0 + random: 6.0.0 + rationals: 6.0.0 + rdf: 0.1.0 + react: 11.0.0 + react-aria: 0.2.0 + react-basic: 17.0.0 + react-basic-classic: 3.0.0 + react-basic-dnd: 10.1.0 + react-basic-dom: 6.1.0 + react-basic-emotion: 7.1.0 + react-basic-hooks: 8.2.0 + react-basic-storybook: 2.0.0 + react-dom: 8.0.0 + react-halo: 3.0.0 + react-icons: 1.1.5 + react-markdown: 0.1.0 + react-testing-library: 4.0.1 + react-virtuoso: 1.0.0 + reactix: 0.6.1 + read: 1.0.1 + recharts: 1.1.0 + record: 4.0.0 + record-extra: 5.0.1 + record-ptional-fields: 0.1.2 + record-studio: 1.0.4 + refs: 6.0.0 + remotedata: 5.0.1 + repr: 0.5.0 + resize-observer: 1.0.0 + resource: 2.0.1 + resourcet: 1.0.0 + result: 1.0.3 + return: 0.2.0 + ring-modules: 5.0.1 + rito: 0.3.4 + roman: 0.4.0 + rough-notation: 1.0.2 + routing: 11.0.0 + routing-duplex: 0.7.0 + run: 5.0.0 + safe-coerce: 2.0.0 + safely: 4.0.1 + school-of-music: 1.3.0 + selection-foldable: 0.2.0 + selective-functors: 1.0.1 + semirings: 7.0.0 + signal: 13.0.0 + simple-emitter: 3.0.1 + simple-i18n: 2.0.1 + simple-json: 9.0.0 + simple-json-generics: 0.2.1 + simple-ulid: 3.0.0 + sized-matrices: 1.0.0 + sized-vectors: 5.0.2 + slug: 3.1.0 + small-ffi: 4.0.1 + soundfonts: 4.1.0 + sparse-matrices: 2.0.1 + sparse-polynomials: 3.0.1 + spec: 8.0.0 + spec-discovery: 8.3.0 + spec-mocha: 5.1.1 + spec-node: 0.0.2 + spec-quickcheck: 5.0.2 + spec-reporter-xunit: 0.7.1 + splitmix: 2.1.0 + ssrs: 1.0.0 + st: 6.2.0 + statistics: 0.3.2 + strictlypositiveint: 1.0.1 + string-parsers: 8.0.0 + strings: 6.0.1 + strings-extra: 4.0.0 + stringutils: 0.0.12 + substitute: 0.2.3 + supply: 0.2.0 + svg-parser: 3.0.0 + systemd-journald: 0.3.0 + tagged: 4.0.2 + tailrec: 6.1.0 + tecton: 0.2.1 + tecton-halogen: 0.2.0 + test-unit: 17.0.0 + thermite: 6.3.1 + thermite-dom: 0.3.1 + these: 6.0.0 + threading: 0.0.3 + tldr: 0.0.0 + toestand: 0.9.0 + transformation-matrix: 1.0.1 + transformers: 6.1.0 + tree-rose: 4.0.2 + ts-bridge: 4.0.0 + tuples: 7.0.0 + two-or-more: 1.0.0 + type-equality: 4.0.1 + typedenv: 2.0.1 + typelevel: 6.0.0 + typelevel-lists: 2.1.0 + typelevel-peano: 1.0.1 + typelevel-prelude: 7.0.0 + typelevel-regex: 0.0.3 + typelevel-rows: 0.1.0 + typisch: 0.4.0 + uint: 7.0.0 + ulid: 3.0.1 + uncurried-transformers: 1.1.0 + undefined: 2.0.0 + undefined-is-not-a-problem: 1.1.0 + unfoldable: 6.0.0 + unicode: 6.0.0 + unique: 0.6.1 + unlift: 1.0.1 + unordered-collections: 3.1.0 + unsafe-coerce: 6.0.0 + unsafe-reference: 5.0.0 + untagged-to-tagged: 0.1.4 + untagged-union: 1.0.0 + uri: 9.0.0 + url-immutable: 1.0.0 + uuid: 9.0.0 + uuidv4: 1.0.0 + validation: 6.0.0 + variant: 8.0.0 + variant-encodings: 2.0.0 + vectorfield: 1.0.1 + vectors: 2.1.0 + versions: 7.0.0 + visx: 0.0.2 + web-clipboard: 6.0.0 + web-cssom: 2.0.0 + web-cssom-view: 0.1.0 + web-dom: 6.0.0 + web-dom-parser: 8.0.0 + web-dom-xpath: 3.0.0 + web-encoding: 3.0.0 + web-events: 4.0.0 + web-fetch: 4.0.1 + web-file: 4.0.0 + web-geometry: 0.1.0 + web-html: 4.1.0 + web-pointerevents: 2.0.0 + web-proletarian: 1.0.0 + web-promise: 3.2.0 + web-resize-observer: 2.1.0 + web-router: 1.0.0 + web-socket: 4.0.0 + web-storage: 5.0.0 + web-streams: 4.0.0 + web-touchevents: 4.0.0 + web-uievents: 5.0.0 + web-url: 2.0.0 + web-workers: 1.1.0 + web-xhr: 5.0.1 + webextension-polyfill: 0.1.0 + webgpu: 0.0.1 + which: 2.0.0 + xterm: 1.0.0 + yoga-fetch: 1.0.1 + yoga-json: 5.1.0 + yoga-om: 0.1.0 + yoga-postgres: 6.0.0 + yoga-tree: 1.0.0 + z3: 0.0.2 + zipperarray: 2.0.0 + extra_packages: + dodo-printer: + repo: https://github.com/natefaubion/purescript-dodo-printer.git + version: v2.2.1 + dependencies: + - aff + - ansi + - arrays + - avar + - console + - control + - effect + - either + - exceptions + - foldable-traversable + - integers + - lists + - maybe + - minibench + - newtype + - node-buffer + - node-child-process + - node-path + - node-process + - node-streams + - parallel + - partial + - posix-types + - prelude + - safe-coerce + - strings + - tuples + graphql-client: + path: ../../graphql-client + tidy: + repo: https://github.com/natefaubion/purescript-tidy.git + version: v0.10.0 + dependencies: + - arrays + - dodo-printer + - foldable-traversable + - lists + - maybe + - ordered-collections + - partial + - prelude + - language-cst-parser + - strings + - tuples + tidy-codegen: + repo: https://github.com/natefaubion/purescript-tidy-codegen.git + version: v4.0.0 + dependencies: + - aff + - ansi + - arrays + - avar + - bifunctors + - console + - control + - dodo-printer + - effect + - either + - enums + - exceptions + - filterable + - foldable-traversable + - free + - identity + - integers + - language-cst-parser + - lazy + - lists + - maybe + - newtype + - node-buffer + - node-child-process + - node-path + - node-process + - node-streams + - ordered-collections + - parallel + - partial + - posix-types + - prelude + - record + - safe-coerce + - st + - strings + - tidy + - transformers + - tuples + - type-equality + - unicode +packages: + aff: + type: registry + version: 8.0.0 + integrity: sha256-5MmdI4+0RHBtSBy+YlU3/Cq4R5W2ih3OaRedJIrVHdk= + dependencies: + - bifunctors + - control + - datetime + - effect + - either + - exceptions + - foldable-traversable + - functions + - maybe + - newtype + - parallel + - prelude + - refs + - tailrec + - transformers + - unsafe-coerce + aff-promise: + type: registry + version: 4.0.0 + integrity: sha256-Kq5EupbUpXeUXx4JqGQE7/RTTz/H6idzWhsocwlEFhM= + dependencies: + - aff + - foreign + ansi: + type: registry + version: 7.0.0 + integrity: sha256-ZMB6HD+q9CXvn9fRCmJ8dvuDrOVHcjombL3oNOerVnE= + dependencies: + - foldable-traversable + - lists + - strings + argonaut-codecs: + type: registry + version: 9.1.0 + integrity: sha256-N6efXByUeg848ompEqJfVvZuZPfdRYDGlTDFn0G0Oh8= + dependencies: + - argonaut-core + - arrays + - effect + - foreign-object + - identity + - integers + - maybe + - nonempty + - ordered-collections + - prelude + - record + argonaut-core: + type: registry + version: 7.0.0 + integrity: sha256-RC82GfAjItydxrO24cdX373KHVZiLqybu19b5X8u7B4= + dependencies: + - arrays + - control + - either + - foreign-object + - functions + - gen + - maybe + - nonempty + - prelude + - strings + - tailrec + argonaut-generic: + type: registry + version: 8.0.0 + integrity: sha256-WCqRWoomRKg5BFZnGBS4k4SqBX84fy/X1aJzMyaIeP0= + dependencies: + - argonaut-codecs + - argonaut-core + - prelude + - record + arraybuffer-types: + type: registry + version: 3.0.2 + integrity: sha256-mQKokysYVkooS4uXbO+yovmV/s8b138Ws3zQvOwIHRA= + dependencies: [] + arrays: + type: registry + version: 7.3.0 + integrity: sha256-tmcklBlc/muUtUfr9RapdCPwnlQeB3aSrC4dK85gQlc= + dependencies: + - bifunctors + - control + - foldable-traversable + - functions + - maybe + - nonempty + - partial + - prelude + - safe-coerce + - st + - tailrec + - tuples + - unfoldable + - unsafe-coerce + assert: + type: registry + version: 6.0.0 + integrity: sha256-hCSYcCw9kj3qujoDcriWhCdmrpPZoguSPDZhEMnTl3A= + dependencies: + - console + - effect + - prelude + avar: + type: registry + version: 5.0.0 + integrity: sha256-e7hf0x4hEpcygXP0LtvfvAQ49Bbj2aWtZT3gqM///0A= + dependencies: + - aff + - effect + - either + - exceptions + - functions + - maybe + bifunctors: + type: registry + version: 6.0.0 + integrity: sha256-/gZwC9YhNxZNQpnHa5BIYerCGM2jeX9ukZiEvYxm5Nw= + dependencies: + - const + - either + - newtype + - prelude + - tuples + catenable-lists: + type: registry + version: 7.0.0 + integrity: sha256-76vYENhwF4BWTBsjeLuErCH2jqVT4M3R1HX+4RwSftA= + dependencies: + - control + - foldable-traversable + - lists + - maybe + - prelude + - tuples + - unfoldable + console: + type: registry + version: 6.1.0 + integrity: sha256-CxmAzjgyuGDmt9FZW51VhV6rBPwR6o0YeKUzA9rSzcM= + dependencies: + - effect + - prelude + const: + type: registry + version: 6.0.0 + integrity: sha256-tNrxDW8D8H4jdHE2HiPzpLy08zkzJMmGHdRqt5BQuTc= + dependencies: + - invariant + - newtype + - prelude + contravariant: + type: registry + version: 6.0.0 + integrity: sha256-TP+ooAp3vvmdjfQsQJSichF5B4BPDHp3wAJoWchip6c= + dependencies: + - const + - either + - newtype + - prelude + - tuples + control: + type: registry + version: 6.0.0 + integrity: sha256-sH7Pg9E96JCPF9PIA6oQ8+BjTyO/BH1ZuE/bOcyj4Jk= + dependencies: + - newtype + - prelude + datetime: + type: registry + version: 6.1.0 + integrity: sha256-g/5X5BBegQWLpI9IWD+sY6mcaYpzzlW5lz5NBzaMtyI= + dependencies: + - bifunctors + - control + - either + - enums + - foldable-traversable + - functions + - gen + - integers + - lists + - maybe + - newtype + - numbers + - ordered-collections + - partial + - prelude + - tuples + debug: + type: registry + version: 6.0.2 + integrity: sha256-vmkYFuXYuELBzeauvgHG6E6Kf/Hp1dAnxwE9ByHfwSg= + dependencies: + - functions + - prelude + distributive: + type: registry + version: 6.0.0 + integrity: sha256-HTDdmEnzigMl+02SJB88j+gAXDx9VKsbvR4MJGDPbOQ= + dependencies: + - identity + - newtype + - prelude + - tuples + - type-equality + dodo-printer: + type: git + url: https://github.com/natefaubion/purescript-dodo-printer.git + rev: 831c5c963a57ca4bfd62f96335267d7d0785851d + dependencies: + - aff + - ansi + - arrays + - avar + - console + - control + - effect + - either + - exceptions + - foldable-traversable + - integers + - lists + - maybe + - minibench + - newtype + - node-buffer + - node-child-process + - node-path + - node-process + - node-streams + - parallel + - partial + - posix-types + - prelude + - safe-coerce + - strings + - tuples + effect: + type: registry + version: 4.0.0 + integrity: sha256-eBtZu+HZcMa5HilvI6kaDyVX3ji8p0W9MGKy2K4T6+M= + dependencies: + - prelude + either: + type: registry + version: 6.1.0 + integrity: sha256-6hgTPisnMWVwQivOu2PKYcH8uqjEOOqDyaDQVUchTpY= + dependencies: + - control + - invariant + - maybe + - prelude + enums: + type: registry + version: 6.0.1 + integrity: sha256-HWaD73JFLorc4A6trKIRUeDMdzE+GpkJaEOM1nTNkC8= + dependencies: + - control + - either + - gen + - maybe + - newtype + - nonempty + - partial + - prelude + - tuples + - unfoldable + exceptions: + type: registry + version: 6.1.0 + integrity: sha256-K0T89IHtF3vBY7eSAO7eDOqSb2J9kZGAcDN5+IKsF8E= + dependencies: + - effect + - either + - maybe + - prelude + exists: + type: registry + version: 6.0.0 + integrity: sha256-A0JQHpTfo1dNOj9U5/Fd3xndlRSE0g2IQWOGor2yXn8= + dependencies: + - unsafe-coerce + filterable: + type: registry + version: 5.0.0 + integrity: sha256-cCojJHRnTmpY1j1kegI4CFwghdQ2Fm/8dzM8IlC+lng= + dependencies: + - arrays + - either + - foldable-traversable + - identity + - lists + - ordered-collections + foldable-traversable: + type: registry + version: 6.0.0 + integrity: sha256-fLeqRYM4jUrZD5H4WqcwUgzU7XfYkzO4zhgtNc3jcWM= + dependencies: + - bifunctors + - const + - control + - either + - functors + - identity + - maybe + - newtype + - orders + - prelude + - tuples + foreign: + type: registry + version: 7.0.0 + integrity: sha256-1ORiqoS3HW+qfwSZAppHPWy4/6AQysxZ2t29jcdUMNA= + dependencies: + - either + - functions + - identity + - integers + - lists + - maybe + - prelude + - strings + - transformers + foreign-object: + type: registry + version: 4.1.0 + integrity: sha256-q24okj6mT+yGHYQ+ei/pYPj5ih6sTbu7eDv/WU56JVo= + dependencies: + - arrays + - foldable-traversable + - functions + - gen + - lists + - maybe + - prelude + - st + - tailrec + - tuples + - typelevel-prelude + - unfoldable + fork: + type: registry + version: 6.0.0 + integrity: sha256-X7u0SuCvFbLbzuNEKLBNuWjmcroqMqit4xEzpQwAP7E= + dependencies: + - aff + free: + type: registry + version: 7.1.0 + integrity: sha256-JAumgEsGSzJCNLD8AaFvuX7CpqS5yruCngi6yI7+V5k= + dependencies: + - catenable-lists + - control + - distributive + - either + - exists + - foldable-traversable + - invariant + - lazy + - maybe + - prelude + - tailrec + - transformers + - tuples + - unsafe-coerce + functions: + type: registry + version: 6.0.0 + integrity: sha256-adMyJNEnhGde2unHHAP79gPtlNjNqzgLB8arEOn9hLI= + dependencies: + - prelude + functors: + type: registry + version: 5.0.0 + integrity: sha256-zfPWWYisbD84MqwpJSZFlvM6v86McM68ob8p9s27ywU= + dependencies: + - bifunctors + - const + - contravariant + - control + - distributive + - either + - invariant + - maybe + - newtype + - prelude + - profunctor + - tuples + - unsafe-coerce + gen: + type: registry + version: 4.0.0 + integrity: sha256-f7yzAXWwr+xnaqEOcvyO3ezKdoes8+WXWdXIHDBCAPI= + dependencies: + - either + - foldable-traversable + - identity + - maybe + - newtype + - nonempty + - prelude + - tailrec + - tuples + - unfoldable + heterogeneous: + type: registry + version: 0.6.0 + integrity: sha256-cfNYSK6yYmjTrkzk95Otpv6TUUkeBreexwqG/tBvUyg= + dependencies: + - either + - functors + - prelude + - record + - tuples + - variant + http-methods: + type: registry + version: 6.0.0 + integrity: sha256-Orr7rbDGcp7qoqmUMXPRMjBx+C4jqOQcFe9+gE3nMgU= + dependencies: + - either + - prelude + - strings + identity: + type: registry + version: 6.0.0 + integrity: sha256-4wY0XZbAksjY6UAg99WkuKyJlQlWAfTi2ssadH0wVMY= + dependencies: + - control + - invariant + - newtype + - prelude + integers: + type: registry + version: 6.0.0 + integrity: sha256-sf+sK26R1hzwl3NhXR7WAu9zCDjQnfoXwcyGoseX158= + dependencies: + - maybe + - numbers + - prelude + invariant: + type: registry + version: 6.0.0 + integrity: sha256-RGWWyYrz0Hs1KjPDA+87Kia67ZFBhfJ5lMGOMCEFoLo= + dependencies: + - control + - prelude + js-date: + type: registry + version: 8.0.0 + integrity: sha256-6TVF4DWg5JL+jRAsoMssYw8rgOVALMUHT1CuNZt8NRo= + dependencies: + - datetime + - effect + - exceptions + - foreign + - integers + - now + language-cst-parser: + type: registry + version: 0.14.0 + integrity: sha256-GB5HkoWkgsb1xtdchaq7+CerQTVyene5+aR6RsEZv2w= + dependencies: + - arrays + - const + - control + - effect + - either + - enums + - foldable-traversable + - free + - functions + - functors + - identity + - integers + - lazy + - lists + - maybe + - newtype + - numbers + - ordered-collections + - partial + - prelude + - st + - strings + - transformers + - tuples + - typelevel-prelude + - unfoldable + - unsafe-coerce + lazy: + type: registry + version: 6.0.0 + integrity: sha256-lMsfFOnlqfe4KzRRiW8ot5ge6HtcU3Eyh2XkXcP5IgU= + dependencies: + - control + - foldable-traversable + - invariant + - prelude + lcg: + type: registry + version: 4.0.0 + integrity: sha256-h7ME5cthLfbgJOJdsZcSfFpwXsx4rf8YmhebU+3iSYg= + dependencies: + - effect + - integers + - maybe + - partial + - prelude + - random + lists: + type: registry + version: 7.0.0 + integrity: sha256-EKF15qYqucuXP2lT/xPxhqy58f0FFT6KHdIB/yBOayI= + dependencies: + - bifunctors + - control + - foldable-traversable + - lazy + - maybe + - newtype + - nonempty + - partial + - prelude + - tailrec + - tuples + - unfoldable + literals: + type: registry + version: 1.0.2 + integrity: sha256-RaeNZPykLhdJXYcx463xiwyC3XghrSQAqqeU28tDNW0= + dependencies: + - integers + - maybe + - numbers + - partial + - prelude + - typelevel-prelude + - unsafe-coerce + maybe: + type: registry + version: 6.0.0 + integrity: sha256-5cCIb0wPwbat2PRkQhUeZO0jcAmf8jCt2qE0wbC3v2Q= + dependencies: + - control + - invariant + - newtype + - prelude + media-types: + type: registry + version: 6.0.0 + integrity: sha256-n/4FoGBasbVSYscGVRSyBunQ6CZbL3jsYL+Lp01mc9k= + dependencies: + - newtype + - prelude + minibench: + type: registry + version: 4.0.1 + integrity: sha256-7jyxcklZI49q/otYvMV4f9YnJwEqQ3Me5buhDwAOydw= + dependencies: + - console + - effect + - integers + - numbers + - partial + - prelude + - refs + mmorph: + type: registry + version: 7.0.0 + integrity: sha256-urZlZNNqGeQFe5D/ClHlR8QgGBNHTMFPtJ5S5IpflTQ= + dependencies: + - free + - functors + - transformers + newtype: + type: registry + version: 5.0.0 + integrity: sha256-gdrQu8oGe9eZE6L3wOI8ql/igOg+zEGB5ITh2g+uttw= + dependencies: + - prelude + - safe-coerce + node-buffer: + type: registry + version: 9.0.0 + integrity: sha256-PWE2DJ5ruBLCmeA/fUiuySEFmUJ/VuRfyrnCuVZBlu4= + dependencies: + - arraybuffer-types + - effect + - maybe + - nullable + - st + - unsafe-coerce + node-child-process: + type: registry + version: 11.1.0 + integrity: sha256-vioMNgk8p+CGwlb6T3I3TIir27el85Yg4satLE/I89w= + dependencies: + - exceptions + - foreign + - foreign-object + - functions + - node-event-emitter + - node-fs + - node-os + - node-streams + - nullable + - posix-types + - unsafe-coerce + node-event-emitter: + type: registry + version: 3.0.0 + integrity: sha256-Qw0MjsT4xRH2j2i4K8JmRjcMKnH5z1Cw39t00q4LE4w= + dependencies: + - effect + - either + - functions + - maybe + - nullable + - prelude + - unsafe-coerce + node-fs: + type: registry + version: 9.2.0 + integrity: sha256-Sg0vkXycEzkEerX6hLccz21Ygd9w1+QSk1thotRZPGI= + dependencies: + - datetime + - effect + - either + - enums + - exceptions + - functions + - integers + - js-date + - maybe + - node-buffer + - node-path + - node-streams + - nullable + - partial + - prelude + - strings + - unsafe-coerce + node-os: + type: registry + version: 5.1.0 + integrity: sha256-K3gcu9AXanN1+qtk1900+Fi+CuO0s3/H/RMNRNgIzso= + dependencies: + - arrays + - bifunctors + - console + - control + - datetime + - effect + - either + - exceptions + - foldable-traversable + - foreign + - foreign-object + - functions + - maybe + - node-buffer + - nullable + - partial + - posix-types + - prelude + - unsafe-coerce + node-path: + type: registry + version: 5.0.0 + integrity: sha256-pd82nQ+2l5UThzaxPdKttgDt7xlsgIDLpPG0yxDEdyE= + dependencies: + - effect + node-process: + type: registry + version: 11.2.0 + integrity: sha256-+2MQDYChjGbVbapCyJtuWYwD41jk+BntF/kcOTKBMVs= + dependencies: + - effect + - foreign + - foreign-object + - maybe + - node-event-emitter + - node-streams + - posix-types + - prelude + - unsafe-coerce + node-streams: + type: registry + version: 9.0.0 + integrity: sha256-2n6dq7YWleTDmD1Kur/ul7Cn08IvWrScgPf+0PgX2TQ= + dependencies: + - aff + - effect + - either + - exceptions + - node-buffer + - node-event-emitter + - nullable + - prelude + nonempty: + type: registry + version: 7.0.0 + integrity: sha256-54ablJZUHGvvlTJzi3oXyPCuvY6zsrWJuH/dMJ/MFLs= + dependencies: + - control + - foldable-traversable + - maybe + - prelude + - tuples + - unfoldable + now: + type: registry + version: 6.0.0 + integrity: sha256-xZ7x37ZMREfs6GCDw/h+FaKHV/3sPWmtqBZRGTxybQY= + dependencies: + - datetime + - effect + nullable: + type: registry + version: 6.0.0 + integrity: sha256-yiGBVl3AD+Guy4kNWWeN+zl1gCiJK+oeIFtZtPCw4+o= + dependencies: + - effect + - functions + - maybe + numbers: + type: registry + version: 9.0.1 + integrity: sha256-/9M6aeMDBdB4cwYDeJvLFprAHZ49EbtKQLIJsneXLIk= + dependencies: + - functions + - maybe + ordered-collections: + type: registry + version: 3.2.0 + integrity: sha256-o9jqsj5rpJmMdoe/zyufWHFjYYFTTsJpgcuCnqCO6PM= + dependencies: + - arrays + - foldable-traversable + - gen + - lists + - maybe + - partial + - prelude + - st + - tailrec + - tuples + - unfoldable + orders: + type: registry + version: 6.0.0 + integrity: sha256-nBA0g3/ai0euH8q9pSbGqk53W2q6agm/dECZTHcoink= + dependencies: + - newtype + - prelude + parallel: + type: registry + version: 7.0.0 + integrity: sha256-gUC9i4Txnx9K9RcMLsjujbwZz6BB1bnE2MLvw4GIw5o= + dependencies: + - control + - effect + - either + - foldable-traversable + - functors + - maybe + - newtype + - prelude + - profunctor + - refs + - transformers + parsing: + type: registry + version: 10.2.0 + integrity: sha256-ZDIdMFAKkst57x6BVa1aUWJnS8smoZnXsZ339Aq1mPA= + dependencies: + - arrays + - control + - effect + - either + - enums + - foldable-traversable + - functions + - identity + - integers + - lazy + - lists + - maybe + - newtype + - nullable + - numbers + - partial + - prelude + - st + - strings + - tailrec + - transformers + - tuples + - unfoldable + - unicode + - unsafe-coerce + partial: + type: registry + version: 4.0.0 + integrity: sha256-fwXerld6Xw1VkReh8yeQsdtLVrjfGiVuC5bA1Wyo/J4= + dependencies: [] + pipes: + type: registry + version: 8.0.0 + integrity: sha256-kvfqGM4cPA/wCcBHbp5psouFw5dZGvku2462x7ZBwSY= + dependencies: + - aff + - lists + - mmorph + - prelude + - tailrec + - transformers + - tuples + posix-types: + type: registry + version: 6.0.0 + integrity: sha256-ZfFz8RR1lee/o/Prccyeut3Q+9tYd08mlR72sIh6GzA= + dependencies: + - maybe + - prelude + prelude: + type: registry + version: 6.0.1 + integrity: sha256-o8p6SLYmVPqzXZhQFd2hGAWEwBoXl1swxLG/scpJ0V0= + dependencies: [] + profunctor: + type: registry + version: 6.0.1 + integrity: sha256-E58hSYdJvF2Qjf9dnWLPlJKh2Z2fLfFLkQoYi16vsFk= + dependencies: + - control + - distributive + - either + - exists + - invariant + - newtype + - prelude + - tuples + profunctor-lenses: + type: registry + version: 8.0.0 + integrity: sha256-K7f29rHRHgVSb2Y/PaSKtfYPriP6n87BJNO7EhsZHas= + dependencies: + - arrays + - bifunctors + - const + - control + - distributive + - either + - foldable-traversable + - foreign-object + - functors + - identity + - lists + - maybe + - newtype + - ordered-collections + - partial + - prelude + - profunctor + - record + - transformers + - tuples + psci-support: + type: registry + version: 6.0.0 + integrity: sha256-C6ql4P9TEP06hft/1Z5QumPA4yARR4VIxDdhmL1EO+Y= + dependencies: + - console + - effect + - prelude + quickcheck: + type: registry + version: 8.0.1 + integrity: sha256-ZvpccKQCvgslTXZCNmpYW4bUsFzhZd/kQUr2WmxFTGY= + dependencies: + - arrays + - console + - control + - effect + - either + - enums + - exceptions + - foldable-traversable + - gen + - identity + - integers + - lazy + - lcg + - lists + - maybe + - newtype + - nonempty + - numbers + - partial + - prelude + - record + - st + - strings + - tailrec + - transformers + - tuples + - unfoldable + random: + type: registry + version: 6.0.0 + integrity: sha256-CJ611a35MPCE7XQMp0rdC6MCn76znlhisiCRgboAG+Q= + dependencies: + - effect + - integers + record: + type: registry + version: 4.0.0 + integrity: sha256-Za5U85bTRJEfGK5Sk4hM41oXy84YQI0I8TL3WUn1Qzg= + dependencies: + - functions + - prelude + - unsafe-coerce + record-studio: + type: registry + version: 1.0.4 + integrity: sha256-9v6qpUrGa17Im/F/vWODjKlmD3ZuUXYIKCpz5OI9seM= + dependencies: + - heterogeneous + - lists + - prelude + - record + - typelevel-prelude + refs: + type: registry + version: 6.0.0 + integrity: sha256-Vgwne7jIbD3ZMoLNNETLT8Litw6lIYo3MfYNdtYWj9s= + dependencies: + - effect + - prelude + safe-coerce: + type: registry + version: 2.0.0 + integrity: sha256-a1ibQkiUcbODbLE/WAq7Ttbbh9ex+x33VCQ7GngKudU= + dependencies: + - unsafe-coerce + spec: + type: registry + version: 8.0.0 + integrity: sha256-Yn7MhDai1YULlQF45+9FTOTf2rcjoda1Jf2IrEFCoeg= + dependencies: + - aff + - ansi + - arrays + - avar + - bifunctors + - control + - datetime + - effect + - either + - exceptions + - foldable-traversable + - fork + - identity + - integers + - lists + - maybe + - newtype + - now + - ordered-collections + - parallel + - pipes + - prelude + - refs + - strings + - tailrec + - transformers + - tuples + spec-discovery: + type: registry + version: 8.3.0 + integrity: sha256-9F5mAPIlvEkzUFLvHp3zRpwlafANsVSdwkshKeb/PIk= + dependencies: + - aff + - aff-promise + - effect + - foldable-traversable + - prelude + - spec + st: + type: registry + version: 6.2.0 + integrity: sha256-z9X0WsOUlPwNx9GlCC+YccCyz8MejC8Wb0C4+9fiBRY= + dependencies: + - partial + - prelude + - tailrec + - unsafe-coerce + strings: + type: registry + version: 6.0.1 + integrity: sha256-WssD3DbX4OPzxSdjvRMX0yvc9+pS7n5gyPv5I2Trb7k= + dependencies: + - arrays + - control + - either + - enums + - foldable-traversable + - gen + - integers + - maybe + - newtype + - nonempty + - partial + - prelude + - tailrec + - tuples + - unfoldable + - unsafe-coerce + strings-extra: + type: registry + version: 4.0.0 + integrity: sha256-tah7VFvEvFF4tpWXgWwGFIynpWHkYe5tpy6bWi5tMpU= + dependencies: + - arrays + - foldable-traversable + - maybe + - prelude + - strings + - unicode + tailrec: + type: registry + version: 6.1.0 + integrity: sha256-Xx19ECVDRrDWpz9D2GxQHHV89vd61dnXxQm0IcYQHGk= + dependencies: + - bifunctors + - effect + - either + - identity + - maybe + - partial + - prelude + - refs + tidy: + type: git + url: https://github.com/natefaubion/purescript-tidy.git + rev: 42db77a3d9b0985021d970404195ca8bb2857ee0 + dependencies: + - arrays + - dodo-printer + - foldable-traversable + - language-cst-parser + - lists + - maybe + - ordered-collections + - partial + - prelude + - strings + - tuples + tidy-codegen: + type: git + url: https://github.com/natefaubion/purescript-tidy-codegen.git + rev: a6ed54719e28338a621a311219a3bf4e33abe289 + dependencies: + - aff + - ansi + - arrays + - avar + - bifunctors + - console + - control + - dodo-printer + - effect + - either + - enums + - exceptions + - filterable + - foldable-traversable + - free + - identity + - integers + - language-cst-parser + - lazy + - lists + - maybe + - newtype + - node-buffer + - node-child-process + - node-path + - node-process + - node-streams + - ordered-collections + - parallel + - partial + - posix-types + - prelude + - record + - safe-coerce + - st + - strings + - tidy + - transformers + - tuples + - type-equality + - unicode + transformers: + type: registry + version: 6.1.0 + integrity: sha256-3Bm+Z6tsC/paG888XkywDngJ2JMos+JfOhRlkVfb7gI= + dependencies: + - control + - distributive + - effect + - either + - exceptions + - foldable-traversable + - identity + - lazy + - maybe + - newtype + - prelude + - st + - tailrec + - tuples + - unfoldable + tuples: + type: registry + version: 7.0.0 + integrity: sha256-1rXgTomes9105BjgXqIw0FL6Fz1lqqUTLWOumhWec1M= + dependencies: + - control + - invariant + - prelude + type-equality: + type: registry + version: 4.0.1 + integrity: sha256-Hs9D6Y71zFi/b+qu5NSbuadUQXe5iv5iWx0226vOHUw= + dependencies: [] + typelevel-prelude: + type: registry + version: 7.0.0 + integrity: sha256-uFF2ph+vHcQpfPuPf2a3ukJDFmLhApmkpTMviHIWgJM= + dependencies: + - prelude + - type-equality + unfoldable: + type: registry + version: 6.0.0 + integrity: sha256-JtikvJdktRap7vr/K4ITlxUX1QexpnqBq0G/InLr6eg= + dependencies: + - foldable-traversable + - maybe + - partial + - prelude + - tuples + unicode: + type: registry + version: 6.0.0 + integrity: sha256-QJnTVZpmihEAUiMeYrfkusVoziJWp2hJsgi9bMQLue8= + dependencies: + - foldable-traversable + - maybe + - strings + unsafe-coerce: + type: registry + version: 6.0.0 + integrity: sha256-IqIYW4Vkevn8sI+6aUwRGvd87tVL36BBeOr0cGAE7t0= + dependencies: [] + untagged-union: + type: registry + version: 1.0.0 + integrity: sha256-XSSsmsOIq+JvPaXUdKCW2nGQZ2D+Ku5J6FbWj812AN0= + dependencies: + - assert + - console + - effect + - foreign + - foreign-object + - literals + - maybe + - newtype + - psci-support + - tuples + - unsafe-coerce + variant: + type: registry + version: 8.0.0 + integrity: sha256-SR//zQDg2dnbB8ZHslcxieUkCeNlbMToapvmh9onTtw= + dependencies: + - enums + - lists + - maybe + - partial + - prelude + - record + - tuples + - unsafe-coerce diff --git a/codegen/schema/spago.yaml b/codegen/schema/spago.yaml new file mode 100644 index 0000000..bdb2041 --- /dev/null +++ b/codegen/schema/spago.yaml @@ -0,0 +1,160 @@ +package: + name: schema + dependencies: + - aff + - aff-promise + - argonaut-codecs + - argonaut-core + - argonaut-generic + - arrays + - bifunctors + - console + - control + - datetime + - debug + - effect + - either + - enums + - exceptions + - filterable + - foldable-traversable + - foreign + - foreign-object + - functions + - http-methods + - integers + - language-cst-parser + - lists + - literals + - maybe + - media-types + - newtype + - node-buffer + - node-fs + - now + - nullable + - numbers + - ordered-collections + - parsing + - partial + - prelude + - profunctor + - profunctor-lenses + - psci-support + - quickcheck + - record + - record-studio + - strings + - strings-extra + - tidy + - tidy-codegen + - transformers + - tuples + - unfoldable + - unicode + - unsafe-coerce + - untagged-union + - variant + test: + main: Test.Main + dependencies: + - spec + - spec-discovery +workspace: + packageSet: + registry: 60.2.1 + extraPackages: + graphql-client: + path: ../../graphql-client + tidy-codegen: + dependencies: + - aff + - ansi + - arrays + - avar + - bifunctors + - console + - control + - dodo-printer + - effect + - either + - enums + - exceptions + - filterable + - foldable-traversable + - free + - identity + - integers + - language-cst-parser + - lazy + - lists + - maybe + - newtype + - node-buffer + - node-child-process + - node-path + - node-process + - node-streams + - ordered-collections + - parallel + - partial + - posix-types + - prelude + - record + - safe-coerce + - st + - strings + - tidy + - transformers + - tuples + - type-equality + - unicode + repo: https://github.com/natefaubion/purescript-tidy-codegen.git + version: v4.0.0 + tidy: + dependencies: + - arrays + - dodo-printer + - foldable-traversable + - lists + - maybe + - ordered-collections + - partial + - prelude + - language-cst-parser + - strings + - tuples + repo: https://github.com/natefaubion/purescript-tidy.git + version: v0.10.0 + dodo-printer: + repo: https://github.com/natefaubion/purescript-dodo-printer.git + version: v2.2.1 + dependencies: + - aff + - ansi + - arrays + - avar + - console + - control + - effect + - either + - exceptions + - foldable-traversable + - integers + - lists + - maybe + - minibench + - newtype + - node-buffer + - node-child-process + - node-path + - node-process + - node-streams + - parallel + - partial + - posix-types + - prelude + - safe-coerce + - strings + - tuples + diff --git a/gen-schema-bundled.mjs b/gen-schema-bundled.mjs index f7307be..6c18b04 100644 --- a/gen-schema-bundled.mjs +++ b/gen-schema-bundled.mjs @@ -1,3 +1,4 @@ +/* Generated by Spago v0.93.39 */ // output/Control.Semigroupoid/index.js var semigroupoidFn = { compose: function(f) { @@ -1593,6 +1594,124 @@ var monadIdentity = { } }; +// output/Unsafe.Coerce/foreign.js +var unsafeCoerce2 = function(x) { + return x; +}; + +// output/Control.Monad.ST.Internal/foreign.js +var map_ = function(f) { + return function(a) { + return function() { + return f(a()); + }; + }; +}; +var pure_ = function(a) { + return function() { + return a; + }; +}; +var bind_ = function(a) { + return function(f) { + return function() { + return f(a())(); + }; + }; +}; +var foreach = function(as) { + return function(f) { + return function() { + for (var i = 0, l = as.length; i < l; i++) { + f(as[i])(); + } + }; + }; +}; +function newSTRef(val) { + return function() { + return { value: val }; + }; +} +var read2 = function(ref) { + return function() { + return ref.value; + }; +}; +var modifyImpl2 = function(f) { + return function(ref) { + return function() { + var t = f(ref.value); + ref.value = t.state; + return t.value; + }; + }; +}; +var write2 = function(a) { + return function(ref) { + return function() { + return ref.value = a; + }; + }; +}; + +// output/Control.Monad.ST.Internal/index.js +var $runtime_lazy2 = function(name2, moduleName, init3) { + var state2 = 0; + var val; + return function(lineNumber) { + if (state2 === 2) + return val; + if (state2 === 1) + throw new ReferenceError(name2 + " was needed before it finished initializing (module " + moduleName + ", line " + lineNumber + ")", moduleName, lineNumber); + state2 = 1; + val = init3(); + state2 = 2; + return val; + }; +}; +var modify$prime = modifyImpl2; +var modify = function(f) { + return modify$prime(function(s) { + var s$prime = f(s); + return { + state: s$prime, + value: s$prime + }; + }); +}; +var functorST = { + map: map_ +}; +var monadST = { + Applicative0: function() { + return applicativeST; + }, + Bind1: function() { + return bindST; + } +}; +var bindST = { + bind: bind_, + Apply0: function() { + return $lazy_applyST(0); + } +}; +var applicativeST = { + pure: pure_, + Apply0: function() { + return $lazy_applyST(0); + } +}; +var $lazy_applyST = /* @__PURE__ */ $runtime_lazy2("applyST", "Control.Monad.ST.Internal", function() { + return { + apply: ap(monadST), + Functor0: function() { + return functorST; + } + }; +}); + // output/Data.HeytingAlgebra/foreign.js var boolConj = function(b1) { return function(b2) { @@ -1822,8 +1941,8 @@ var bindExceptT = function(dictMonad) { return { bind: function(v) { return function(k) { - return bind10(v)(either(function($187) { - return pure17(Left.create($187)); + return bind10(v)(either(function($193) { + return pure17(Left.create($193)); })(function(a) { var v1 = k(a); return v1; @@ -1847,9 +1966,9 @@ var applyExceptT = function(dictMonad) { var applicativeExceptT = function(dictMonad) { return { pure: function() { - var $188 = pure(dictMonad.Applicative0()); - return function($189) { - return ExceptT($188(Right.create($189))); + var $194 = pure(dictMonad.Applicative0()); + return function($195) { + return ExceptT($194(Right.create($195))); }; }(), Apply0: function() { @@ -1861,9 +1980,9 @@ var monadThrowExceptT = function(dictMonad) { var monadExceptT1 = monadExceptT(dictMonad); return { throwError: function() { - var $198 = pure(dictMonad.Applicative0()); - return function($199) { - return ExceptT($198(Left.create($199))); + var $204 = pure(dictMonad.Applicative0()); + return function($205) { + return ExceptT($204(Left.create($205))); }; }(), Monad0: function() { @@ -1896,11 +2015,11 @@ var altExceptT = function(dictSemigroup) { return pure17(new Left(append10(rm.value0)(rn.value0))); } ; - throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 86, column 9 - line 88, column 49): " + [rn.constructor.name]); + throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 87, column 9 - line 89, column 49): " + [rn.constructor.name]); }); } ; - throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 82, column 5 - line 88, column 49): " + [rm.constructor.name]); + throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 83, column 5 - line 89, column 49): " + [rm.constructor.name]); }); }; }, @@ -1911,11 +2030,6 @@ var altExceptT = function(dictSemigroup) { }; }; -// output/Unsafe.Coerce/foreign.js -var unsafeCoerce2 = function(x) { - return x; -}; - // output/Safe.Coerce/index.js var coerce = function() { return unsafeCoerce2; @@ -2280,9 +2394,6 @@ var foldableWithIndexArray = { return foldableArray; } }; -var foldMapWithIndex = function(dict) { - return dict.foldMapWithIndex; -}; // output/Data.Traversable/foreign.js var traverseArrayImpl = function() { @@ -2554,16 +2665,16 @@ var singleton2 = function(dictPlus) { }; }; var foldableNonEmpty = function(dictFoldable) { - var foldMap11 = foldMap(dictFoldable); + var foldMap10 = foldMap(dictFoldable); var foldl6 = foldl(dictFoldable); var foldr12 = foldr(dictFoldable); return { foldMap: function(dictMonoid) { var append19 = append(dictMonoid.Semigroup0()); - var foldMap15 = foldMap11(dictMonoid); + var foldMap16 = foldMap10(dictMonoid); return function(f) { return function(v) { - return append19(f(v.value0))(foldMap15(f)(v.value1)); + return append19(f(v.value0))(foldMap16(f)(v.value1)); }; }; }, @@ -2587,24 +2698,24 @@ var foldableNonEmpty = function(dictFoldable) { // output/Data.List.Types/index.js var identity7 = /* @__PURE__ */ identity(categoryFn); var Nil = /* @__PURE__ */ function() { - function Nil3() { + function Nil2() { } ; - Nil3.value = new Nil3(); - return Nil3; + Nil2.value = new Nil2(); + return Nil2; }(); var Cons = /* @__PURE__ */ function() { - function Cons3(value0, value1) { + function Cons2(value0, value1) { this.value0 = value0; this.value1 = value1; } ; - Cons3.create = function(value0) { + Cons2.create = function(value0) { return function(value1) { - return new Cons3(value0, value1); + return new Cons2(value0, value1); }; }; - return Cons3; + return Cons2; }(); var NonEmptyList = function(x) { return x; @@ -3241,7 +3352,7 @@ var Aff = function() { function Fiber(util, supervisor, aff) { var runTick = 0; var status = SUSPENDED; - var step3 = aff; + var step2 = aff; var fail3 = null; var interrupt = null; var bhead = null; @@ -3261,7 +3372,7 @@ var Aff = function() { case STEP_BIND: status = CONTINUE; try { - step3 = bhead(step3); + step2 = bhead(step2); if (btail === null) { bhead = null; } else { @@ -3271,47 +3382,47 @@ var Aff = function() { } catch (e) { status = RETURN; fail3 = util.left(e); - step3 = null; + step2 = null; } break; case STEP_RESULT: - if (util.isLeft(step3)) { + if (util.isLeft(step2)) { status = RETURN; - fail3 = step3; - step3 = null; + fail3 = step2; + step2 = null; } else if (bhead === null) { status = RETURN; } else { status = STEP_BIND; - step3 = util.fromRight(step3); + step2 = util.fromRight(step2); } break; case CONTINUE: - switch (step3.tag) { + switch (step2.tag) { case BIND: if (bhead) { btail = new Aff2(CONS, bhead, btail); } - bhead = step3._2; + bhead = step2._2; status = CONTINUE; - step3 = step3._1; + step2 = step2._1; break; case PURE: if (bhead === null) { status = RETURN; - step3 = util.right(step3._1); + step2 = util.right(step2._1); } else { status = STEP_BIND; - step3 = step3._1; + step2 = step2._1; } break; case SYNC: status = STEP_RESULT; - step3 = runSync(util.left, util.right, step3._1); + step2 = runSync(util.left, util.right, step2._1); break; case ASYNC: status = PENDING; - step3 = runAsync(util.left, step3._1, function(result2) { + step2 = runAsync(util.left, step2._1, function(result2) { return function() { if (runTick !== localRunTick) { return; @@ -3322,7 +3433,7 @@ var Aff = function() { return; } status = STEP_RESULT; - step3 = result2; + step2 = result2; run3(runTick); }); }; @@ -3330,46 +3441,46 @@ var Aff = function() { return; case THROW: status = RETURN; - fail3 = util.left(step3._1); - step3 = null; + fail3 = util.left(step2._1); + step2 = null; break; case CATCH: if (bhead === null) { - attempts = new Aff2(CONS, step3, attempts, interrupt); + attempts = new Aff2(CONS, step2, attempts, interrupt); } else { - attempts = new Aff2(CONS, step3, new Aff2(CONS, new Aff2(RESUME, bhead, btail), attempts, interrupt), interrupt); + attempts = new Aff2(CONS, step2, new Aff2(CONS, new Aff2(RESUME, bhead, btail), attempts, interrupt), interrupt); } bhead = null; btail = null; status = CONTINUE; - step3 = step3._1; + step2 = step2._1; break; case BRACKET: bracketCount++; if (bhead === null) { - attempts = new Aff2(CONS, step3, attempts, interrupt); + attempts = new Aff2(CONS, step2, attempts, interrupt); } else { - attempts = new Aff2(CONS, step3, new Aff2(CONS, new Aff2(RESUME, bhead, btail), attempts, interrupt), interrupt); + attempts = new Aff2(CONS, step2, new Aff2(CONS, new Aff2(RESUME, bhead, btail), attempts, interrupt), interrupt); } bhead = null; btail = null; status = CONTINUE; - step3 = step3._1; + step2 = step2._1; break; case FORK: status = STEP_RESULT; - tmp = Fiber(util, supervisor, step3._2); + tmp = Fiber(util, supervisor, step2._2); if (supervisor) { supervisor.register(tmp); } - if (step3._1) { + if (step2._1) { tmp.run(); } - step3 = util.right(tmp); + step2 = util.right(tmp); break; case SEQ: status = CONTINUE; - step3 = sequential2(util, supervisor, step3._1); + step2 = sequential2(util, supervisor, step2._1); break; } break; @@ -3378,7 +3489,7 @@ var Aff = function() { btail = null; if (attempts === null) { status = COMPLETED; - step3 = interrupt || fail3 || step3; + step2 = interrupt || fail3 || step2; } else { tmp = attempts._3; attempt = attempts._1; @@ -3389,7 +3500,7 @@ var Aff = function() { status = RETURN; } else if (fail3) { status = CONTINUE; - step3 = attempt._2(util.fromLeft(fail3)); + step2 = attempt._2(util.fromLeft(fail3)); fail3 = null; } break; @@ -3400,43 +3511,43 @@ var Aff = function() { bhead = attempt._1; btail = attempt._2; status = STEP_BIND; - step3 = util.fromRight(step3); + step2 = util.fromRight(step2); } break; case BRACKET: bracketCount--; if (fail3 === null) { - result = util.fromRight(step3); + result = util.fromRight(step2); attempts = new Aff2(CONS, new Aff2(RELEASE, attempt._2, result), attempts, tmp); if (interrupt === tmp || bracketCount > 0) { status = CONTINUE; - step3 = attempt._3(result); + step2 = attempt._3(result); } } break; case RELEASE: - attempts = new Aff2(CONS, new Aff2(FINALIZED, step3, fail3), attempts, interrupt); + attempts = new Aff2(CONS, new Aff2(FINALIZED, step2, fail3), attempts, interrupt); status = CONTINUE; if (interrupt && interrupt !== tmp && bracketCount === 0) { - step3 = attempt._1.killed(util.fromLeft(interrupt))(attempt._2); + step2 = attempt._1.killed(util.fromLeft(interrupt))(attempt._2); } else if (fail3) { - step3 = attempt._1.failed(util.fromLeft(fail3))(attempt._2); + step2 = attempt._1.failed(util.fromLeft(fail3))(attempt._2); } else { - step3 = attempt._1.completed(util.fromRight(step3))(attempt._2); + step2 = attempt._1.completed(util.fromRight(step2))(attempt._2); } fail3 = null; bracketCount++; break; case FINALIZER: bracketCount++; - attempts = new Aff2(CONS, new Aff2(FINALIZED, step3, fail3), attempts, interrupt); + attempts = new Aff2(CONS, new Aff2(FINALIZED, step2, fail3), attempts, interrupt); status = CONTINUE; - step3 = attempt._1; + step2 = attempt._1; break; case FINALIZED: bracketCount--; status = RETURN; - step3 = attempt._1; + step2 = attempt._1; fail3 = attempt._2; break; } @@ -3446,7 +3557,7 @@ var Aff = function() { for (var k in joins) { if (joins.hasOwnProperty(k)) { rethrow = rethrow && joins[k].rethrow; - runEff(joins[k].handler(step3)); + runEff(joins[k].handler(step2)); } } joins = null; @@ -3454,10 +3565,10 @@ var Aff = function() { setTimeout(function() { throw util.fromLeft(fail3); }, 0); - } else if (util.isLeft(step3) && rethrow) { + } else if (util.isLeft(step2) && rethrow) { setTimeout(function() { if (rethrow) { - throw util.fromLeft(step3); + throw util.fromLeft(step2); } }, 0); } @@ -3474,7 +3585,7 @@ var Aff = function() { return function() { if (status === COMPLETED) { rethrow = rethrow && join3.rethrow; - join3.handler(step3)(); + join3.handler(step2)(); return function() { }; } @@ -3505,7 +3616,7 @@ var Aff = function() { case SUSPENDED: interrupt = util.left(error2); status = COMPLETED; - step3 = interrupt; + step2 = interrupt; run3(runTick); break; case PENDING: @@ -3514,10 +3625,10 @@ var Aff = function() { } if (bracketCount === 0) { if (status === PENDING) { - attempts = new Aff2(CONS, new Aff2(FINALIZER, step3(error2)), attempts, interrupt); + attempts = new Aff2(CONS, new Aff2(FINALIZER, step2(error2)), attempts, interrupt); } status = RETURN; - step3 = null; + step2 = null; fail3 = null; run3(++runTick); } @@ -3528,7 +3639,7 @@ var Aff = function() { } if (bracketCount === 0) { status = RETURN; - step3 = null; + step2 = null; fail3 = null; } } @@ -3576,8 +3687,8 @@ var Aff = function() { var interrupt = null; var root = EMPTY; function kill(error2, par2, cb2) { - var step3 = par2; - var head4 = null; + var step2 = par2; + var head3 = null; var tail3 = null; var count = 0; var kills2 = {}; @@ -3585,10 +3696,10 @@ var Aff = function() { loop: while (true) { tmp = null; - switch (step3.tag) { + switch (step2.tag) { case FORKED: - if (step3._3 === EMPTY) { - tmp = fibers[step3._1]; + if (step2._3 === EMPTY) { + tmp = fibers[step2._1]; kills2[count++] = tmp.kill(error2, function(result) { return function() { count--; @@ -3598,27 +3709,27 @@ var Aff = function() { }; }); } - if (head4 === null) { + if (head3 === null) { break loop; } - step3 = head4._2; + step2 = head3._2; if (tail3 === null) { - head4 = null; + head3 = null; } else { - head4 = tail3._1; + head3 = tail3._1; tail3 = tail3._2; } break; case MAP: - step3 = step3._2; + step2 = step2._2; break; case APPLY: case ALT: - if (head4) { - tail3 = new Aff2(CONS, head4, tail3); + if (head3) { + tail3 = new Aff2(CONS, head3, tail3); } - head4 = step3; - step3 = step3._1; + head3 = step2; + step2 = step2._1; break; } } @@ -3633,13 +3744,13 @@ var Aff = function() { } return kills2; } - function join2(result, head4, tail3) { - var fail3, step3, lhs, rhs, tmp, kid; + function join2(result, head3, tail3) { + var fail3, step2, lhs, rhs, tmp, kid; if (util.isLeft(result)) { fail3 = result; - step3 = null; + step2 = null; } else { - step3 = result; + step2 = result; fail3 = null; } loop: @@ -3651,30 +3762,30 @@ var Aff = function() { if (interrupt !== null) { return; } - if (head4 === null) { - cb(fail3 || step3)(); + if (head3 === null) { + cb(fail3 || step2)(); return; } - if (head4._3 !== EMPTY) { + if (head3._3 !== EMPTY) { return; } - switch (head4.tag) { + switch (head3.tag) { case MAP: if (fail3 === null) { - head4._3 = util.right(head4._1(util.fromRight(step3))); - step3 = head4._3; + head3._3 = util.right(head3._1(util.fromRight(step2))); + step2 = head3._3; } else { - head4._3 = fail3; + head3._3 = fail3; } break; case APPLY: - lhs = head4._1._3; - rhs = head4._2._3; + lhs = head3._1._3; + rhs = head3._2._3; if (fail3) { - head4._3 = fail3; + head3._3 = fail3; tmp = true; kid = killId++; - kills[kid] = kill(early, fail3 === lhs ? head4._2 : head4._1, function() { + kills[kid] = kill(early, fail3 === lhs ? head3._2 : head3._1, function() { return function() { delete kills[kid]; if (tmp) { @@ -3693,33 +3804,33 @@ var Aff = function() { } else if (lhs === EMPTY || rhs === EMPTY) { return; } else { - step3 = util.right(util.fromRight(lhs)(util.fromRight(rhs))); - head4._3 = step3; + step2 = util.right(util.fromRight(lhs)(util.fromRight(rhs))); + head3._3 = step2; } break; case ALT: - lhs = head4._1._3; - rhs = head4._2._3; + lhs = head3._1._3; + rhs = head3._2._3; if (lhs === EMPTY && util.isLeft(rhs) || rhs === EMPTY && util.isLeft(lhs)) { return; } if (lhs !== EMPTY && util.isLeft(lhs) && rhs !== EMPTY && util.isLeft(rhs)) { - fail3 = step3 === lhs ? rhs : lhs; - step3 = null; - head4._3 = fail3; + fail3 = step2 === lhs ? rhs : lhs; + step2 = null; + head3._3 = fail3; } else { - head4._3 = step3; + head3._3 = step2; tmp = true; kid = killId++; - kills[kid] = kill(early, step3 === lhs ? head4._2 : head4._1, function() { + kills[kid] = kill(early, step2 === lhs ? head3._2 : head3._1, function() { return function() { delete kills[kid]; if (tmp) { tmp = false; } else if (tail3 === null) { - join2(step3, null, null); + join2(step2, null, null); } else { - join2(step3, tail3._1, tail3._2); + join2(step2, tail3._1, tail3._2); } }; }); @@ -3731,9 +3842,9 @@ var Aff = function() { break; } if (tail3 === null) { - head4 = null; + head3 = null; } else { - head4 = tail3._1; + head3 = tail3._1; tail3 = tail3._2; } } @@ -3749,8 +3860,8 @@ var Aff = function() { } function run3() { var status = CONTINUE; - var step3 = par; - var head4 = null; + var step2 = par; + var head3 = null; var tail3 = null; var tmp, fid; loop: @@ -3759,37 +3870,37 @@ var Aff = function() { fid = null; switch (status) { case CONTINUE: - switch (step3.tag) { + switch (step2.tag) { case MAP: - if (head4) { - tail3 = new Aff2(CONS, head4, tail3); + if (head3) { + tail3 = new Aff2(CONS, head3, tail3); } - head4 = new Aff2(MAP, step3._1, EMPTY, EMPTY); - step3 = step3._2; + head3 = new Aff2(MAP, step2._1, EMPTY, EMPTY); + step2 = step2._2; break; case APPLY: - if (head4) { - tail3 = new Aff2(CONS, head4, tail3); + if (head3) { + tail3 = new Aff2(CONS, head3, tail3); } - head4 = new Aff2(APPLY, EMPTY, step3._2, EMPTY); - step3 = step3._1; + head3 = new Aff2(APPLY, EMPTY, step2._2, EMPTY); + step2 = step2._1; break; case ALT: - if (head4) { - tail3 = new Aff2(CONS, head4, tail3); + if (head3) { + tail3 = new Aff2(CONS, head3, tail3); } - head4 = new Aff2(ALT, EMPTY, step3._2, EMPTY); - step3 = step3._1; + head3 = new Aff2(ALT, EMPTY, step2._2, EMPTY); + step2 = step2._1; break; default: fid = fiberId++; status = RETURN; - tmp = step3; - step3 = new Aff2(FORKED, fid, new Aff2(CONS, head4, tail3), EMPTY); + tmp = step2; + step2 = new Aff2(FORKED, fid, new Aff2(CONS, head3, tail3), EMPTY); tmp = Fiber(util, supervisor, tmp); tmp.onComplete({ rethrow: false, - handler: resolve(step3) + handler: resolve(step2) })(); fibers[fid] = tmp; if (supervisor) { @@ -3798,27 +3909,27 @@ var Aff = function() { } break; case RETURN: - if (head4 === null) { + if (head3 === null) { break loop; } - if (head4._1 === EMPTY) { - head4._1 = step3; + if (head3._1 === EMPTY) { + head3._1 = step2; status = CONTINUE; - step3 = head4._2; - head4._2 = EMPTY; + step2 = head3._2; + head3._2 = EMPTY; } else { - head4._2 = step3; - step3 = head4; + head3._2 = step2; + step2 = head3; if (tail3 === null) { - head4 = null; + head3 = null; } else { - head4 = tail3._1; + head3 = tail3._1; tail3 = tail3._2; } } } } - root = step3; + root = step2; for (fid = 0; fid < fiberId; fid++) { fibers[fid].run(); } @@ -3956,119 +4067,6 @@ var _delay = function() { }(); var _sequential = Aff.Seq; -// output/Control.Monad.ST.Internal/foreign.js -var map_ = function(f) { - return function(a) { - return function() { - return f(a()); - }; - }; -}; -var pure_ = function(a) { - return function() { - return a; - }; -}; -var bind_ = function(a) { - return function(f) { - return function() { - return f(a())(); - }; - }; -}; -var foreach = function(as) { - return function(f) { - return function() { - for (var i = 0, l = as.length; i < l; i++) { - f(as[i])(); - } - }; - }; -}; -function newSTRef(val) { - return function() { - return { value: val }; - }; -} -var read2 = function(ref) { - return function() { - return ref.value; - }; -}; -var modifyImpl2 = function(f) { - return function(ref) { - return function() { - var t = f(ref.value); - ref.value = t.state; - return t.value; - }; - }; -}; -var write2 = function(a) { - return function(ref) { - return function() { - return ref.value = a; - }; - }; -}; - -// output/Control.Monad.ST.Internal/index.js -var $runtime_lazy2 = function(name2, moduleName, init3) { - var state2 = 0; - var val; - return function(lineNumber) { - if (state2 === 2) - return val; - if (state2 === 1) - throw new ReferenceError(name2 + " was needed before it finished initializing (module " + moduleName + ", line " + lineNumber + ")", moduleName, lineNumber); - state2 = 1; - val = init3(); - state2 = 2; - return val; - }; -}; -var modify$prime = modifyImpl2; -var modify = function(f) { - return modify$prime(function(s) { - var s$prime = f(s); - return { - state: s$prime, - value: s$prime - }; - }); -}; -var functorST = { - map: map_ -}; -var monadST = { - Applicative0: function() { - return applicativeST; - }, - Bind1: function() { - return bindST; - } -}; -var bindST = { - bind: bind_, - Apply0: function() { - return $lazy_applyST(0); - } -}; -var applicativeST = { - pure: pure_, - Apply0: function() { - return $lazy_applyST(0); - } -}; -var $lazy_applyST = /* @__PURE__ */ $runtime_lazy2("applyST", "Control.Monad.ST.Internal", function() { - return { - apply: ap(monadST), - Functor0: function() { - return functorST; - } - }; -}); - // output/Type.Equality/index.js var refl = { proof: function(a) { @@ -4114,24 +4112,29 @@ var parallel = function(dict) { var identity9 = /* @__PURE__ */ identity(categoryFn); var parTraverse_ = function(dictParallel) { var sequential2 = sequential(dictParallel); - var traverse_2 = traverse_(dictParallel.Applicative1()); - var parallel2 = parallel(dictParallel); - return function(dictFoldable) { - var traverse_1 = traverse_2(dictFoldable); - return function(f) { - var $48 = traverse_1(function($50) { - return parallel2(f($50)); - }); - return function($49) { - return sequential2($48($49)); + var parallel3 = parallel(dictParallel); + return function(dictApplicative) { + var traverse_2 = traverse_(dictApplicative); + return function(dictFoldable) { + var traverse_1 = traverse_2(dictFoldable); + return function(f) { + var $51 = traverse_1(function($53) { + return parallel3(f($53)); + }); + return function($52) { + return sequential2($51($52)); + }; }; }; }; }; var parSequence_ = function(dictParallel) { var parTraverse_1 = parTraverse_(dictParallel); - return function(dictFoldable) { - return parTraverse_1(dictFoldable)(identity9); + return function(dictApplicative) { + var parTraverse_2 = parTraverse_1(dictApplicative); + return function(dictFoldable) { + return parTraverse_2(dictFoldable)(identity9); + }; }; }; @@ -4267,8 +4270,38 @@ var $lazy_applyAff = /* @__PURE__ */ $runtime_lazy3("applyAff", "Effect.Aff", fu } }; }); +var applyAff = /* @__PURE__ */ $lazy_applyAff(73); var pure2 = /* @__PURE__ */ pure(applicativeAff); var bindFlipped2 = /* @__PURE__ */ bindFlipped(bindAff); +var parallelAff = { + parallel: unsafeCoerce2, + sequential: _sequential, + Apply0: function() { + return applyAff; + }, + Apply1: function() { + return applyParAff; + } +}; +var parallel2 = /* @__PURE__ */ parallel(parallelAff); +var applicativeParAff = { + pure: function($76) { + return parallel2(pure2($76)); + }, + Apply0: function() { + return applyParAff; + } +}; +var parSequence_2 = /* @__PURE__ */ parSequence_(parallelAff)(applicativeParAff)(foldableArray); +var semigroupCanceler = { + append: function(v) { + return function(v1) { + return function(err) { + return parSequence_2([v(err), v1(err)]); + }; + }; + } +}; var monadEffectAff = { liftEffect: _liftEffect, Monad0: function() { @@ -4291,8 +4324,8 @@ var monadErrorAff = { var $$try2 = /* @__PURE__ */ $$try(monadErrorAff); var runAff = function(k) { return function(aff) { - return launchAff(bindFlipped2(function($80) { - return liftEffect2(k($80)); + return launchAff(bindFlipped2(function($83) { + return liftEffect2(k($83)); })($$try2(aff))); }; }; @@ -4301,39 +4334,6 @@ var runAff_ = function(k) { return $$void2(runAff(k)(aff)); }; }; -var parallelAff = { - parallel: unsafeCoerce2, - sequential: _sequential, - Monad0: function() { - return monadAff; - }, - Applicative1: function() { - return $lazy_applicativeParAff(0); - } -}; -var $lazy_applicativeParAff = /* @__PURE__ */ $runtime_lazy3("applicativeParAff", "Effect.Aff", function() { - return { - pure: function() { - var $82 = parallel(parallelAff); - return function($83) { - return $82(pure2($83)); - }; - }(), - Apply0: function() { - return applyParAff; - } - }; -}); -var parSequence_2 = /* @__PURE__ */ parSequence_(parallelAff)(foldableArray); -var semigroupCanceler = { - append: function(v) { - return function(v1) { - return function(err) { - return parSequence_2([v(err), v1(err)]); - }; - }; - } -}; var nonCanceler = /* @__PURE__ */ $$const(/* @__PURE__ */ pure2(unit)); var monoidCanceler = { mempty: nonCanceler, @@ -4457,23 +4457,23 @@ var Leaf = /* @__PURE__ */ function() { return Leaf3; }(); var Two = /* @__PURE__ */ function() { - function Two3(value0, value1, value2) { + function Two2(value0, value1, value2) { this.value0 = value0; this.value1 = value1; this.value2 = value2; } ; - Two3.create = function(value0) { + Two2.create = function(value0) { return function(value1) { return function(value2) { - return new Two3(value0, value1, value2); + return new Two2(value0, value1, value2); }; }; }; - return Two3; + return Two2; }(); var Three = /* @__PURE__ */ function() { - function Three3(value0, value1, value2, value3, value4) { + function Three2(value0, value1, value2, value3, value4) { this.value0 = value0; this.value1 = value1; this.value2 = value2; @@ -4481,117 +4481,117 @@ var Three = /* @__PURE__ */ function() { this.value4 = value4; } ; - Three3.create = function(value0) { + Three2.create = function(value0) { return function(value1) { return function(value2) { return function(value3) { return function(value4) { - return new Three3(value0, value1, value2, value3, value4); + return new Three2(value0, value1, value2, value3, value4); }; }; }; }; }; - return Three3; + return Three2; }(); var TwoLeft = /* @__PURE__ */ function() { - function TwoLeft3(value0, value1) { + function TwoLeft2(value0, value1) { this.value0 = value0; this.value1 = value1; } ; - TwoLeft3.create = function(value0) { + TwoLeft2.create = function(value0) { return function(value1) { - return new TwoLeft3(value0, value1); + return new TwoLeft2(value0, value1); }; }; - return TwoLeft3; + return TwoLeft2; }(); var TwoRight = /* @__PURE__ */ function() { - function TwoRight3(value0, value1) { + function TwoRight2(value0, value1) { this.value0 = value0; this.value1 = value1; } ; - TwoRight3.create = function(value0) { + TwoRight2.create = function(value0) { return function(value1) { - return new TwoRight3(value0, value1); + return new TwoRight2(value0, value1); }; }; - return TwoRight3; + return TwoRight2; }(); var ThreeLeft = /* @__PURE__ */ function() { - function ThreeLeft3(value0, value1, value2, value3) { + function ThreeLeft2(value0, value1, value2, value3) { this.value0 = value0; this.value1 = value1; this.value2 = value2; this.value3 = value3; } ; - ThreeLeft3.create = function(value0) { + ThreeLeft2.create = function(value0) { return function(value1) { return function(value2) { return function(value3) { - return new ThreeLeft3(value0, value1, value2, value3); + return new ThreeLeft2(value0, value1, value2, value3); }; }; }; }; - return ThreeLeft3; + return ThreeLeft2; }(); var ThreeMiddle = /* @__PURE__ */ function() { - function ThreeMiddle3(value0, value1, value2, value3) { + function ThreeMiddle2(value0, value1, value2, value3) { this.value0 = value0; this.value1 = value1; this.value2 = value2; this.value3 = value3; } ; - ThreeMiddle3.create = function(value0) { + ThreeMiddle2.create = function(value0) { return function(value1) { return function(value2) { return function(value3) { - return new ThreeMiddle3(value0, value1, value2, value3); + return new ThreeMiddle2(value0, value1, value2, value3); }; }; }; }; - return ThreeMiddle3; + return ThreeMiddle2; }(); var ThreeRight = /* @__PURE__ */ function() { - function ThreeRight3(value0, value1, value2, value3) { + function ThreeRight2(value0, value1, value2, value3) { this.value0 = value0; this.value1 = value1; this.value2 = value2; this.value3 = value3; } ; - ThreeRight3.create = function(value0) { + ThreeRight2.create = function(value0) { return function(value1) { return function(value2) { return function(value3) { - return new ThreeRight3(value0, value1, value2, value3); + return new ThreeRight2(value0, value1, value2, value3); }; }; }; }; - return ThreeRight3; + return ThreeRight2; }(); var KickUp = /* @__PURE__ */ function() { - function KickUp3(value0, value1, value2) { + function KickUp2(value0, value1, value2) { this.value0 = value0; this.value1 = value1; this.value2 = value2; } ; - KickUp3.create = function(value0) { + KickUp2.create = function(value0) { return function(value1) { return function(value2) { - return new KickUp3(value0, value1, value2); + return new KickUp2(value0, value1, value2); }; }; }; - return KickUp3; + return KickUp2; }(); var fromZipper = function($copy_v) { return function($copy_v1) { @@ -5305,6 +5305,22 @@ var mkFn2 = function(fn) { return fn(a)(b); }; }; +var runFn2 = function(fn) { + return function(a) { + return function(b) { + return fn(a, b); + }; + }; +}; +var runFn3 = function(fn) { + return function(a) { + return function(b) { + return function(c) { + return fn(a, b, c); + }; + }; + }; +}; var runFn4 = function(fn) { return function(a) { return function(b) { @@ -5316,23 +5332,35 @@ var runFn4 = function(fn) { }; }; }; - -// output/Data.Lazy/foreign.js -var defer2 = function(thunk) { - var v = null; - return function() { - if (thunk === void 0) - return v; - v = thunk(); - thunk = void 0; - return v; +var runFn5 = function(fn) { + return function(a) { + return function(b) { + return function(c) { + return function(d) { + return function(e) { + return fn(a, b, c, d, e); + }; + }; + }; + }; }; }; -var force = function(l) { - return l(); -}; // output/Data.Map.Internal/index.js +var $runtime_lazy4 = function(name2, moduleName, init3) { + var state2 = 0; + var val; + return function(lineNumber) { + if (state2 === 2) + return val; + if (state2 === 1) + throw new ReferenceError(name2 + " was needed before it finished initializing (module " + moduleName + ", line " + lineNumber + ")", moduleName, lineNumber); + state2 = 1; + val = init3(); + state2 = 2; + return val; + }; +}; var identity12 = /* @__PURE__ */ identity(categoryFn); var Leaf2 = /* @__PURE__ */ function() { function Leaf3() { @@ -5341,226 +5369,326 @@ var Leaf2 = /* @__PURE__ */ function() { Leaf3.value = new Leaf3(); return Leaf3; }(); -var Two2 = /* @__PURE__ */ function() { - function Two3(value0, value1, value2, value3) { - this.value0 = value0; - this.value1 = value1; - this.value2 = value2; - this.value3 = value3; - } - ; - Two3.create = function(value0) { - return function(value1) { - return function(value2) { - return function(value3) { - return new Two3(value0, value1, value2, value3); - }; - }; - }; - }; - return Two3; -}(); -var Three2 = /* @__PURE__ */ function() { - function Three3(value0, value1, value2, value3, value4, value5, value6) { +var Node = /* @__PURE__ */ function() { + function Node2(value0, value1, value2, value3, value4, value5) { this.value0 = value0; this.value1 = value1; this.value2 = value2; this.value3 = value3; this.value4 = value4; this.value5 = value5; - this.value6 = value6; } ; - Three3.create = function(value0) { + Node2.create = function(value0) { return function(value1) { return function(value2) { return function(value3) { return function(value4) { return function(value5) { - return function(value6) { - return new Three3(value0, value1, value2, value3, value4, value5, value6); - }; + return new Node2(value0, value1, value2, value3, value4, value5); }; }; }; }; }; }; - return Three3; + return Node2; }(); -var TwoLeft2 = /* @__PURE__ */ function() { - function TwoLeft3(value0, value1, value2) { - this.value0 = value0; - this.value1 = value1; - this.value2 = value2; +var IterLeaf = /* @__PURE__ */ function() { + function IterLeaf2() { } ; - TwoLeft3.create = function(value0) { - return function(value1) { - return function(value2) { - return new TwoLeft3(value0, value1, value2); - }; - }; - }; - return TwoLeft3; + IterLeaf2.value = new IterLeaf2(); + return IterLeaf2; }(); -var TwoRight2 = /* @__PURE__ */ function() { - function TwoRight3(value0, value1, value2) { +var IterEmit = /* @__PURE__ */ function() { + function IterEmit2(value0, value1, value2) { this.value0 = value0; this.value1 = value1; this.value2 = value2; } ; - TwoRight3.create = function(value0) { + IterEmit2.create = function(value0) { return function(value1) { return function(value2) { - return new TwoRight3(value0, value1, value2); + return new IterEmit2(value0, value1, value2); }; }; }; - return TwoRight3; + return IterEmit2; }(); -var ThreeLeft2 = /* @__PURE__ */ function() { - function ThreeLeft3(value0, value1, value2, value3, value4, value5) { +var IterNode = /* @__PURE__ */ function() { + function IterNode2(value0, value1) { this.value0 = value0; this.value1 = value1; - this.value2 = value2; - this.value3 = value3; - this.value4 = value4; - this.value5 = value5; } ; - ThreeLeft3.create = function(value0) { + IterNode2.create = function(value0) { return function(value1) { - return function(value2) { - return function(value3) { - return function(value4) { - return function(value5) { - return new ThreeLeft3(value0, value1, value2, value3, value4, value5); - }; - }; - }; - }; + return new IterNode2(value0, value1); }; }; - return ThreeLeft3; + return IterNode2; }(); -var ThreeMiddle2 = /* @__PURE__ */ function() { - function ThreeMiddle3(value0, value1, value2, value3, value4, value5) { +var Split = /* @__PURE__ */ function() { + function Split2(value0, value1, value2) { this.value0 = value0; this.value1 = value1; this.value2 = value2; - this.value3 = value3; - this.value4 = value4; - this.value5 = value5; } ; - ThreeMiddle3.create = function(value0) { + Split2.create = function(value0) { return function(value1) { return function(value2) { - return function(value3) { - return function(value4) { - return function(value5) { - return new ThreeMiddle3(value0, value1, value2, value3, value4, value5); - }; - }; - }; + return new Split2(value0, value1, value2); }; }; }; - return ThreeMiddle3; + return Split2; }(); -var ThreeRight2 = /* @__PURE__ */ function() { - function ThreeRight3(value0, value1, value2, value3, value4, value5) { +var SplitLast = /* @__PURE__ */ function() { + function SplitLast2(value0, value1, value2) { this.value0 = value0; this.value1 = value1; this.value2 = value2; - this.value3 = value3; - this.value4 = value4; - this.value5 = value5; } ; - ThreeRight3.create = function(value0) { + SplitLast2.create = function(value0) { return function(value1) { return function(value2) { - return function(value3) { - return function(value4) { - return function(value5) { - return new ThreeRight3(value0, value1, value2, value3, value4, value5); - }; - }; - }; + return new SplitLast2(value0, value1, value2); }; }; }; - return ThreeRight3; + return SplitLast2; }(); -var KickUp2 = /* @__PURE__ */ function() { - function KickUp3(value0, value1, value2, value3) { - this.value0 = value0; - this.value1 = value1; - this.value2 = value2; - this.value3 = value3; +var unsafeNode = function(k, v, l, r) { + if (l instanceof Leaf2) { + if (r instanceof Leaf2) { + return new Node(1, 1, k, v, l, r); + } + ; + if (r instanceof Node) { + return new Node(1 + r.value0 | 0, 1 + r.value1 | 0, k, v, l, r); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 702, column 5 - line 706, column 39): " + [r.constructor.name]); } ; - KickUp3.create = function(value0) { - return function(value1) { - return function(value2) { - return function(value3) { - return new KickUp3(value0, value1, value2, value3); - }; + if (l instanceof Node) { + if (r instanceof Leaf2) { + return new Node(1 + l.value0 | 0, 1 + l.value1 | 0, k, v, l, r); + } + ; + if (r instanceof Node) { + return new Node(1 + function() { + var $280 = l.value0 > r.value0; + if ($280) { + return l.value0; + } + ; + return r.value0; + }() | 0, (1 + l.value1 | 0) + r.value1 | 0, k, v, l, r); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 708, column 5 - line 712, column 68): " + [r.constructor.name]); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 700, column 32 - line 712, column 68): " + [l.constructor.name]); +}; +var toMapIter = /* @__PURE__ */ function() { + return flip(IterNode.create)(IterLeaf.value); +}(); +var stepWith = function(f) { + return function(next2) { + return function(done) { + var go = function($copy_v) { + var $tco_done = false; + var $tco_result; + function $tco_loop(v) { + if (v instanceof IterLeaf) { + $tco_done = true; + return done(unit); + } + ; + if (v instanceof IterEmit) { + $tco_done = true; + return next2(v.value0, v.value1, v.value2); + } + ; + if (v instanceof IterNode) { + $copy_v = f(v.value1)(v.value0); + return; + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 940, column 8 - line 946, column 20): " + [v.constructor.name]); + } + ; + while (!$tco_done) { + $tco_result = $tco_loop($copy_v); + } + ; + return $tco_result; }; + return go; }; }; - return KickUp3; -}(); +}; var singleton6 = function(k) { return function(v) { - return new Two2(Leaf2.value, k, v, Leaf2.value); + return new Node(1, 1, k, v, Leaf2.value, Leaf2.value); }; }; -var toUnfoldable2 = function(dictUnfoldable) { - var unfoldr3 = unfoldr(dictUnfoldable); - return function(m) { +var unsafeBalancedNode = /* @__PURE__ */ function() { + var height = function(v) { + if (v instanceof Leaf2) { + return 0; + } + ; + if (v instanceof Node) { + return v.value0; + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 757, column 12 - line 759, column 26): " + [v.constructor.name]); + }; + var rotateLeft = function(k, v, l, rk, rv, rl, rr) { + if (rl instanceof Node && rl.value0 > height(rr)) { + return unsafeNode(rl.value2, rl.value3, unsafeNode(k, v, l, rl.value4), unsafeNode(rk, rv, rl.value5, rr)); + } + ; + return unsafeNode(rk, rv, unsafeNode(k, v, l, rl), rr); + }; + var rotateRight = function(k, v, lk, lv, ll, lr, r) { + if (lr instanceof Node && height(ll) <= lr.value0) { + return unsafeNode(lr.value2, lr.value3, unsafeNode(lk, lv, ll, lr.value4), unsafeNode(k, v, lr.value5, r)); + } + ; + return unsafeNode(lk, lv, ll, unsafeNode(k, v, lr, r)); + }; + return function(k, v, l, r) { + if (l instanceof Leaf2) { + if (r instanceof Leaf2) { + return singleton6(k)(v); + } + ; + if (r instanceof Node && r.value0 > 1) { + return rotateLeft(k, v, l, r.value2, r.value3, r.value4, r.value5); + } + ; + return unsafeNode(k, v, l, r); + } + ; + if (l instanceof Node) { + if (r instanceof Node) { + if (r.value0 > (l.value0 + 1 | 0)) { + return rotateLeft(k, v, l, r.value2, r.value3, r.value4, r.value5); + } + ; + if (l.value0 > (r.value0 + 1 | 0)) { + return rotateRight(k, v, l.value2, l.value3, l.value4, l.value5, r); + } + ; + } + ; + if (r instanceof Leaf2 && l.value0 > 1) { + return rotateRight(k, v, l.value2, l.value3, l.value4, l.value5, r); + } + ; + return unsafeNode(k, v, l, r); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 717, column 40 - line 738, column 34): " + [l.constructor.name]); + }; +}(); +var $lazy_unsafeSplit = /* @__PURE__ */ $runtime_lazy4("unsafeSplit", "Data.Map.Internal", function() { + return function(comp, k, m) { + if (m instanceof Leaf2) { + return new Split(Nothing.value, Leaf2.value, Leaf2.value); + } + ; + if (m instanceof Node) { + var v = comp(k)(m.value2); + if (v instanceof LT) { + var v1 = $lazy_unsafeSplit(793)(comp, k, m.value4); + return new Split(v1.value0, v1.value1, unsafeBalancedNode(m.value2, m.value3, v1.value2, m.value5)); + } + ; + if (v instanceof GT) { + var v1 = $lazy_unsafeSplit(796)(comp, k, m.value5); + return new Split(v1.value0, unsafeBalancedNode(m.value2, m.value3, m.value4, v1.value1), v1.value2); + } + ; + if (v instanceof EQ) { + return new Split(new Just(m.value3), m.value4, m.value5); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 791, column 5 - line 799, column 30): " + [v.constructor.name]); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 787, column 34 - line 799, column 30): " + [m.constructor.name]); + }; +}); +var unsafeSplit = /* @__PURE__ */ $lazy_unsafeSplit(786); +var $lazy_unsafeSplitLast = /* @__PURE__ */ $runtime_lazy4("unsafeSplitLast", "Data.Map.Internal", function() { + return function(k, v, l, r) { + if (r instanceof Leaf2) { + return new SplitLast(k, v, l); + } + ; + if (r instanceof Node) { + var v1 = $lazy_unsafeSplitLast(779)(r.value2, r.value3, r.value4, r.value5); + return new SplitLast(v1.value0, v1.value1, unsafeBalancedNode(k, v, l, v1.value2)); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 776, column 37 - line 780, column 57): " + [r.constructor.name]); + }; +}); +var unsafeSplitLast = /* @__PURE__ */ $lazy_unsafeSplitLast(775); +var unsafeJoinNodes = function(v, v1) { + if (v instanceof Leaf2) { + return v1; + } + ; + if (v instanceof Node) { + var v2 = unsafeSplitLast(v.value2, v.value3, v.value4, v.value5); + return unsafeBalancedNode(v2.value0, v2.value1, v2.value2, v1); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 764, column 25 - line 768, column 38): " + [v.constructor.name, v1.constructor.name]); +}; +var member = function(dictOrd) { + var compare78 = compare(dictOrd); + return function(k) { var go = function($copy_v) { var $tco_done = false; var $tco_result; function $tco_loop(v) { - if (v instanceof Nil) { + if (v instanceof Leaf2) { $tco_done = true; - return Nothing.value; + return false; } ; - if (v instanceof Cons) { - if (v.value0 instanceof Leaf2) { - $copy_v = v.value1; + if (v instanceof Node) { + var v1 = compare78(k)(v.value2); + if (v1 instanceof LT) { + $copy_v = v.value4; return; } ; - if (v.value0 instanceof Two2 && (v.value0.value0 instanceof Leaf2 && v.value0.value3 instanceof Leaf2)) { - $tco_done = true; - return new Just(new Tuple(new Tuple(v.value0.value1, v.value0.value2), v.value1)); - } - ; - if (v.value0 instanceof Two2 && v.value0.value0 instanceof Leaf2) { - $tco_done = true; - return new Just(new Tuple(new Tuple(v.value0.value1, v.value0.value2), new Cons(v.value0.value3, v.value1))); - } - ; - if (v.value0 instanceof Two2) { - $copy_v = new Cons(v.value0.value0, new Cons(singleton6(v.value0.value1)(v.value0.value2), new Cons(v.value0.value3, v.value1))); + if (v1 instanceof GT) { + $copy_v = v.value5; return; } ; - if (v.value0 instanceof Three2) { - $copy_v = new Cons(v.value0.value0, new Cons(singleton6(v.value0.value1)(v.value0.value2), new Cons(v.value0.value3, new Cons(singleton6(v.value0.value4)(v.value0.value5), new Cons(v.value0.value6, v.value1))))); - return; + if (v1 instanceof EQ) { + $tco_done = true; + return true; } ; - throw new Error("Failed pattern match at Data.Map.Internal (line 624, column 18 - line 633, column 71): " + [v.value0.constructor.name]); + throw new Error("Failed pattern match at Data.Map.Internal (line 459, column 7 - line 462, column 19): " + [v1.constructor.name]); } ; - throw new Error("Failed pattern match at Data.Map.Internal (line 623, column 3 - line 623, column 19): " + [v.constructor.name]); + throw new Error("Failed pattern match at Data.Map.Internal (line 456, column 8 - line 462, column 19): " + [v.constructor.name]); } ; while (!$tco_done) { @@ -5569,7 +5697,7 @@ var toUnfoldable2 = function(dictUnfoldable) { ; return $tco_result; }; - return unfoldr3(go)(new Cons(m, Nil.value)); + return go; }; }; var lookup = function(dictOrd) { @@ -5584,50 +5712,27 @@ var lookup = function(dictOrd) { return Nothing.value; } ; - if (v instanceof Two2) { - var v2 = compare78(k)(v.value1); - if (v2 instanceof EQ) { - $tco_done = true; - return new Just(v.value2); - } - ; - if (v2 instanceof LT) { - $copy_v = v.value0; + if (v instanceof Node) { + var v1 = compare78(k)(v.value2); + if (v1 instanceof LT) { + $copy_v = v.value4; return; } ; - $copy_v = v.value3; - return; - } - ; - if (v instanceof Three2) { - var v3 = compare78(k)(v.value1); - if (v3 instanceof EQ) { - $tco_done = true; - return new Just(v.value2); - } - ; - var v4 = compare78(k)(v.value4); - if (v4 instanceof EQ) { - $tco_done = true; - return new Just(v.value5); - } - ; - if (v3 instanceof LT) { - $copy_v = v.value0; + if (v1 instanceof GT) { + $copy_v = v.value5; return; } ; - if (v4 instanceof GT) { - $copy_v = v.value6; - return; + if (v1 instanceof EQ) { + $tco_done = true; + return new Just(v.value3); } ; - $copy_v = v.value3; - return; + throw new Error("Failed pattern match at Data.Map.Internal (line 283, column 7 - line 286, column 22): " + [v1.constructor.name]); } ; - throw new Error("Failed pattern match at Data.Map.Internal (line 241, column 5 - line 241, column 22): " + [v.constructor.name]); + throw new Error("Failed pattern match at Data.Map.Internal (line 280, column 8 - line 286, column 22): " + [v.constructor.name]); } ; while (!$tco_done) { @@ -5639,648 +5744,234 @@ var lookup = function(dictOrd) { return go; }; }; -var member = function(dictOrd) { - var lookup12 = lookup(dictOrd); - return function(k) { - return function(m) { - return isJust(lookup12(k)(m)); - }; - }; -}; -var functorMap = { - map: function(v) { - return function(v1) { - if (v1 instanceof Leaf2) { - return Leaf2.value; - } - ; - if (v1 instanceof Two2) { - return new Two2(map(functorMap)(v)(v1.value0), v1.value1, v(v1.value2), map(functorMap)(v)(v1.value3)); - } - ; - if (v1 instanceof Three2) { - return new Three2(map(functorMap)(v)(v1.value0), v1.value1, v(v1.value2), map(functorMap)(v)(v1.value3), v1.value4, v(v1.value5), map(functorMap)(v)(v1.value6)); - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 116, column 1 - line 119, column 110): " + [v.constructor.name, v1.constructor.name]); - }; - } -}; -var fromZipper2 = function($copy_dictOrd) { - return function($copy_v) { - return function($copy_v1) { - var $tco_var_dictOrd = $copy_dictOrd; - var $tco_var_v = $copy_v; +var iterMapL = /* @__PURE__ */ function() { + var go = function($copy_iter) { + return function($copy_v) { + var $tco_var_iter = $copy_iter; var $tco_done = false; var $tco_result; - function $tco_loop(dictOrd, v, v1) { - if (v instanceof Nil) { + function $tco_loop(iter, v) { + if (v instanceof Leaf2) { $tco_done = true; - return v1; + return iter; } ; - if (v instanceof Cons) { - if (v.value0 instanceof TwoLeft2) { - $tco_var_dictOrd = dictOrd; - $tco_var_v = v.value1; - $copy_v1 = new Two2(v1, v.value0.value0, v.value0.value1, v.value0.value2); + if (v instanceof Node) { + if (v.value5 instanceof Leaf2) { + $tco_var_iter = new IterEmit(v.value2, v.value3, iter); + $copy_v = v.value4; return; } ; - if (v.value0 instanceof TwoRight2) { - $tco_var_dictOrd = dictOrd; - $tco_var_v = v.value1; - $copy_v1 = new Two2(v.value0.value0, v.value0.value1, v.value0.value2, v1); - return; - } - ; - if (v.value0 instanceof ThreeLeft2) { - $tco_var_dictOrd = dictOrd; - $tco_var_v = v.value1; - $copy_v1 = new Three2(v1, v.value0.value0, v.value0.value1, v.value0.value2, v.value0.value3, v.value0.value4, v.value0.value5); - return; - } - ; - if (v.value0 instanceof ThreeMiddle2) { - $tco_var_dictOrd = dictOrd; - $tco_var_v = v.value1; - $copy_v1 = new Three2(v.value0.value0, v.value0.value1, v.value0.value2, v1, v.value0.value3, v.value0.value4, v.value0.value5); - return; - } - ; - if (v.value0 instanceof ThreeRight2) { - $tco_var_dictOrd = dictOrd; - $tco_var_v = v.value1; - $copy_v1 = new Three2(v.value0.value0, v.value0.value1, v.value0.value2, v.value0.value3, v.value0.value4, v.value0.value5, v1); - return; - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 462, column 3 - line 467, column 88): " + [v.value0.constructor.name]); + $tco_var_iter = new IterEmit(v.value2, v.value3, new IterNode(v.value5, iter)); + $copy_v = v.value4; + return; } ; - throw new Error("Failed pattern match at Data.Map.Internal (line 459, column 1 - line 459, column 80): " + [v.constructor.name, v1.constructor.name]); + throw new Error("Failed pattern match at Data.Map.Internal (line 951, column 13 - line 958, column 48): " + [v.constructor.name]); } ; while (!$tco_done) { - $tco_result = $tco_loop($tco_var_dictOrd, $tco_var_v, $copy_v1); + $tco_result = $tco_loop($tco_var_iter, $copy_v); } ; return $tco_result; }; }; + return go; +}(); +var stepAscCps = /* @__PURE__ */ stepWith(iterMapL); +var stepUnfoldr = /* @__PURE__ */ function() { + var step2 = function(k, v, next2) { + return new Just(new Tuple(new Tuple(k, v), next2)); + }; + return stepAscCps(step2)(function(v) { + return Nothing.value; + }); +}(); +var toUnfoldable2 = function(dictUnfoldable) { + var $784 = unfoldr(dictUnfoldable)(stepUnfoldr); + return function($785) { + return $784(toMapIter($785)); + }; }; var insert = function(dictOrd) { - var fromZipper1 = fromZipper2(dictOrd); var compare78 = compare(dictOrd); return function(k) { return function(v) { - var up = function($copy_v1) { - return function($copy_v2) { - var $tco_var_v1 = $copy_v1; - var $tco_done = false; - var $tco_result; - function $tco_loop(v1, v2) { - if (v1 instanceof Nil) { - $tco_done = true; - return new Two2(v2.value0, v2.value1, v2.value2, v2.value3); - } - ; - if (v1 instanceof Cons) { - if (v1.value0 instanceof TwoLeft2) { - $tco_done = true; - return fromZipper1(v1.value1)(new Three2(v2.value0, v2.value1, v2.value2, v2.value3, v1.value0.value0, v1.value0.value1, v1.value0.value2)); - } - ; - if (v1.value0 instanceof TwoRight2) { - $tco_done = true; - return fromZipper1(v1.value1)(new Three2(v1.value0.value0, v1.value0.value1, v1.value0.value2, v2.value0, v2.value1, v2.value2, v2.value3)); - } - ; - if (v1.value0 instanceof ThreeLeft2) { - $tco_var_v1 = v1.value1; - $copy_v2 = new KickUp2(new Two2(v2.value0, v2.value1, v2.value2, v2.value3), v1.value0.value0, v1.value0.value1, new Two2(v1.value0.value2, v1.value0.value3, v1.value0.value4, v1.value0.value5)); - return; - } - ; - if (v1.value0 instanceof ThreeMiddle2) { - $tco_var_v1 = v1.value1; - $copy_v2 = new KickUp2(new Two2(v1.value0.value0, v1.value0.value1, v1.value0.value2, v2.value0), v2.value1, v2.value2, new Two2(v2.value3, v1.value0.value3, v1.value0.value4, v1.value0.value5)); - return; - } - ; - if (v1.value0 instanceof ThreeRight2) { - $tco_var_v1 = v1.value1; - $copy_v2 = new KickUp2(new Two2(v1.value0.value0, v1.value0.value1, v1.value0.value2, v1.value0.value3), v1.value0.value4, v1.value0.value5, new Two2(v2.value0, v2.value1, v2.value2, v2.value3)); - return; - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 498, column 5 - line 503, column 108): " + [v1.value0.constructor.name, v2.constructor.name]); - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 495, column 3 - line 495, column 56): " + [v1.constructor.name, v2.constructor.name]); - } - ; - while (!$tco_done) { - $tco_result = $tco_loop($tco_var_v1, $copy_v2); - } - ; - return $tco_result; - }; - }; - var down = function($copy_v1) { - return function($copy_v2) { - var $tco_var_v1 = $copy_v1; - var $tco_done1 = false; - var $tco_result; - function $tco_loop(v1, v2) { - if (v2 instanceof Leaf2) { - $tco_done1 = true; - return up(v1)(new KickUp2(Leaf2.value, k, v, Leaf2.value)); - } - ; - if (v2 instanceof Two2) { - var v3 = compare78(k)(v2.value1); - if (v3 instanceof EQ) { - $tco_done1 = true; - return fromZipper1(v1)(new Two2(v2.value0, k, v, v2.value3)); - } - ; - if (v3 instanceof LT) { - $tco_var_v1 = new Cons(new TwoLeft2(v2.value1, v2.value2, v2.value3), v1); - $copy_v2 = v2.value0; - return; - } - ; - $tco_var_v1 = new Cons(new TwoRight2(v2.value0, v2.value1, v2.value2), v1); - $copy_v2 = v2.value3; - return; - } - ; - if (v2 instanceof Three2) { - var v3 = compare78(k)(v2.value1); - if (v3 instanceof EQ) { - $tco_done1 = true; - return fromZipper1(v1)(new Three2(v2.value0, k, v, v2.value3, v2.value4, v2.value5, v2.value6)); - } - ; - var v4 = compare78(k)(v2.value4); - if (v4 instanceof EQ) { - $tco_done1 = true; - return fromZipper1(v1)(new Three2(v2.value0, v2.value1, v2.value2, v2.value3, k, v, v2.value6)); - } - ; - if (v3 instanceof LT) { - $tco_var_v1 = new Cons(new ThreeLeft2(v2.value1, v2.value2, v2.value3, v2.value4, v2.value5, v2.value6), v1); - $copy_v2 = v2.value0; - return; - } - ; - if (v3 instanceof GT && v4 instanceof LT) { - $tco_var_v1 = new Cons(new ThreeMiddle2(v2.value0, v2.value1, v2.value2, v2.value4, v2.value5, v2.value6), v1); - $copy_v2 = v2.value3; - return; - } - ; - $tco_var_v1 = new Cons(new ThreeRight2(v2.value0, v2.value1, v2.value2, v2.value3, v2.value4, v2.value5), v1); - $copy_v2 = v2.value6; - return; - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 478, column 3 - line 478, column 55): " + [v1.constructor.name, v2.constructor.name]); - } - ; - while (!$tco_done1) { - $tco_result = $tco_loop($tco_var_v1, $copy_v2); - } - ; - return $tco_result; - }; - }; - return down(Nil.value); - }; - }; -}; -var pop = function(dictOrd) { - var fromZipper1 = fromZipper2(dictOrd); - var compare78 = compare(dictOrd); - return function(k) { - var up = function($copy_ctxs) { - return function($copy_tree) { - var $tco_var_ctxs = $copy_ctxs; - var $tco_done = false; - var $tco_result; - function $tco_loop(ctxs, tree) { - if (ctxs instanceof Nil) { - $tco_done = true; - return tree; - } - ; - if (ctxs instanceof Cons) { - if (ctxs.value0 instanceof TwoLeft2 && (ctxs.value0.value2 instanceof Leaf2 && tree instanceof Leaf2)) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Two2(Leaf2.value, ctxs.value0.value0, ctxs.value0.value1, Leaf2.value)); - } - ; - if (ctxs.value0 instanceof TwoRight2 && (ctxs.value0.value0 instanceof Leaf2 && tree instanceof Leaf2)) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Two2(Leaf2.value, ctxs.value0.value1, ctxs.value0.value2, Leaf2.value)); - } - ; - if (ctxs.value0 instanceof TwoLeft2 && ctxs.value0.value2 instanceof Two2) { - $tco_var_ctxs = ctxs.value1; - $copy_tree = new Three2(tree, ctxs.value0.value0, ctxs.value0.value1, ctxs.value0.value2.value0, ctxs.value0.value2.value1, ctxs.value0.value2.value2, ctxs.value0.value2.value3); - return; - } - ; - if (ctxs.value0 instanceof TwoRight2 && ctxs.value0.value0 instanceof Two2) { - $tco_var_ctxs = ctxs.value1; - $copy_tree = new Three2(ctxs.value0.value0.value0, ctxs.value0.value0.value1, ctxs.value0.value0.value2, ctxs.value0.value0.value3, ctxs.value0.value1, ctxs.value0.value2, tree); - return; - } - ; - if (ctxs.value0 instanceof TwoLeft2 && ctxs.value0.value2 instanceof Three2) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Two2(new Two2(tree, ctxs.value0.value0, ctxs.value0.value1, ctxs.value0.value2.value0), ctxs.value0.value2.value1, ctxs.value0.value2.value2, new Two2(ctxs.value0.value2.value3, ctxs.value0.value2.value4, ctxs.value0.value2.value5, ctxs.value0.value2.value6))); - } - ; - if (ctxs.value0 instanceof TwoRight2 && ctxs.value0.value0 instanceof Three2) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Two2(new Two2(ctxs.value0.value0.value0, ctxs.value0.value0.value1, ctxs.value0.value0.value2, ctxs.value0.value0.value3), ctxs.value0.value0.value4, ctxs.value0.value0.value5, new Two2(ctxs.value0.value0.value6, ctxs.value0.value1, ctxs.value0.value2, tree))); - } - ; - if (ctxs.value0 instanceof ThreeLeft2 && (ctxs.value0.value2 instanceof Leaf2 && (ctxs.value0.value5 instanceof Leaf2 && tree instanceof Leaf2))) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Three2(Leaf2.value, ctxs.value0.value0, ctxs.value0.value1, Leaf2.value, ctxs.value0.value3, ctxs.value0.value4, Leaf2.value)); - } - ; - if (ctxs.value0 instanceof ThreeMiddle2 && (ctxs.value0.value0 instanceof Leaf2 && (ctxs.value0.value5 instanceof Leaf2 && tree instanceof Leaf2))) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Three2(Leaf2.value, ctxs.value0.value1, ctxs.value0.value2, Leaf2.value, ctxs.value0.value3, ctxs.value0.value4, Leaf2.value)); - } - ; - if (ctxs.value0 instanceof ThreeRight2 && (ctxs.value0.value0 instanceof Leaf2 && (ctxs.value0.value3 instanceof Leaf2 && tree instanceof Leaf2))) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Three2(Leaf2.value, ctxs.value0.value1, ctxs.value0.value2, Leaf2.value, ctxs.value0.value4, ctxs.value0.value5, Leaf2.value)); - } - ; - if (ctxs.value0 instanceof ThreeLeft2 && ctxs.value0.value2 instanceof Two2) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Two2(new Three2(tree, ctxs.value0.value0, ctxs.value0.value1, ctxs.value0.value2.value0, ctxs.value0.value2.value1, ctxs.value0.value2.value2, ctxs.value0.value2.value3), ctxs.value0.value3, ctxs.value0.value4, ctxs.value0.value5)); - } - ; - if (ctxs.value0 instanceof ThreeMiddle2 && ctxs.value0.value0 instanceof Two2) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Two2(new Three2(ctxs.value0.value0.value0, ctxs.value0.value0.value1, ctxs.value0.value0.value2, ctxs.value0.value0.value3, ctxs.value0.value1, ctxs.value0.value2, tree), ctxs.value0.value3, ctxs.value0.value4, ctxs.value0.value5)); - } - ; - if (ctxs.value0 instanceof ThreeMiddle2 && ctxs.value0.value5 instanceof Two2) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Two2(ctxs.value0.value0, ctxs.value0.value1, ctxs.value0.value2, new Three2(tree, ctxs.value0.value3, ctxs.value0.value4, ctxs.value0.value5.value0, ctxs.value0.value5.value1, ctxs.value0.value5.value2, ctxs.value0.value5.value3))); - } - ; - if (ctxs.value0 instanceof ThreeRight2 && ctxs.value0.value3 instanceof Two2) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Two2(ctxs.value0.value0, ctxs.value0.value1, ctxs.value0.value2, new Three2(ctxs.value0.value3.value0, ctxs.value0.value3.value1, ctxs.value0.value3.value2, ctxs.value0.value3.value3, ctxs.value0.value4, ctxs.value0.value5, tree))); - } - ; - if (ctxs.value0 instanceof ThreeLeft2 && ctxs.value0.value2 instanceof Three2) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Three2(new Two2(tree, ctxs.value0.value0, ctxs.value0.value1, ctxs.value0.value2.value0), ctxs.value0.value2.value1, ctxs.value0.value2.value2, new Two2(ctxs.value0.value2.value3, ctxs.value0.value2.value4, ctxs.value0.value2.value5, ctxs.value0.value2.value6), ctxs.value0.value3, ctxs.value0.value4, ctxs.value0.value5)); - } - ; - if (ctxs.value0 instanceof ThreeMiddle2 && ctxs.value0.value0 instanceof Three2) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Three2(new Two2(ctxs.value0.value0.value0, ctxs.value0.value0.value1, ctxs.value0.value0.value2, ctxs.value0.value0.value3), ctxs.value0.value0.value4, ctxs.value0.value0.value5, new Two2(ctxs.value0.value0.value6, ctxs.value0.value1, ctxs.value0.value2, tree), ctxs.value0.value3, ctxs.value0.value4, ctxs.value0.value5)); - } - ; - if (ctxs.value0 instanceof ThreeMiddle2 && ctxs.value0.value5 instanceof Three2) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Three2(ctxs.value0.value0, ctxs.value0.value1, ctxs.value0.value2, new Two2(tree, ctxs.value0.value3, ctxs.value0.value4, ctxs.value0.value5.value0), ctxs.value0.value5.value1, ctxs.value0.value5.value2, new Two2(ctxs.value0.value5.value3, ctxs.value0.value5.value4, ctxs.value0.value5.value5, ctxs.value0.value5.value6))); - } - ; - if (ctxs.value0 instanceof ThreeRight2 && ctxs.value0.value3 instanceof Three2) { - $tco_done = true; - return fromZipper1(ctxs.value1)(new Three2(ctxs.value0.value0, ctxs.value0.value1, ctxs.value0.value2, new Two2(ctxs.value0.value3.value0, ctxs.value0.value3.value1, ctxs.value0.value3.value2, ctxs.value0.value3.value3), ctxs.value0.value3.value4, ctxs.value0.value3.value5, new Two2(ctxs.value0.value3.value6, ctxs.value0.value4, ctxs.value0.value5, tree))); - } - ; - $tco_done = true; - return unsafeCrashWith("The impossible happened in partial function `up`."); - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 552, column 5 - line 573, column 86): " + [ctxs.constructor.name]); - } - ; - while (!$tco_done) { - $tco_result = $tco_loop($tco_var_ctxs, $copy_tree); + var go = function(v1) { + if (v1 instanceof Leaf2) { + return singleton6(k)(v); } ; - return $tco_result; - }; - }; - var removeMaxNode = function($copy_ctx) { - return function($copy_m) { - var $tco_var_ctx = $copy_ctx; - var $tco_done1 = false; - var $tco_result; - function $tco_loop(ctx, m) { - if (m instanceof Two2 && (m.value0 instanceof Leaf2 && m.value3 instanceof Leaf2)) { - $tco_done1 = true; - return up(ctx)(Leaf2.value); + if (v1 instanceof Node) { + var v2 = compare78(k)(v1.value2); + if (v2 instanceof LT) { + return unsafeBalancedNode(v1.value2, v1.value3, go(v1.value4), v1.value5); } ; - if (m instanceof Two2) { - $tco_var_ctx = new Cons(new TwoRight2(m.value0, m.value1, m.value2), ctx); - $copy_m = m.value3; - return; + if (v2 instanceof GT) { + return unsafeBalancedNode(v1.value2, v1.value3, v1.value4, go(v1.value5)); } ; - if (m instanceof Three2 && (m.value0 instanceof Leaf2 && (m.value3 instanceof Leaf2 && m.value6 instanceof Leaf2))) { - $tco_done1 = true; - return up(new Cons(new TwoRight2(Leaf2.value, m.value1, m.value2), ctx))(Leaf2.value); - } - ; - if (m instanceof Three2) { - $tco_var_ctx = new Cons(new ThreeRight2(m.value0, m.value1, m.value2, m.value3, m.value4, m.value5), ctx); - $copy_m = m.value6; - return; + if (v2 instanceof EQ) { + return new Node(v1.value0, v1.value1, k, v, v1.value4, v1.value5); } ; - $tco_done1 = true; - return unsafeCrashWith("The impossible happened in partial function `removeMaxNode`."); + throw new Error("Failed pattern match at Data.Map.Internal (line 471, column 7 - line 474, column 35): " + [v2.constructor.name]); } ; - while (!$tco_done1) { - $tco_result = $tco_loop($tco_var_ctx, $copy_m); - } - ; - return $tco_result; + throw new Error("Failed pattern match at Data.Map.Internal (line 468, column 8 - line 474, column 35): " + [v1.constructor.name]); }; + return go; }; - var maxNode = function($copy_m) { - var $tco_done2 = false; - var $tco_result; - function $tco_loop(m) { - if (m instanceof Two2 && m.value3 instanceof Leaf2) { - $tco_done2 = true; - return { - key: m.value1, - value: m.value2 - }; - } - ; - if (m instanceof Two2) { - $copy_m = m.value3; - return; - } - ; - if (m instanceof Three2 && m.value6 instanceof Leaf2) { - $tco_done2 = true; - return { - key: m.value4, - value: m.value5 - }; - } - ; - if (m instanceof Three2) { - $copy_m = m.value6; - return; - } - ; - $tco_done2 = true; - return unsafeCrashWith("The impossible happened in partial function `maxNode`."); + }; +}; +var functorMap = { + map: function(f) { + var go = function(v) { + if (v instanceof Leaf2) { + return Leaf2.value; } ; - while (!$tco_done2) { - $tco_result = $tco_loop($copy_m); + if (v instanceof Node) { + return new Node(v.value0, v.value1, v.value2, f(v.value3), go(v.value4), go(v.value5)); } ; - return $tco_result; + throw new Error("Failed pattern match at Data.Map.Internal (line 147, column 10 - line 150, column 39): " + [v.constructor.name]); }; - var down = function($copy_ctx) { - return function($copy_m) { - var $tco_var_ctx = $copy_ctx; - var $tco_done3 = false; - var $tco_result; - function $tco_loop(ctx, m) { - if (m instanceof Leaf2) { - $tco_done3 = true; - return Nothing.value; - } - ; - if (m instanceof Two2) { - var v = compare78(k)(m.value1); - if (m.value3 instanceof Leaf2 && v instanceof EQ) { - $tco_done3 = true; - return new Just(new Tuple(m.value2, up(ctx)(Leaf2.value))); - } - ; - if (v instanceof EQ) { - var max6 = maxNode(m.value0); - $tco_done3 = true; - return new Just(new Tuple(m.value2, removeMaxNode(new Cons(new TwoLeft2(max6.key, max6.value, m.value3), ctx))(m.value0))); - } - ; - if (v instanceof LT) { - $tco_var_ctx = new Cons(new TwoLeft2(m.value1, m.value2, m.value3), ctx); - $copy_m = m.value0; - return; - } - ; - $tco_var_ctx = new Cons(new TwoRight2(m.value0, m.value1, m.value2), ctx); - $copy_m = m.value3; - return; - } - ; - if (m instanceof Three2) { - var leaves = function() { - if (m.value0 instanceof Leaf2 && (m.value3 instanceof Leaf2 && m.value6 instanceof Leaf2)) { - return true; - } - ; - return false; - }(); - var v = compare78(k)(m.value4); - var v3 = compare78(k)(m.value1); - if (leaves && v3 instanceof EQ) { - $tco_done3 = true; - return new Just(new Tuple(m.value2, fromZipper1(ctx)(new Two2(Leaf2.value, m.value4, m.value5, Leaf2.value)))); - } - ; - if (leaves && v instanceof EQ) { - $tco_done3 = true; - return new Just(new Tuple(m.value5, fromZipper1(ctx)(new Two2(Leaf2.value, m.value1, m.value2, Leaf2.value)))); - } - ; - if (v3 instanceof EQ) { - var max6 = maxNode(m.value0); - $tco_done3 = true; - return new Just(new Tuple(m.value2, removeMaxNode(new Cons(new ThreeLeft2(max6.key, max6.value, m.value3, m.value4, m.value5, m.value6), ctx))(m.value0))); - } - ; - if (v instanceof EQ) { - var max6 = maxNode(m.value3); - $tco_done3 = true; - return new Just(new Tuple(m.value5, removeMaxNode(new Cons(new ThreeMiddle2(m.value0, m.value1, m.value2, max6.key, max6.value, m.value6), ctx))(m.value3))); - } - ; - if (v3 instanceof LT) { - $tco_var_ctx = new Cons(new ThreeLeft2(m.value1, m.value2, m.value3, m.value4, m.value5, m.value6), ctx); - $copy_m = m.value0; - return; - } - ; - if (v3 instanceof GT && v instanceof LT) { - $tco_var_ctx = new Cons(new ThreeMiddle2(m.value0, m.value1, m.value2, m.value4, m.value5, m.value6), ctx); - $copy_m = m.value3; - return; - } - ; - $tco_var_ctx = new Cons(new ThreeRight2(m.value0, m.value1, m.value2, m.value3, m.value4, m.value5), ctx); - $copy_m = m.value6; - return; - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 525, column 16 - line 548, column 80): " + [m.constructor.name]); - } - ; - while (!$tco_done3) { - $tco_result = $tco_loop($tco_var_ctx, $copy_m); - } - ; - return $tco_result; - }; - }; - return down(Nil.value); - }; + return go; + } }; var foldableMap = { foldr: function(f) { return function(z) { + var $lazy_go = $runtime_lazy4("go", "Data.Map.Internal", function() { + return function(m$prime, z$prime) { + if (m$prime instanceof Leaf2) { + return z$prime; + } + ; + if (m$prime instanceof Node) { + return $lazy_go(172)(m$prime.value4, f(m$prime.value3)($lazy_go(172)(m$prime.value5, z$prime))); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 169, column 26 - line 172, column 43): " + [m$prime.constructor.name]); + }; + }); + var go = $lazy_go(169); return function(m) { - if (m instanceof Leaf2) { - return z; - } - ; - if (m instanceof Two2) { - return foldr(foldableMap)(f)(f(m.value2)(foldr(foldableMap)(f)(z)(m.value3)))(m.value0); - } - ; - if (m instanceof Three2) { - return foldr(foldableMap)(f)(f(m.value2)(foldr(foldableMap)(f)(f(m.value5)(foldr(foldableMap)(f)(z)(m.value6)))(m.value3)))(m.value0); - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 133, column 17 - line 136, column 85): " + [m.constructor.name]); + return go(m, z); }; }; }, foldl: function(f) { return function(z) { + var $lazy_go = $runtime_lazy4("go", "Data.Map.Internal", function() { + return function(z$prime, m$prime) { + if (m$prime instanceof Leaf2) { + return z$prime; + } + ; + if (m$prime instanceof Node) { + return $lazy_go(178)(f($lazy_go(178)(z$prime, m$prime.value4))(m$prime.value3), m$prime.value5); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 175, column 26 - line 178, column 43): " + [m$prime.constructor.name]); + }; + }); + var go = $lazy_go(175); return function(m) { - if (m instanceof Leaf2) { - return z; - } - ; - if (m instanceof Two2) { - return foldl(foldableMap)(f)(f(foldl(foldableMap)(f)(z)(m.value0))(m.value2))(m.value3); - } - ; - if (m instanceof Three2) { - return foldl(foldableMap)(f)(f(foldl(foldableMap)(f)(f(foldl(foldableMap)(f)(z)(m.value0))(m.value2))(m.value3))(m.value5))(m.value6); - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 137, column 17 - line 140, column 85): " + [m.constructor.name]); + return go(z, m); }; }; }, foldMap: function(dictMonoid) { var mempty11 = mempty(dictMonoid); - var append25 = append(dictMonoid.Semigroup0()); + var append19 = append(dictMonoid.Semigroup0()); return function(f) { - return function(m) { - if (m instanceof Leaf2) { + var go = function(v) { + if (v instanceof Leaf2) { return mempty11; } ; - if (m instanceof Two2) { - return append25(foldMap(foldableMap)(dictMonoid)(f)(m.value0))(append25(f(m.value2))(foldMap(foldableMap)(dictMonoid)(f)(m.value3))); + if (v instanceof Node) { + return append19(go(v.value4))(append19(f(v.value3))(go(v.value5))); } ; - if (m instanceof Three2) { - return append25(foldMap(foldableMap)(dictMonoid)(f)(m.value0))(append25(f(m.value2))(append25(foldMap(foldableMap)(dictMonoid)(f)(m.value3))(append25(f(m.value5))(foldMap(foldableMap)(dictMonoid)(f)(m.value6))))); - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 141, column 17 - line 144, column 93): " + [m.constructor.name]); + throw new Error("Failed pattern match at Data.Map.Internal (line 181, column 10 - line 184, column 28): " + [v.constructor.name]); }; + return go; }; } }; var foldableWithIndexMap = { foldrWithIndex: function(f) { return function(z) { + var $lazy_go = $runtime_lazy4("go", "Data.Map.Internal", function() { + return function(m$prime, z$prime) { + if (m$prime instanceof Leaf2) { + return z$prime; + } + ; + if (m$prime instanceof Node) { + return $lazy_go(192)(m$prime.value4, f(m$prime.value2)(m$prime.value3)($lazy_go(192)(m$prime.value5, z$prime))); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 189, column 26 - line 192, column 45): " + [m$prime.constructor.name]); + }; + }); + var go = $lazy_go(189); return function(m) { - if (m instanceof Leaf2) { - return z; - } - ; - if (m instanceof Two2) { - return foldrWithIndex(foldableWithIndexMap)(f)(f(m.value1)(m.value2)(foldrWithIndex(foldableWithIndexMap)(f)(z)(m.value3)))(m.value0); - } - ; - if (m instanceof Three2) { - return foldrWithIndex(foldableWithIndexMap)(f)(f(m.value1)(m.value2)(foldrWithIndex(foldableWithIndexMap)(f)(f(m.value4)(m.value5)(foldrWithIndex(foldableWithIndexMap)(f)(z)(m.value6)))(m.value3)))(m.value0); - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 147, column 26 - line 150, column 120): " + [m.constructor.name]); + return go(m, z); }; }; }, foldlWithIndex: function(f) { return function(z) { + var $lazy_go = $runtime_lazy4("go", "Data.Map.Internal", function() { + return function(z$prime, m$prime) { + if (m$prime instanceof Leaf2) { + return z$prime; + } + ; + if (m$prime instanceof Node) { + return $lazy_go(198)(f(m$prime.value2)($lazy_go(198)(z$prime, m$prime.value4))(m$prime.value3), m$prime.value5); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 195, column 26 - line 198, column 45): " + [m$prime.constructor.name]); + }; + }); + var go = $lazy_go(195); return function(m) { - if (m instanceof Leaf2) { - return z; - } - ; - if (m instanceof Two2) { - return foldlWithIndex(foldableWithIndexMap)(f)(f(m.value1)(foldlWithIndex(foldableWithIndexMap)(f)(z)(m.value0))(m.value2))(m.value3); - } - ; - if (m instanceof Three2) { - return foldlWithIndex(foldableWithIndexMap)(f)(f(m.value4)(foldlWithIndex(foldableWithIndexMap)(f)(f(m.value1)(foldlWithIndex(foldableWithIndexMap)(f)(z)(m.value0))(m.value2))(m.value3))(m.value5))(m.value6); - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 151, column 26 - line 154, column 120): " + [m.constructor.name]); + return go(z, m); }; }; }, foldMapWithIndex: function(dictMonoid) { var mempty11 = mempty(dictMonoid); - var append25 = append(dictMonoid.Semigroup0()); + var append19 = append(dictMonoid.Semigroup0()); return function(f) { - return function(m) { - if (m instanceof Leaf2) { + var go = function(v) { + if (v instanceof Leaf2) { return mempty11; } ; - if (m instanceof Two2) { - return append25(foldMapWithIndex(foldableWithIndexMap)(dictMonoid)(f)(m.value0))(append25(f(m.value1)(m.value2))(foldMapWithIndex(foldableWithIndexMap)(dictMonoid)(f)(m.value3))); + if (v instanceof Node) { + return append19(go(v.value4))(append19(f(v.value2)(v.value3))(go(v.value5))); } ; - if (m instanceof Three2) { - return append25(foldMapWithIndex(foldableWithIndexMap)(dictMonoid)(f)(m.value0))(append25(f(m.value1)(m.value2))(append25(foldMapWithIndex(foldableWithIndexMap)(dictMonoid)(f)(m.value3))(append25(f(m.value4)(m.value5))(foldMapWithIndex(foldableWithIndexMap)(dictMonoid)(f)(m.value6))))); - } - ; - throw new Error("Failed pattern match at Data.Map.Internal (line 155, column 26 - line 158, column 128): " + [m.constructor.name]); + throw new Error("Failed pattern match at Data.Map.Internal (line 201, column 10 - line 204, column 30): " + [v.constructor.name]); }; + return go; }; }, Foldable0: function() { return foldableMap; } }; -var foldrWithIndex2 = /* @__PURE__ */ foldrWithIndex(foldableWithIndexMap); var keys = /* @__PURE__ */ function() { - return foldrWithIndex2(function(k) { + return foldrWithIndex(foldableWithIndexMap)(function(k) { return function(v) { return function(acc) { return new Cons(k, acc); @@ -6294,22 +5985,25 @@ var traversableMap = { var Apply0 = dictApplicative.Apply0(); var apply6 = apply2(Apply0); var map117 = map(Apply0.Functor0()); - return function(v) { - return function(v1) { - if (v1 instanceof Leaf2) { + return function(f) { + var go = function(v) { + if (v instanceof Leaf2) { return pure17(Leaf2.value); } ; - if (v1 instanceof Two2) { - return apply6(apply6(apply6(map117(Two2.create)(traverse(traversableMap)(dictApplicative)(v)(v1.value0)))(pure17(v1.value1)))(v(v1.value2)))(traverse(traversableMap)(dictApplicative)(v)(v1.value3)); - } - ; - if (v1 instanceof Three2) { - return apply6(apply6(apply6(apply6(apply6(apply6(map117(Three2.create)(traverse(traversableMap)(dictApplicative)(v)(v1.value0)))(pure17(v1.value1)))(v(v1.value2)))(traverse(traversableMap)(dictApplicative)(v)(v1.value3)))(pure17(v1.value4)))(v(v1.value5)))(traverse(traversableMap)(dictApplicative)(v)(v1.value6)); + if (v instanceof Node) { + return apply6(apply6(map117(function(l$prime) { + return function(v$prime) { + return function(r$prime) { + return new Node(v.value0, v.value1, v.value2, v$prime, l$prime, r$prime); + }; + }; + })(go(v.value4)))(f(v.value3)))(go(v.value5)); } ; - throw new Error("Failed pattern match at Data.Map.Internal (line 160, column 1 - line 175, column 31): " + [v.constructor.name, v1.constructor.name]); + throw new Error("Failed pattern match at Data.Map.Internal (line 209, column 10 - line 215, column 19): " + [v.constructor.name]); }; + return go; }; }, sequence: function(dictApplicative) { @@ -6348,30 +6042,51 @@ var fromFoldableWithIndex = function(dictOrd) { }; }; var $$delete = function(dictOrd) { - var pop1 = pop(dictOrd); + var compare78 = compare(dictOrd); return function(k) { - return function(m) { - return maybe(m)(snd)(pop1(k)(m)); + var go = function(v) { + if (v instanceof Leaf2) { + return Leaf2.value; + } + ; + if (v instanceof Node) { + var v1 = compare78(k)(v.value2); + if (v1 instanceof LT) { + return unsafeBalancedNode(v.value2, v.value3, go(v.value4), v.value5); + } + ; + if (v1 instanceof GT) { + return unsafeBalancedNode(v.value2, v.value3, v.value4, go(v.value5)); + } + ; + if (v1 instanceof EQ) { + return unsafeJoinNodes(v.value4, v.value5); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 498, column 7 - line 501, column 43): " + [v1.constructor.name]); + } + ; + throw new Error("Failed pattern match at Data.Map.Internal (line 495, column 8 - line 501, column 43): " + [v.constructor.name]); }; + return go; }; }; var alter = function(dictOrd) { - var lookup12 = lookup(dictOrd); - var delete1 = $$delete(dictOrd); - var insert12 = insert(dictOrd); + var compare78 = compare(dictOrd); return function(f) { return function(k) { return function(m) { - var v = f(lookup12(k)(m)); - if (v instanceof Nothing) { - return delete1(k)(m); + var v = unsafeSplit(compare78, k, m); + var v2 = f(v.value0); + if (v2 instanceof Nothing) { + return unsafeJoinNodes(v.value1, v.value2); } ; - if (v instanceof Just) { - return insert12(k)(v.value0)(m); + if (v2 instanceof Just) { + return unsafeBalancedNode(k, v2.value0, v.value1, v.value2); } ; - throw new Error("Failed pattern match at Data.Map.Internal (line 596, column 15 - line 598, column 25): " + [v.constructor.name]); + throw new Error("Failed pattern match at Data.Map.Internal (line 514, column 3 - line 518, column 41): " + [v2.constructor.name]); }; }; }; @@ -6453,48 +6168,42 @@ var keys2 = Object.keys || toArrayWithKey(function(k) { }); // output/Data.Array/foreign.js -var range2 = function(start) { - return function(end) { - var step3 = start > end ? -1 : 1; - var result = new Array(step3 * (end - start) + 1); - var i = start, n = 0; - while (i !== end) { - result[n++] = i; - i += step3; - } - result[n] = i; - return result; - }; +var rangeImpl = function(start, end) { + var step2 = start > end ? -1 : 1; + var result = new Array(step2 * (end - start) + 1); + var i = start, n = 0; + while (i !== end) { + result[n++] = i; + i += step2; + } + result[n] = i; + return result; }; -var replicateFill = function(count) { - return function(value) { - if (count < 1) { - return []; - } - var result = new Array(count); - return result.fill(value); - }; +var replicateFill = function(count, value) { + if (count < 1) { + return []; + } + var result = new Array(count); + return result.fill(value); }; -var replicatePolyfill = function(count) { - return function(value) { - var result = []; - var n = 0; - for (var i = 0; i < count; i++) { - result[n++] = value; - } - return result; - }; +var replicatePolyfill = function(count, value) { + var result = []; + var n = 0; + for (var i = 0; i < count; i++) { + result[n++] = value; + } + return result; }; -var replicate = typeof Array.prototype.fill === "function" ? replicateFill : replicatePolyfill; +var replicateImpl = typeof Array.prototype.fill === "function" ? replicateFill : replicatePolyfill; var fromFoldableImpl = function() { - function Cons3(head4, tail3) { - this.head = head4; + function Cons2(head3, tail3) { + this.head = head3; this.tail = tail3; } var emptyList = {}; - function curryCons(head4) { + function curryCons(head3) { return function(tail3) { - return new Cons3(head4, tail3); + return new Cons2(head3, tail3); }; } function listToArray(list) { @@ -6507,77 +6216,47 @@ var fromFoldableImpl = function() { } return result; } - return function(foldr12) { - return function(xs) { - return listToArray(foldr12(curryCons)(emptyList)(xs)); - }; + return function(foldr12, xs) { + return listToArray(foldr12(curryCons)(emptyList)(xs)); }; }(); var length3 = function(xs) { return xs.length; }; -var unconsImpl = function(empty7) { - return function(next2) { - return function(xs) { - return xs.length === 0 ? empty7({}) : next2(xs[0])(xs.slice(1)); - }; - }; +var unconsImpl = function(empty7, next2, xs) { + return xs.length === 0 ? empty7({}) : next2(xs[0])(xs.slice(1)); }; -var indexImpl = function(just) { - return function(nothing) { - return function(xs) { - return function(i) { - return i < 0 || i >= xs.length ? nothing : just(xs[i]); - }; - }; - }; +var indexImpl = function(just, nothing, xs, i) { + return i < 0 || i >= xs.length ? nothing : just(xs[i]); }; -var findIndexImpl = function(just) { - return function(nothing) { - return function(f) { - return function(xs) { - for (var i = 0, l = xs.length; i < l; i++) { - if (f(xs[i])) - return just(i); - } - return nothing; - }; - }; - }; +var findIndexImpl = function(just, nothing, f, xs) { + for (var i = 0, l = xs.length; i < l; i++) { + if (f(xs[i])) + return just(i); + } + return nothing; }; -var _updateAt = function(just) { - return function(nothing) { - return function(i) { - return function(a) { - return function(l) { - if (i < 0 || i >= l.length) - return nothing; - var l1 = l.slice(); - l1[i] = a; - return just(l1); - }; - }; - }; - }; +var _updateAt = function(just, nothing, i, a, l) { + if (i < 0 || i >= l.length) + return nothing; + var l1 = l.slice(); + l1[i] = a; + return just(l1); }; -var filter3 = function(f) { - return function(xs) { - return xs.filter(f); - }; +var filterImpl = function(f, xs) { + return xs.filter(f); }; -var partition2 = function(f) { - return function(xs) { - var yes = []; - var no = []; - for (var i = 0; i < xs.length; i++) { - var x = xs[i]; - if (f(x)) - yes.push(x); - else - no.push(x); - } - return { yes, no }; - }; +var partitionImpl = function(f, xs) { + var yes = []; + var no = []; + for (var i = 0; i < xs.length; i++) { + var x = xs[i]; + if (f(x)) + yes.push(x); + else + no.push(x); + } + return { yes, no }; }; var sortByImpl = function() { function mergeFromTo(compare78, fromOrdering, xs1, xs2, from3, to2) { @@ -6615,81 +6294,51 @@ var sortByImpl = function() { xs1[k++] = xs2[j++]; } } - return function(compare78) { - return function(fromOrdering) { - return function(xs) { - var out; - if (xs.length < 2) - return xs; - out = xs.slice(0); - mergeFromTo(compare78, fromOrdering, out, xs.slice(0), 0, xs.length); - return out; - }; - }; + return function(compare78, fromOrdering, xs) { + var out; + if (xs.length < 2) + return xs; + out = xs.slice(0); + mergeFromTo(compare78, fromOrdering, out, xs.slice(0), 0, xs.length); + return out; }; }(); -var slice2 = function(s) { - return function(e) { - return function(l) { - return l.slice(s, e); - }; - }; +var sliceImpl = function(s, e, l) { + return l.slice(s, e); }; -var zipWith2 = function(f) { - return function(xs) { - return function(ys) { - var l = xs.length < ys.length ? xs.length : ys.length; - var result = new Array(l); - for (var i = 0; i < l; i++) { - result[i] = f(xs[i])(ys[i]); - } - return result; - }; - }; +var zipWithImpl = function(f, xs, ys) { + var l = xs.length < ys.length ? xs.length : ys.length; + var result = new Array(l); + for (var i = 0; i < l; i++) { + result[i] = f(xs[i])(ys[i]); + } + return result; }; -var all2 = function(p) { - return function(xs) { - var len = xs.length; - for (var i = 0; i < len; i++) { - if (!p(xs[i])) - return false; - } - return true; - }; +var allImpl = function(p, xs) { + var len = xs.length; + for (var i = 0; i < len; i++) { + if (!p(xs[i])) + return false; + } + return true; }; -var unsafeIndexImpl = function(xs) { - return function(n) { - return xs[n]; - }; +var unsafeIndexImpl = function(xs, n) { + return xs[n]; }; // output/Data.Array.ST/foreign.js function newSTArray() { return []; } -var pushAll = function(as) { - return function(xs) { - return function() { - return xs.push.apply(xs, as); - }; - }; -}; -var unsafeFreeze = function(xs) { - return function() { - return xs; - }; -}; -var unsafeThaw = function(xs) { - return function() { - return xs; - }; -}; +function unsafeFreezeThawImpl(xs) { + return xs; +} +var unsafeFreezeImpl = unsafeFreezeThawImpl; +var unsafeThawImpl = unsafeFreezeThawImpl; function copyImpl(xs) { - return function() { - return xs.slice(); - }; + return xs.slice(); } -var thaw = copyImpl; +var thawImpl = copyImpl; var sortByImpl2 = function() { function mergeFromTo(compare78, fromOrdering, xs1, xs2, from3, to2) { var mid; @@ -6726,21 +6375,39 @@ var sortByImpl2 = function() { xs1[k++] = xs2[j++]; } } - return function(compare78) { - return function(fromOrdering) { - return function(xs) { - return function() { - if (xs.length < 2) - return xs; - mergeFromTo(compare78, fromOrdering, xs, xs.slice(0), 0, xs.length); - return xs; - }; + return function(compare78, fromOrdering, xs) { + if (xs.length < 2) + return xs; + mergeFromTo(compare78, fromOrdering, xs, xs.slice(0), 0, xs.length); + return xs; + }; +}(); +var pushImpl = function(a, xs) { + return xs.push(a); +}; + +// output/Control.Monad.ST.Uncurried/foreign.js +var runSTFn1 = function runSTFn12(fn) { + return function(a) { + return function() { + return fn(a); + }; + }; +}; +var runSTFn2 = function runSTFn22(fn) { + return function(a) { + return function(b) { + return function() { + return fn(a, b); }; }; }; -}(); +}; // output/Data.Array.ST/index.js +var unsafeThaw = /* @__PURE__ */ runSTFn1(unsafeThawImpl); +var unsafeFreeze = /* @__PURE__ */ runSTFn1(unsafeFreezeImpl); +var thaw = /* @__PURE__ */ runSTFn1(thawImpl); var withArray = function(f) { return function(xs) { return function __do() { @@ -6750,9 +6417,7 @@ var withArray = function(f) { }; }; }; -var push = function(a) { - return pushAll([a]); -}; +var push = /* @__PURE__ */ runSTFn2(pushImpl); // output/Data.Array.ST.Iterator/index.js var map9 = /* @__PURE__ */ map(functorST); @@ -6808,28 +6473,29 @@ var iterate = function(iter) { }; // output/Data.Array/index.js -var map10 = /* @__PURE__ */ map(functorST); -var when2 = /* @__PURE__ */ when(applicativeST); var $$void4 = /* @__PURE__ */ $$void(functorST); var intercalate1 = /* @__PURE__ */ intercalate(foldableArray); var apply4 = /* @__PURE__ */ apply2(applyMaybe); -var map1 = /* @__PURE__ */ map(functorMaybe); -var map22 = /* @__PURE__ */ map(functorArray); +var map10 = /* @__PURE__ */ map(functorMaybe); +var map1 = /* @__PURE__ */ map(functorArray); +var map22 = /* @__PURE__ */ map(functorST); var fromJust4 = /* @__PURE__ */ fromJust(); +var when2 = /* @__PURE__ */ when(applicativeST); var notEq3 = /* @__PURE__ */ notEq(eqOrdering); var foldMap12 = /* @__PURE__ */ foldMap(foldableArray); var append2 = /* @__PURE__ */ append(semigroupArray); +var zipWith2 = /* @__PURE__ */ runFn3(zipWithImpl); var zip = /* @__PURE__ */ function() { return zipWith2(Tuple.create); }(); var updateAt2 = /* @__PURE__ */ function() { - return _updateAt(Just.create)(Nothing.value); + return runFn5(_updateAt)(Just.create)(Nothing.value); }(); var unsafeIndex = function() { - return unsafeIndexImpl; + return runFn2(unsafeIndexImpl); }; var uncons2 = /* @__PURE__ */ function() { - return unconsImpl($$const(Nothing.value))(function(x) { + return runFn3(unconsImpl)($$const(Nothing.value))(function(x) { return function(xs) { return new Just({ head: x, @@ -6839,14 +6505,14 @@ var uncons2 = /* @__PURE__ */ function() { }); }(); var tail = /* @__PURE__ */ function() { - return unconsImpl($$const(Nothing.value))(function(v) { + return runFn3(unconsImpl)($$const(Nothing.value))(function(v) { return function(xs) { return new Just(xs); }; }); }(); var sortBy2 = function(comp) { - return sortByImpl(comp)(function(v) { + return runFn3(sortByImpl)(comp)(function(v) { if (v instanceof GT) { return 1; } @@ -6859,7 +6525,7 @@ var sortBy2 = function(comp) { return -1 | 0; } ; - throw new Error("Failed pattern match at Data.Array (line 870, column 31 - line 873, column 11): " + [v.constructor.name]); + throw new Error("Failed pattern match at Data.Array (line 897, column 38 - line 900, column 11): " + [v.constructor.name]); }); }; var sortWith = function(dictOrd) { @@ -6880,9 +6546,12 @@ var snoc2 = function(xs) { return withArray(push(x))(xs)(); }; }; +var slice2 = /* @__PURE__ */ runFn3(sliceImpl); var singleton7 = function(a) { return [a]; }; +var range2 = /* @__PURE__ */ runFn2(rangeImpl); +var partition2 = /* @__PURE__ */ runFn2(partitionImpl); var $$null = function(xs) { return length3(xs) === 0; }; @@ -6899,16 +6568,16 @@ var init2 = function(xs) { return new Just(slice2(0)(length3(xs) - 1 | 0)(xs)); } ; - throw new Error("Failed pattern match at Data.Array (line 340, column 1 - line 340, column 45): " + [xs.constructor.name]); + throw new Error("Failed pattern match at Data.Array (line 351, column 1 - line 351, column 45): " + [xs.constructor.name]); }; var index2 = /* @__PURE__ */ function() { - return indexImpl(Just.create)(Nothing.value); + return runFn4(indexImpl)(Just.create)(Nothing.value); }(); var last2 = function(xs) { return index2(xs)(length3(xs) - 1 | 0); }; var unsnoc2 = function(xs) { - return apply4(map1(function(v) { + return apply4(map10(function(v) { return function(v1) { return { init: v, @@ -6945,7 +6614,7 @@ var unzip = function(xs) { return new Tuple(fsts$prime, snds$prime); }(); }; -var head2 = function(xs) { +var head = function(xs) { return index2(xs)(0); }; var nubBy2 = function(comp) { @@ -6955,22 +6624,22 @@ var nubBy2 = function(comp) { return comp(snd(x))(snd(y)); }; })(mapWithIndex3(Tuple.create)(xs)); - var v = head2(indexedAndSorted); + var v = head(indexedAndSorted); if (v instanceof Nothing) { return []; } ; if (v instanceof Just) { - return map22(snd)(sortWith1(fst)(function __do() { + return map1(snd)(sortWith1(fst)(function __do() { var result = unsafeThaw(singleton7(v.value0))(); foreach(indexedAndSorted)(function(v1) { return function __do2() { - var lst = map10(function() { - var $185 = function($187) { - return fromJust4(last2($187)); + var lst = map22(function() { + var $183 = function($185) { + return fromJust4(last2($185)); }; - return function($186) { - return snd($185($186)); + return function($184) { + return snd($183($184)); }; }())(unsafeFreeze(result))(); return when2(notEq3(comp(lst)(v1.value1))(EQ.value))($$void4(push(v1)(result)))(); @@ -6980,22 +6649,23 @@ var nubBy2 = function(comp) { }())); } ; - throw new Error("Failed pattern match at Data.Array (line 1085, column 17 - line 1093, column 29): " + [v.constructor.name]); + throw new Error("Failed pattern match at Data.Array (line 1115, column 17 - line 1123, column 28): " + [v.constructor.name]); }; }; var nub2 = function(dictOrd) { return nubBy2(compare(dictOrd)); }; var fromFoldable3 = function(dictFoldable) { - return fromFoldableImpl(foldr(dictFoldable)); + return runFn2(fromFoldableImpl)(foldr(dictFoldable)); }; var foldr3 = /* @__PURE__ */ foldr(foldableArray); var foldMap2 = function(dictMonoid) { return foldMap12(dictMonoid); }; var findIndex2 = /* @__PURE__ */ function() { - return findIndexImpl(Just.create)(Nothing.value); + return runFn4(findIndexImpl)(Just.create)(Nothing.value); }(); +var filter2 = /* @__PURE__ */ runFn2(filterImpl); var elemIndex = function(dictEq) { var eq213 = eq(dictEq); return function(x) { @@ -7012,7 +6682,7 @@ var elem2 = function(dictEq) { }; }; }; -var cons3 = function(x) { +var cons2 = function(x) { return function(xs) { return append2([x])(xs); }; @@ -7020,13 +6690,14 @@ var cons3 = function(x) { var concatMap = /* @__PURE__ */ flip(/* @__PURE__ */ bind(bindArray)); var mapMaybe2 = function(f) { return concatMap(function() { - var $191 = maybe([])(singleton7); - return function($192) { - return $191(f($192)); + var $189 = maybe([])(singleton7); + return function($190) { + return $189(f($190)); }; }()); }; var catMaybes2 = /* @__PURE__ */ mapMaybe2(/* @__PURE__ */ identity(categoryFn)); +var all2 = /* @__PURE__ */ runFn2(allImpl); // output/Foreign.Object.ST/foreign.js function poke2(k) { @@ -7102,9 +6773,9 @@ var foldableObject = { }; }, foldMap: function(dictMonoid) { - var foldMap15 = foldMap3(dictMonoid); + var foldMap16 = foldMap3(dictMonoid); return function(f) { - return foldMap15($$const(f)); + return foldMap16($$const(f)); }; } }; @@ -7306,12 +6977,12 @@ var traverse1Impl = function() { this.fn = fn; } var emptyList = {}; - var ConsCell = function(head4, tail3) { - this.head = head4; + var ConsCell = function(head3, tail3) { + this.head = head3; this.tail = tail3; }; - function finalCell(head4) { - return new ConsCell(head4, emptyList); + function finalCell(head3) { + return new ConsCell(head3, emptyList); } function consList(x) { return function(xs) { @@ -7327,32 +6998,28 @@ var traverse1Impl = function() { } return arr; } - return function(apply6) { - return function(map37) { - return function(f) { - var buildFrom = function(x, ys) { - return apply6(map37(consList)(f(x)))(ys); - }; - var go = function(acc, currentLen, xs) { - if (currentLen === 0) { - return acc; - } else { - var last3 = xs[currentLen - 1]; - return new Cont(function() { - var built = go(buildFrom(last3, acc), currentLen - 1, xs); - return built; - }); - } - }; - return function(array) { - var acc = map37(finalCell)(f(array[array.length - 1])); - var result = go(acc, array.length - 1, array); - while (result instanceof Cont) { - result = result.fn(); - } - return map37(listToArray)(result); - }; - }; + return function(apply6, map37, f) { + var buildFrom = function(x, ys) { + return apply6(map37(consList)(f(x)))(ys); + }; + var go = function(acc, currentLen, xs) { + if (currentLen === 0) { + return acc; + } else { + var last3 = xs[currentLen - 1]; + return new Cont(function() { + var built = go(buildFrom(last3, acc), currentLen - 1, xs); + return built; + }); + } + }; + return function(array) { + var acc = map37(finalCell)(f(array[array.length - 1])); + var result = go(acc, array.length - 1, array); + while (result instanceof Cont) { + result = result.fn(); + } + return map37(listToArray)(result); }; }; }(); @@ -7401,7 +7068,7 @@ var fromArray = function(xs) { }; var cons$prime = function(x) { return function(xs) { - return unsafeFromArray(cons3(x)(xs)); + return unsafeFromArray(cons2(x)(xs)); }; }; var adaptMaybe = function(f) { @@ -7409,7 +7076,7 @@ var adaptMaybe = function(f) { return fromJust5(f(toArray2($126))); }; }; -var head3 = /* @__PURE__ */ adaptMaybe(head2); +var head2 = /* @__PURE__ */ adaptMaybe(head); var tail2 = /* @__PURE__ */ adaptMaybe(tail); var uncons3 = /* @__PURE__ */ adaptMaybe(uncons2); var unsnoc3 = /* @__PURE__ */ adaptMaybe(unsnoc2); @@ -7419,7 +7086,7 @@ var adaptAny = function(f) { }; }; var catMaybes3 = /* @__PURE__ */ adaptAny(catMaybes2); -var length5 = /* @__PURE__ */ adaptAny(length3); +var length4 = /* @__PURE__ */ adaptAny(length3); var unsafeAdapt = function(f) { var $129 = adaptAny(f); return function($130) { @@ -7434,6 +7101,7 @@ var sortWith2 = function(dictOrd) { }; // output/Data.Set/index.js +var coerce4 = /* @__PURE__ */ coerce(); var foldMap4 = /* @__PURE__ */ foldMap(foldableList); var foldl3 = /* @__PURE__ */ foldl(foldableList); var foldr5 = /* @__PURE__ */ foldr(foldableList); @@ -7441,21 +7109,16 @@ var toList2 = function(v) { return keys(v); }; var toUnfoldable4 = function(dictUnfoldable) { - var $127 = toUnfoldable(dictUnfoldable); - return function($128) { - return $127(toList2($128)); + var $96 = toUnfoldable(dictUnfoldable); + return function($97) { + return $96(toList2($97)); }; }; var singleton9 = function(a) { return singleton6(a)(unit); }; var member2 = function(dictOrd) { - var member1 = member(dictOrd); - return function(a) { - return function(v) { - return member1(a)(v); - }; - }; + return coerce4(member(dictOrd)); }; var insert4 = function(dictOrd) { var insert12 = insert(dictOrd); @@ -7467,27 +7130,27 @@ var insert4 = function(dictOrd) { }; var foldableSet = { foldMap: function(dictMonoid) { - var foldMap15 = foldMap4(dictMonoid); + var foldMap16 = foldMap4(dictMonoid); return function(f) { - var $129 = foldMap15(f); - return function($130) { - return $129(toList2($130)); + var $98 = foldMap16(f); + return function($99) { + return $98(toList2($99)); }; }; }, foldl: function(f) { return function(x) { - var $131 = foldl3(f)(x); - return function($132) { - return $131(toList2($132)); + var $100 = foldl3(f)(x); + return function($101) { + return $100(toList2($101)); }; }; }, foldr: function(f) { return function(x) { - var $133 = foldr5(f)(x); - return function($134) { - return $133(toList2($134)); + var $102 = foldr5(f)(x); + return function($103) { + return $102(toList2($103)); }; }; } @@ -7505,12 +7168,7 @@ var fromFoldable4 = function(dictFoldable) { }; }; var $$delete3 = function(dictOrd) { - var delete1 = $$delete(dictOrd); - return function(a) { - return function(v) { - return delete1(a)(v); - }; - }; + return coerce4($$delete(dictOrd)); }; // output/Data.String.CodePoints/foreign.js @@ -7715,7 +7373,7 @@ var $$null2 = function(s) { }; // output/Data.String.CodePoints/index.js -var $runtime_lazy4 = function(name2, moduleName, init3) { +var $runtime_lazy5 = function(name2, moduleName, init3) { var state2 = 0; var val; return function(lineNumber) { @@ -7802,13 +7460,13 @@ var unsafeCodePointAt0Fallback = function(s) { }; var unsafeCodePointAt0 = /* @__PURE__ */ _unsafeCodePointAt0(unsafeCodePointAt0Fallback); var toCodePointArray = /* @__PURE__ */ _toCodePointArray(toCodePointArrayFallback)(unsafeCodePointAt0); -var length6 = function($74) { +var length5 = function($74) { return length3(toCodePointArray($74)); }; var lastIndexOf2 = function(p) { return function(s) { return map11(function(i) { - return length6(take2(i)(s)); + return length5(take2(i)(s)); })(lastIndexOf(p)(s)); }; }; @@ -7946,7 +7604,7 @@ var boundedEnumCodePoint = /* @__PURE__ */ function() { } }; }(); -var $lazy_enumCodePoint = /* @__PURE__ */ $runtime_lazy4("enumCodePoint", "Data.String.CodePoints", function() { +var $lazy_enumCodePoint = /* @__PURE__ */ $runtime_lazy5("enumCodePoint", "Data.String.CodePoints", function() { return { succ: defaultSucc(toEnum(boundedEnumCodePoint))(fromEnum(boundedEnumCodePoint)), pred: defaultPred(toEnum(boundedEnumCodePoint))(fromEnum(boundedEnumCodePoint)), @@ -47207,6 +46865,21 @@ var eqOperator = eqString; var eqModuleName = eqString; var eqIdent = eqString; +// output/Data.Lazy/foreign.js +var defer2 = function(thunk) { + var v = null; + return function() { + if (thunk === void 0) + return v; + v = thunk(); + thunk = void 0; + return v; + }; +}; +var force = function(l) { + return l(); +}; + // output/Dodo.Internal/index.js var Append = /* @__PURE__ */ function() { function Append2(value0, value1) { @@ -47524,7 +47197,7 @@ var text = function(v) { return Empty.value; } ; - return new Text(length6(v), v); + return new Text(length5(v), v); }; var storeState = function(stack) { return function(v) { @@ -48229,7 +47902,7 @@ var formatBlockComment = function($187) { } ; if (v instanceof Just) { - var prefixSpaces = head2(sort3(mapMaybe2(function(str) { + var prefixSpaces = head(sort3(mapMaybe2(function(str) { var spaces = length2(takeWhile3(eq71(codePointFromChar(" ")))(str)); return voidLeft2(guard3(spaces < length2(str)))(spaces); })(v.value0.tail))); @@ -49111,10 +48784,10 @@ var toFormatDoc = /* @__PURE__ */ function() { return $tco_result; }; }; - var indMulti = function(head4) { + var indMulti = function(head3) { return function(ind) { return function(doc) { - if (head4 instanceof HangApp) { + if (head3 instanceof HangApp) { return doc; } ; @@ -49914,7 +49587,7 @@ var eqUnicodeOption = { }; // output/Tidy/index.js -var $runtime_lazy5 = function(name2, moduleName, init3) { +var $runtime_lazy6 = function(name2, moduleName, init3) { var state2 = 0; var val; return function(lineNumber) { @@ -51408,7 +51081,7 @@ var sortImportsIde = function(v) { return v22.name; }($1077($1078)); }; - }())(cons3(v12.value1.value0.value0.value.value0.head)(map17(snd)(v12.value1.value0.value0.value.value0.tail)))); + }())(cons2(v12.value1.value0.value0.value.value0.head)(map17(snd)(v12.value1.value0.value0.value.value0.tail)))); } ; throw new Error("Failed pattern match at Tidy (line 336, column 7 - line 340, column 104): " + [v12.value1.value0.value0.value.constructor.name]); @@ -51437,7 +51110,7 @@ var sortImportsIde = function(v) { return new Tuple(toArray2(v2.value0), { open: v.open, value: { - head: head3(v2.value1), + head: head2(v2.value1), tail: zip(v1.value0)(tail2(v2.value1)) }, close: v.close @@ -51585,9 +51258,9 @@ var formatValueBinding = function(conf) { return anchor(flexGroup2($1083($1084))); }; }())(v.binders))); - var $735 = length5(v.guarded.value0) === 1; + var $735 = length4(v.guarded.value0) === 1; if ($735) { - return toFormatDoc(hang(valBinders)(formatGuardedExpr(conf)(head3(v.guarded.value0)))); + return toFormatDoc(hang(valBinders)(formatGuardedExpr(conf)(head2(v.guarded.value0)))); } ; return flexSpaceBreak(valBinders)(indent2(joinWithMap22($$break2)(function() { @@ -51888,9 +51561,9 @@ var formatCaseBranch = function(conf) { } ; if (v.value1 instanceof Guarded) { - var $864 = length5(v.value1.value0) === 1; + var $864 = length4(v.value1.value0) === 1; if ($864) { - return toFormatDoc(hang(caseBinders)(formatGuardedExpr(conf)(head3(v.value1.value0)))); + return toFormatDoc(hang(caseBinders)(formatGuardedExpr(conf)(head2(v.value1.value0)))); } ; return flexSpaceBreak(caseBinders)(indent2(joinWithMap22($$break2)(function() { @@ -51904,7 +51577,7 @@ var formatCaseBranch = function(conf) { throw new Error("Failed pattern match at Tidy (line 1018, column 3 - line 1031, column 81): " + [v.value1.constructor.name]); }; }; -var $lazy_formatLetGroups = /* @__PURE__ */ $runtime_lazy5("formatLetGroups", "Tidy", function() { +var $lazy_formatLetGroups = /* @__PURE__ */ $runtime_lazy6("formatLetGroups", "Tidy", function() { var letGroup = function(v) { if (v instanceof LetBindingSignature) { return new DeclGroupValueSignature(v.value0.label.name); @@ -53173,7 +52846,7 @@ var TokenCons = /* @__PURE__ */ function() { }; return TokenCons2; }(); -var step2 = /* @__PURE__ */ function() { +var step = /* @__PURE__ */ function() { var $32 = unwrap(); return function($33) { return force($32($33)); @@ -53184,12 +52857,12 @@ var unwindLayout = function(pos) { var go = function(stk) { return defer2(function(v) { if (stk instanceof Nil) { - return step2(eof); + return step(eof); } ; if (stk instanceof Cons) { if (stk.value0.value1 instanceof LytRoot) { - return step2(eof); + return step(eof); } ; if (isIndented(stk.value0.value1)) { @@ -53197,7 +52870,7 @@ var unwindLayout = function(pos) { } ; if (otherwise) { - return step2(go(stk.value1)); + return step(go(stk.value1)); } ; throw new Error("Failed pattern match at PureScript.CST.TokenStream (line 59, column 7 - line 66, column 27): " + [stk.value0.value1.constructor.name]); @@ -53224,7 +52897,7 @@ var consTokens = function(dictFoldable) { var add2 = /* @__PURE__ */ add(semiringInt); var div4 = /* @__PURE__ */ div(euclideanRingInt); var bindFlipped6 = /* @__PURE__ */ bindFlipped(bindMaybe); -var foldMap7 = /* @__PURE__ */ foldMap(foldableMaybe)(monoidString); +var foldMap15 = /* @__PURE__ */ foldMap(foldableMaybe)(monoidString); var fold4 = /* @__PURE__ */ fold(foldableMaybe)(monoidString); var fold12 = /* @__PURE__ */ fold(foldableArray)(/* @__PURE__ */ monoidRecord()(/* @__PURE__ */ monoidRecordCons({ reflectSymbol: function() { @@ -53285,7 +52958,7 @@ var $$try3 = function(v) { return new LexSucc(v1.value0, v1.value1); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 102, column 3 - line 104, column 31): " + [v1.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 104, column 3 - line 106, column 31): " + [v1.constructor.name]); }; }; var toModuleName = function(v) { @@ -53296,10 +52969,10 @@ var toModuleName = function(v) { return new Just(dropRight(1)(v)); }; var qualLength = /* @__PURE__ */ maybe(0)(/* @__PURE__ */ function() { - var $305 = add2(1); - var $306 = unwrap(); - return function($307) { - return $305(length6($306($307))); + var $319 = add2(1); + var $320 = unwrap(); + return function($321) { + return $319(length5($320($321))); }; }()); var optional = function(v) { @@ -53320,19 +52993,19 @@ var optional = function(v) { return new LexSucc(new Just(v1.value0), v1.value1); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 151, column 3 - line 158, column 25): " + [v1.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 153, column 3 - line 160, column 25): " + [v1.constructor.name]); }; }; var mkUnexpected = function(str) { var start = take4(6)(str); - var len = length6(start); - var $142 = len === 0; - if ($142) { + var len = length5(start); + var $148 = len === 0; + if ($148) { return "end of file"; } ; - var $143 = len < 6; - if ($143) { + var $149 = len < 6; + if ($149) { return start; } ; @@ -53349,9 +53022,9 @@ var regex2 = function(mkErr) { }, str); }; if (v instanceof Just) { - var $145 = head3(v.value0); - if ($145 instanceof Just) { - return new LexSucc($145.value0, drop2(length2($145.value0))(str)); + var $151 = head2(v.value0); + if ($151 instanceof Just) { + return new LexSucc($151.value0, drop2(length2($151.value0))(str)); } ; return v1(true); @@ -53378,8 +53051,8 @@ var satisfy = function(mkErr) { var string = function(mkErr) { return function(match2) { return function(str) { - var $150 = take2(length2(match2))(str) === match2; - if ($150) { + var $156 = take2(length2(match2))(str) === match2; + if ($156) { return new LexSucc(match2, drop2(length2(match2))(str)); } ; @@ -53423,7 +53096,7 @@ var many = function(v) { return unit; } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 176, column 5 - line 190, column 18): " + [v1.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 178, column 5 - line 192, column 18): " + [v1.constructor.name]); })(); } ; @@ -53446,7 +53119,7 @@ var functorLex = { return new LexSucc(f(v1.value0), v1.value1); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 64, column 5 - line 66, column 37): " + [v1.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 66, column 5 - line 68, column 37): " + [v1.constructor.name]); }; }; } @@ -53461,15 +53134,15 @@ var fromCharCode4 = function(dict) { var fromChar = function(dict) { return dict.fromChar; }; -var fail2 = function($308) { - return Lex(LexFail.create($$const($308))); +var fail2 = function($322) { + return Lex(LexFail.create($$const($322))); }; var char$prime = function(mkErr) { return function(res) { return function(match2) { return function(str) { - var $166 = singleton5(match2) === take2(1)(str); - if ($166) { + var $172 = singleton5(match2) === take2(1)(str); + if ($172) { return new LexSucc(res, drop2(1)(str)); } ; @@ -53483,8 +53156,8 @@ var char$prime = function(mkErr) { var $$char = function(mkErr) { return function(match2) { return function(str) { - var $167 = singleton5(match2) === take2(1)(str); - if ($167) { + var $173 = singleton5(match2) === take2(1)(str); + if ($173) { return new LexSucc(match2, drop2(1)(str)); } ; @@ -53515,7 +53188,7 @@ var bumpText = function(v) { $tco_done = true; return { line: v.line, - column: (v.column + length6(str) | 0) + (colOffset * 2 | 0) | 0 + column: (v.column + length5(str) | 0) + (colOffset * 2 | 0) | 0 }; } ; @@ -53523,13 +53196,13 @@ var bumpText = function(v) { $tco_done = true; return { line: v.line + n | 0, - column: length6(drop2(ix)(str)) + colOffset | 0 + column: length5(drop2(ix)(str)) + colOffset | 0 }; } ; } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 338, column 13 - line 347, column 12): " + [v1.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 348, column 13 - line 357, column 12): " + [v1.constructor.name]); } ; while (!$tco_done) { @@ -53716,28 +53389,28 @@ var bumpToken = function(v) { if (v1 instanceof TokLowerName) { return { line: v.line, - column: (v.column + qualLength(v1.value0) | 0) + length6(v1.value1) | 0 + column: (v.column + qualLength(v1.value0) | 0) + length5(v1.value1) | 0 }; } ; if (v1 instanceof TokUpperName) { return { line: v.line, - column: (v.column + qualLength(v1.value0) | 0) + length6(v1.value1) | 0 + column: (v.column + qualLength(v1.value0) | 0) + length5(v1.value1) | 0 }; } ; if (v1 instanceof TokOperator) { return { line: v.line, - column: (v.column + qualLength(v1.value0) | 0) + length6(v1.value1) | 0 + column: (v.column + qualLength(v1.value0) | 0) + length5(v1.value1) | 0 }; } ; if (v1 instanceof TokSymbolName) { return { line: v.line, - column: ((v.column + qualLength(v1.value0) | 0) + length6(v1.value1) | 0) + 2 | 0 + column: ((v.column + qualLength(v1.value0) | 0) + length5(v1.value1) | 0) + 2 | 0 }; } ; @@ -53758,28 +53431,28 @@ var bumpToken = function(v) { if (v1 instanceof TokHole) { return { line: v.line, - column: (v.column + length6(v1.value0) | 0) + 1 | 0 + column: (v.column + length5(v1.value0) | 0) + 1 | 0 }; } ; if (v1 instanceof TokChar) { return { line: v.line, - column: (v.column + length6(v1.value0) | 0) + 2 | 0 + column: (v.column + length5(v1.value0) | 0) + 2 | 0 }; } ; if (v1 instanceof TokInt) { return { line: v.line, - column: v.column + length6(v1.value0) | 0 + column: v.column + length5(v1.value0) | 0 }; } ; if (v1 instanceof TokNumber) { return { line: v.line, - column: v.column + length6(v1.value0) | 0 + column: v.column + length5(v1.value0) | 0 }; } ; @@ -53803,7 +53476,7 @@ var bumpToken = function(v) { return v; } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 255, column 34 - line 333, column 8): " + [v1.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 265, column 34 - line 343, column 8): " + [v1.constructor.name]); }; }; var bumpComment = function(v) { @@ -53826,7 +53499,7 @@ var bumpComment = function(v) { }; } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 350, column 36 - line 356, column 34): " + [v1.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 360, column 36 - line 366, column 34): " + [v1.constructor.name]); }; }; var applyLex = { @@ -53848,10 +53521,10 @@ var applyLex = { return new LexSucc(v2.value0(v3.value0), v3.value1); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 73, column 9 - line 76, column 32): " + [v3.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 75, column 9 - line 78, column 32): " + [v3.constructor.name]); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 70, column 5 - line 76, column 32): " + [v2.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 72, column 5 - line 78, column 32): " + [v2.constructor.name]); }; }; }, @@ -53859,9 +53532,9 @@ var applyLex = { return functorLex; } }; +var apply5 = /* @__PURE__ */ apply2(applyLex); var applyFirst2 = /* @__PURE__ */ applyFirst(applyLex); var applySecond2 = /* @__PURE__ */ applySecond(applyLex); -var apply5 = /* @__PURE__ */ apply2(applyLex); var bindLex = { bind: function(v) { return function(k) { @@ -53876,7 +53549,7 @@ var bindLex = { return v2(v1.value1); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 83, column 5 - line 87, column 16): " + [v1.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 85, column 5 - line 89, column 16): " + [v1.constructor.name]); }; }; }, @@ -53886,8 +53559,8 @@ var bindLex = { }; var bind1 = /* @__PURE__ */ bind(bindLex); var applicativeLex = { - pure: function($309) { - return Lex(LexSucc.create($309)); + pure: function($323) { + return Lex(LexSucc.create($323)); }, Apply0: function() { return applyLex; @@ -53914,7 +53587,7 @@ var altLex = { return new LexSucc(v2.value0, v2.value1); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 91, column 5 - line 98, column 20): " + [v2.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 93, column 5 - line 100, column 20): " + [v2.constructor.name]); }; }; }, @@ -53928,16 +53601,16 @@ var comment = /* @__PURE__ */ function() { }(); var lineComment = /* @__PURE__ */ function() { return alt3(map19(function() { - var $310 = Line.create(LF.value); - return function($311) { - return $310(length6($311)); + var $324 = Line.create(LF.value); + return function($325) { + return $324(length5($325)); }; }())(regex2(LexExpected.create("newline"))("\n+")))(map19(function() { - var $312 = Line.create(CRLF.value); - return function($313) { - return $312(function(v) { + var $326 = Line.create(CRLF.value); + return function($327) { + return $326(function(v) { return div4(v)(2); - }(length6($313))); + }(length5($327))); }; }())(regex2(LexExpected.create("newline"))("(?:\r\n)+"))); }(); @@ -54108,7 +53781,7 @@ var token = /* @__PURE__ */ function() { return pure13(new TokInt("0x" + raw, new BigHex(raw))); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 602, column 5 - line 606, column 49): " + [v.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 631, column 5 - line 635, column 49): " + [v.constructor.name]); }); var hexEscapeRegex = regex2(LexExpected.create("hex"))("[a-fA-F0-9]{1,6}"); var parseHexEscape = function(dictIsChar) { @@ -54126,7 +53799,7 @@ var token = /* @__PURE__ */ function() { return fail2(new LexCharEscapeOutOfRange(esc)); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 550, column 5 - line 554, column 43): " + [v.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 579, column 5 - line 583, column 43): " + [v.constructor.name]); }); }; var fractionPartRegex = regex2(LexExpected.create("fraction part"))("[0-9_]+"); @@ -54143,8 +53816,8 @@ var token = /* @__PURE__ */ function() { var parseNumber = bind1(intPartRegex)(function(intPart) { return bind1(parseNumberFractionPart)(function(fractionPart) { return bind1(parseNumberExponentPart)(function(exponentPart) { - var $268 = isNothing(fractionPart) && isNothing(exponentPart); - if ($268) { + var $282 = isNothing(fractionPart) && isNothing(exponentPart); + if ($282) { var intVal = stripUnderscores(intPart); var v = fromString2(intVal); if (v instanceof Just) { @@ -54155,12 +53828,12 @@ var token = /* @__PURE__ */ function() { return pure13(new TokInt(intPart, new BigInt(intVal))); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 614, column 7 - line 618, column 48): " + [v.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 643, column 7 - line 647, column 48): " + [v.constructor.name]); } ; - var raw = intPart + (foldMap7(function(fr) { + var raw = intPart + (foldMap15(function(fr) { return "." + fr; - })(fractionPart) + foldMap7(function(ex) { + })(fractionPart) + foldMap15(function(ex) { return "e" + (fold4(ex.sign) + ex.exponent); })(exponentPart)); var v = fromString(stripUnderscores(raw)); @@ -54172,7 +53845,7 @@ var token = /* @__PURE__ */ function() { return fail2(new LexNumberOutOfRange(raw)); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 625, column 7 - line 629, column 41): " + [v.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 654, column 7 - line 658, column 41): " + [v.constructor.name]); }); }); }); @@ -54264,7 +53937,7 @@ var token = /* @__PURE__ */ function() { var parseStringLiteral = alt3(parseRawString)(parseString); return alt3(parseHole)(alt3(parseModuleName)(alt3(parseCharLiteral)(alt3(parseStringLiteral)(alt3(parseNumericLiteral)(alt3(tokenLeftParen)(alt3(tokenRightParen)(alt3(tokenLeftBrace)(alt3(tokenRightBrace)(alt3(tokenLeftSquare)(alt3(tokenRightSquare)(alt3(tokenTick)(tokenComma)))))))))))); }(); -var lexToken = function($314) { +var lexToken = function($328) { return function(v) { if (v instanceof LexSucc && v.value1 === "") { return new Right(v.value0); @@ -54280,13 +53953,13 @@ var lexToken = function($314) { return new Left(v.value0); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 247, column 18 - line 250, column 28): " + [v.constructor.name]); - }(token($314)); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 257, column 18 - line 260, column 28): " + [v.constructor.name]); + }(token($328)); }; var trailingComments = /* @__PURE__ */ function() { return many(alt3(map19(Comment.create)(comment))(map19(Space2.create)(spaceComment))); }(); -var lexWithState = /* @__PURE__ */ function() { +var lexWithState$prime = function(lexLeadingComments) { var token$prime = apply5(apply5(map19(function(v) { return function(v1) { return function(v2) { @@ -54303,9 +53976,9 @@ var lexWithState = /* @__PURE__ */ function() { return function(leading5) { return function(str) { return defer2(function(v) { - var $289 = str === ""; - if ($289) { - return step2(unwindLayout(startPos)(defer2(function(v12) { + var $303 = str === ""; + if ($303) { + return step(unwindLayout(startPos)(defer2(function(v12) { return new TokenEOF(startPos, leading5); }))(stack)); } @@ -54329,10 +54002,10 @@ var lexWithState = /* @__PURE__ */ function() { value: v1.value0.token }; var v2 = insertLayout(posToken)(nextStart)(stack); - return step2(snd(consTokens2(v2.value1)(new Tuple(nextStart, go(v2.value0)(nextStart)(v1.value0.nextLeading)(v1.value1))))); + return step(snd(consTokens2(v2.value1)(new Tuple(nextStart, go(v2.value0)(nextStart)(v1.value0.nextLeading)(v1.value1))))); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 218, column 7 - line 237, column 63): " + [v1.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 228, column 7 - line 247, column 63): " + [v1.constructor.name]); }); }; }; @@ -54342,23 +54015,24 @@ var lexWithState = /* @__PURE__ */ function() { return function(initPos) { return function(str) { return defer2(function(v) { - var v1 = leadingComments(str); + var v1 = lexLeadingComments(str); if (v1 instanceof LexFail) { return unsafeCrashWith("Leading comments can't fail."); } ; if (v1 instanceof LexSucc) { var nextPos = foldl5(bumpComment)(initPos)(v1.value0); - return step2(go(initStack)(nextPos)(v1.value0)(v1.value1)); + return step(go(initStack)(nextPos)(v1.value0)(v1.value1)); } ; - throw new Error("Failed pattern match at PureScript.CST.Lexer (line 205, column 5 - line 210, column 51): " + [v1.constructor.name]); + throw new Error("Failed pattern match at PureScript.CST.Lexer (line 215, column 5 - line 220, column 51): " + [v1.constructor.name]); }); }; }; }; return init3; -}(); +}; +var lexWithState = /* @__PURE__ */ lexWithState$prime(leadingComments); var lex = /* @__PURE__ */ function() { return lexWithState(new Cons(new Tuple({ line: 0, @@ -54471,15 +54145,15 @@ var tokUnderscore = /* @__PURE__ */ function() { var toSeparated = function(tok) { return function(arr) { return { - head: head3(arr), + head: head2(arr), tail: map20(Tuple.create(tok))(tail2(arr)) }; }; }; var toOneOrDelimited = function(arr) { - var $34 = length5(arr) === 1; + var $34 = length4(arr) === 1; if ($34) { - return new One(head3(arr)); + return new One(head2(arr)); } ; return new Many({ @@ -54579,7 +54253,7 @@ var unwrap3 = /* @__PURE__ */ unwrap(); var crashWith3 = /* @__PURE__ */ crashWith(); var bind3 = /* @__PURE__ */ bind(bindMaybe); var pure7 = /* @__PURE__ */ pure(applicativeMaybe); -var coerce4 = /* @__PURE__ */ coerce(); +var coerce5 = /* @__PURE__ */ coerce(); var lmap4 = /* @__PURE__ */ lmap(bifunctorTuple); var toWhereExpr = { toWhere: function($711) { @@ -54660,8 +54334,8 @@ var overLeadingCommentsRecord = function(dictTypeEquals) { return { overLeadingComments: function(k) { return function(r) { - var r$prime = coerce4(r); - return coerce4(function() { + var r$prime = coerce5(r); + return coerce5(function() { var $434 = {}; for (var $435 in r$prime) { if ({}.hasOwnProperty.call(r$prime, $435)) { @@ -55404,7 +55078,7 @@ var parseOperatorPrec = /* @__PURE__ */ function() { } ; throw new Error("Failed pattern match at Tidy.Operators (line 33, column 35 - line 39, column 43): " + [v.constructor.name]); - }(step2($89)); + }(step($89)); }; }; return go([]); @@ -55436,7 +55110,7 @@ var defaultOperators = ["Control.Alt.($>) 4", "Control.Alt.(<#>) 1", "Control.Al // output/Tidy.Codegen/index.js var unwrap4 = /* @__PURE__ */ unwrap(); -var coerce5 = /* @__PURE__ */ coerce(); +var coerce6 = /* @__PURE__ */ coerce(); var map24 = /* @__PURE__ */ map(functorArray); var map111 = /* @__PURE__ */ map(functorBinaryOp); var append5 = /* @__PURE__ */ append(semigroupArray); @@ -55510,7 +55184,7 @@ var typeOp = function(ty) { var $275 = maybe(ty)(function() { var $278 = TypeOp.create(precType2(ty)); return function($279) { - return $278(coerce5($279)); + return $278(coerce6($279)); }; }()); var $276 = map24(map111(precType2)); @@ -55723,7 +55397,7 @@ var importTypeOp = function(dictToName) { var $311 = ImportTypeOp.create(tokType); var $312 = toName(dictToName); return function($313) { - return $311(coerce5($312($313))); + return $311(coerce6($312($313))); }; }; var importTypeAll = function(dictToName) { @@ -55743,7 +55417,7 @@ var importType = function(dictToName) { var importOp = function(dictToName) { var $323 = toName(dictToName); return function($324) { - return ImportOp.create(coerce5($323($324))); + return ImportOp.create(coerce6($323($324))); }; }; var importClass = function(dictToName) { @@ -55770,8 +55444,8 @@ var exprCtor = function(dictToQualifiedName) { return ExprConstructor.create($363($364)); }; }; -var exprApp = function(head4) { - var $367 = maybe(head4)(ExprApp.create(precExprApp(head4))); +var exprApp = function(head3) { + var $367 = maybe(head3)(ExprApp.create(precExprApp(head3))); var $368 = precInitLast(function($370) { return AppTerm.create(precExprApp($370)); })(function($371) { @@ -55791,7 +55465,7 @@ var exportTypeOp = function(dictToName) { var $374 = ExportTypeOp.create(tokType); var $375 = toName(dictToName); return function($376) { - return $374(coerce5($375($376))); + return $374(coerce6($375($376))); }; }; var exportTypeAll = function(dictToName) { @@ -55811,7 +55485,7 @@ var exportType = function(dictToName) { var exportOp = function(dictToName) { var $386 = toName(dictToName); return function($387) { - return ExportOp.create(coerce5($386($387))); + return ExportOp.create(coerce6($386($387))); }; }; var exportModule = function(dictToName) { @@ -56168,7 +55842,7 @@ var importType2 = /* @__PURE__ */ importType(toNameStringProper2); var importValue2 = /* @__PURE__ */ importValue(toNameStringIdent2); var importTypeAll2 = /* @__PURE__ */ importTypeAll(toNameStringProper2); var importTypeOp2 = /* @__PURE__ */ importTypeOp(/* @__PURE__ */ toNameStringSymbolName()); -var foldMap8 = /* @__PURE__ */ foldMap(foldableList)(monoidArray); +var foldMap7 = /* @__PURE__ */ foldMap(foldableList)(monoidArray); var declTypeSignature2 = /* @__PURE__ */ declTypeSignature(toNameStringProper2); var declType2 = /* @__PURE__ */ declType(toNameStringProper2); var module_2 = /* @__PURE__ */ module_(toNameStringModuleName2); @@ -56265,7 +55939,7 @@ var getDocumentDirectivesPurs = function(gqlScalarsToPursTypes) { var v1 = uncons3(directiveTypeWithNil); return typeOp(v1.head)(mapFlipped3(v1.tail)(binaryOp2(":>"))); }(); - var directiveAppliers = foldMap8(directiveToApplierPurs)(directives); + var directiveAppliers = foldMap7(directiveToApplierPurs)(directives); var decls = append6([declTypeSignature2("Directives")(typeApp(typeCtor3("List'"))([typeCtor3("Type")])), declType2("Directives")([])(directiveDefinitionsPurs)])(directiveAppliers); return printModule(module_2(moduleName)(exports)(imports)(decls)); }; @@ -56415,10 +56089,10 @@ var toParserError = function(v) { }; var startsWith = function(pre) { return function(str) { - return take4(length6(pre))(str) === pre; + return take4(length5(pre))(str) === pre; }; }; -var noSchemaTypes = /* @__PURE__ */ filter3(/* @__PURE__ */ function() { +var noSchemaTypes = /* @__PURE__ */ filter2(/* @__PURE__ */ function() { var $260 = maybe(true)(not(heytingAlgebraFunction(heytingAlgebraFunction(heytingAlgebraBoolean)))(startsWith)("__")); return function($261) { return $260(function(v) { @@ -56804,7 +56478,7 @@ var documentFromIntrospection = /* @__PURE__ */ function() { }(); // output/GraphQL.Client.CodeGen.GetSymbols/index.js -var foldMap9 = /* @__PURE__ */ foldMap(foldableArray)(monoidString); +var foldMap8 = /* @__PURE__ */ foldMap(foldableArray)(monoidString); var show2 = /* @__PURE__ */ show(showString); var nub3 = /* @__PURE__ */ nub2(ordString); var bind6 = /* @__PURE__ */ bind(bindList); @@ -56818,7 +56492,7 @@ var symbolsToCode = function(dictFoldable) { var fromFoldable11 = fromFoldable3(dictFoldable); return function(modulePrefix) { return function(symbols) { - var symbolsString = foldMap9(function(s) { + var symbolsString = foldMap8(function(s) { return "\n" + (s + (" = Proxy :: Proxy" + show2(s))); })(nub3(fromFoldable11(symbols))); return "module " + (modulePrefix + ("Symbols where\n\nimport Type.Proxy (Proxy(..))\n" + symbolsString)); @@ -57098,7 +56772,7 @@ var snoc6 = function(cat) { }; // output/Control.Monad.Free/index.js -var $runtime_lazy6 = function(name2, moduleName, init3) { +var $runtime_lazy7 = function(name2, moduleName, init3) { var state2 = 0; var val; return function(lineNumber) { @@ -57263,7 +56937,7 @@ var freeApplicative = { return $lazy_freeApply(0); } }; -var $lazy_freeApply = /* @__PURE__ */ $runtime_lazy6("freeApply", "Control.Monad.Free", function() { +var $lazy_freeApply = /* @__PURE__ */ $runtime_lazy7("freeApply", "Control.Monad.Free", function() { return { apply: ap(freeMonad), Functor0: function() { @@ -57350,7 +57024,7 @@ var filterDefault = function(dictFilterable) { return $121(maybeBool($122)); }; }; -var filter4 = function(dict) { +var filter3 = function(dict) { return dict.filter; }; var eitherBool = function(p) { @@ -57506,8 +57180,8 @@ var monadStateStateT = function(dictMonad) { var monadStateT1 = monadStateT(dictMonad); return { state: function(f) { - return function($200) { - return pure17(f($200)); + return function($206) { + return pure17(f($206)); }; }, Monad0: function() { @@ -57601,7 +57275,7 @@ var append9 = /* @__PURE__ */ append(semigroupArray); var map113 = /* @__PURE__ */ map(functorTuple); var fromFoldable1 = /* @__PURE__ */ fromFoldable3(foldableList); var runFree2 = /* @__PURE__ */ runFree(functorIdentity); -var coerce6 = /* @__PURE__ */ coerce(); +var coerce7 = /* @__PURE__ */ coerce(); var CodegenImportType = /* @__PURE__ */ function() { function CodegenImportType2(value0, value1) { this.value0 = value0; @@ -58155,7 +57829,7 @@ var runCodegenTModule1 = /* @__PURE__ */ runCodegenTModule(freeFunctor); var codegenModule = function(dictToName) { var runCodegenTModule2 = runCodegenTModule1(dictToName); return function(name2) { - var $565 = runFree2(coerce6); + var $565 = runFree2(coerce7); var $566 = runCodegenTModule2(name2); return function($567) { return snd($565($566($567))); @@ -58351,7 +58025,7 @@ var genImportUnqualified = function(dictMonad) { }; }; var genImportsUnqualified = function(dictFilterable) { - var filter5 = filter4(dictFilterable); + var filter4 = filter3(dictFilterable); return function(dictTraversable) { var traverse13 = traverse(dictTraversable); return function(dictMonad) { @@ -58359,7 +58033,7 @@ var genImportsUnqualified = function(dictFilterable) { var genImportUnqualified1 = genImportUnqualified(dictMonad); return function() { var $315 = traverse22(genImportUnqualified1); - var $316 = filter5(function() { + var $316 = filter4(function() { var $318 = not4($$null2); return function($319) { return $318(function(v) { @@ -58382,7 +58056,7 @@ var genImport = function(dictMonad) { }; }; var genImports = function(dictFilterable) { - var filter5 = filter4(dictFilterable); + var filter4 = filter3(dictFilterable); return function(dictTraversable) { var traverse13 = traverse(dictTraversable); return function(dictMonad) { @@ -58390,7 +58064,7 @@ var genImports = function(dictFilterable) { var genImport1 = genImport(dictMonad); return function() { var $320 = traverse22(genImport1); - var $321 = filter5(function() { + var $321 = filter4(function() { var $323 = not4($$null2); return function($324) { return $323(function(v) { @@ -59022,7 +58696,7 @@ var wander = function(dict) { }; // output/Data.Lens.Iso/index.js -var coerce7 = /* @__PURE__ */ coerce(); +var coerce8 = /* @__PURE__ */ coerce(); var iso = function(f) { return function(g) { return function(dictProfunctor) { @@ -59036,7 +58710,7 @@ var iso = function(f) { var coerced = function() { return function() { return function(dictProfunctor) { - return iso(coerce7)(coerce7)(dictProfunctor); + return iso(coerce8)(coerce8)(dictProfunctor); }; }; }; @@ -59261,7 +58935,7 @@ var applyNullableOverrides = function(overrides) { var fromFoldable10 = /* @__PURE__ */ fromFoldable3(foldableList); var mapFlipped6 = /* @__PURE__ */ mapFlipped(functorList); var unwrap9 = /* @__PURE__ */ unwrap(); -var foldMap10 = /* @__PURE__ */ foldMap(foldableArray)(monoidString); +var foldMap9 = /* @__PURE__ */ foldMap(foldableArray)(monoidString); var mapFlipped1 = /* @__PURE__ */ mapFlipped(functorEither); var lmap6 = /* @__PURE__ */ lmap(bifunctorEither); var pure16 = /* @__PURE__ */ pure(applicativeAff); @@ -59375,7 +59049,7 @@ var defaultIdImport = { }; var schemaFromGqlToPurs = function(opts) { return function(v) { - var modulePrefix = foldMap10(function(v1) { + var modulePrefix = foldMap9(function(v1) { return v1 + "."; })(opts.modulePath); return mapFlipped1(mapFlipped1(lmap6(toParserError)(documentFromIntrospection(v.schema)))(applyNullableOverrides(opts.nullableOverrides)))(function(ast) { @@ -59443,7 +59117,7 @@ var schemaFromGqlToPursWithCache = function(opts) { }; }; var schemasFromGqlToPurs = function(opts) { - var modulePrefix = foldMap10(function(v) { + var modulePrefix = foldMap9(function(v) { return v + "."; })(opts.modulePath); var collectSchemas = function(pursGqls) { diff --git a/package.json b/package.json index 67b7367..acf665c 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,10 @@ "test": "test" }, "scripts": { - "test": "spago test --no-install && npm run test-codegen && node ./run-example-tests", + "test": "spago test && npm run test-codegen", "test-codegen": "cd codegen/schema && spago test", "should-fail-tests": "node ./run-should-fail-tests", - "bundle": "cd codegen/schema && spago-legacy bundle-module -m GraphQL.Client.CodeGen.Js -t '../../gen-schema-bundled.mjs'", + "bundle": "cd codegen/schema && spago bundle --bundle-type module --module GraphQL.Client.CodeGen.Js --outfile '../../gen-schema-bundled.mjs'", "patch": "npm run bundle && gcam 'update bundle' --allow-empty && npm version patch && npm publish && pulp publish", "npm-major-verson": "npm run bundle && gcam 'update bundle' --allow-empty && npm version major && npm publish", "patch-old": "npm run bundle && gcam 'update bundle' --allow-empty && npm version patch && pulp version patch && npm publish && pulp publish" diff --git a/spago.dhall b/spago.dhall deleted file mode 100644 index 3384ef8..0000000 --- a/spago.dhall +++ /dev/null @@ -1,61 +0,0 @@ -{- -Welcome to a Spago project! -You can edit this file as you like. --} -{ name = "graphql-client" -, repository = "https://github.com/OxfordAbstracts/purescript-graphql-client" -, license = "MIT" -, dependencies = - [ "aff" - , "affjax" - , "affjax-node" - , "affjax-web" - , "argonaut-codecs" - , "argonaut-core" - , "arrays" - , "bifunctors" - , "console" - , "control" - , "datetime" - , "debug" - , "effect" - , "either" - , "enums" - , "filterable" - , "foldable-traversable" - , "foreign" - , "foreign-object" - , "functions" - , "halogen-subscriptions" - , "heterogeneous" - , "http-methods" - , "identity" - , "integers" - , "lists" - , "maybe" - , "media-types" - , "newtype" - , "now" - , "nullable" - , "numbers" - , "ordered-collections" - , "partial" - , "prelude" - , "psci-support" - , "quickcheck" - , "record" - , "spec" - , "spec-discovery" - , "string-parsers" - , "strings" - , "transformers" - , "tuples" - , "typelevel-lists" - , "unfoldable" - , "unicode" - , "unsafe-coerce" - , "variant" - ] -, packages = ./packages.dhall -, sources = [ "src/**/*.purs", "test/**/*.purs" ] -} diff --git a/spago.lock b/spago.lock new file mode 100644 index 0000000..357e3de --- /dev/null +++ b/spago.lock @@ -0,0 +1,1642 @@ +workspace: + packages: + graphql-client: + path: ./ + core: + dependencies: + - aff + - affjax + - affjax-node + - affjax-web + - argonaut-codecs + - argonaut-core + - arrays + - bifunctors + - console + - control + - datetime + - debug + - effect + - either + - enums + - filterable + - foldable-traversable + - foreign + - foreign-object + - functions + - halogen-subscriptions + - heterogeneous + - http-methods + - identity + - integers + - lists + - maybe + - media-types + - newtype + - now + - nullable + - numbers + - ordered-collections + - partial + - prelude + - psci-support + - quickcheck + - record + - spec + - spec-discovery + - string-parsers + - strings + - transformers + - tuples + - typelevel-lists + - unfoldable + - unicode + - unsafe-coerce + - variant + build_plan: + - aff + - aff-promise + - affjax + - affjax-node + - affjax-web + - ansi + - argonaut-codecs + - argonaut-core + - arraybuffer-types + - arrays + - avar + - bifunctors + - catenable-lists + - console + - const + - contravariant + - control + - datetime + - debug + - distributive + - effect + - either + - enums + - exceptions + - exists + - filterable + - foldable-traversable + - foreign + - foreign-object + - fork + - form-urlencoded + - free + - functions + - functors + - gen + - halogen-subscriptions + - heterogeneous + - http-methods + - identity + - integers + - invariant + - js-date + - js-uri + - lazy + - lcg + - lists + - maybe + - media-types + - mmorph + - newtype + - nonempty + - now + - nullable + - numbers + - ordered-collections + - orders + - parallel + - partial + - pipes + - prelude + - profunctor + - psci-support + - quickcheck + - random + - record + - refs + - safe-coerce + - spec + - spec-discovery + - st + - string-parsers + - strings + - tailrec + - transformers + - tuples + - type-equality + - typelevel-lists + - typelevel-peano + - typelevel-prelude + - unfoldable + - unicode + - unsafe-coerce + - unsafe-reference + - variant + - web-dom + - web-events + - web-file + - web-html + - web-storage + - web-xhr + test: + dependencies: [] + build_plan: [] + package_set: + address: + registry: 60.2.1 + compiler: ">=0.15.15 <0.16.0" + content: + abc-parser: 2.0.1 + ace: 9.1.0 + address-rfc2821: 0.1.1 + aff: 8.0.0 + aff-bus: 6.0.0 + aff-coroutines: 9.0.0 + aff-promise: 4.0.0 + aff-retry: 2.0.0 + affjax: 13.0.0 + affjax-node: 1.0.0 + affjax-web: 1.0.0 + ansi: 7.0.0 + apexcharts: 0.5.0 + applicative-phases: 1.0.0 + argonaut: 9.0.0 + argonaut-aeson-generic: 0.4.1 + argonaut-codecs: 9.1.0 + argonaut-core: 7.0.0 + argonaut-generic: 8.0.0 + argonaut-traversals: 10.0.0 + argparse-basic: 2.0.0 + array-builder: 0.1.2 + array-search: 0.6.0 + arraybuffer: 13.2.0 + arraybuffer-builder: 3.1.0 + arraybuffer-types: 3.0.2 + arrays: 7.3.0 + arrays-extra: 0.6.1 + arrays-zipper: 2.0.1 + ask: 1.0.0 + assert: 6.0.0 + assert-multiple: 0.4.0 + avar: 5.0.0 + b64: 0.0.8 + barbies: 1.0.1 + barlow-lens: 0.9.0 + bifunctors: 6.0.0 + bigints: 7.0.1 + bolson: 0.3.9 + bookhound: 0.1.7 + bower-json: 3.0.0 + call-by-name: 4.0.1 + canvas: 6.0.0 + canvas-action: 9.0.0 + cartesian: 1.0.6 + catenable-lists: 7.0.0 + cbor-stream: 1.3.0 + chameleon: 1.0.0 + chameleon-halogen: 1.0.3 + chameleon-react-basic: 1.1.0 + chameleon-styled: 2.5.0 + chameleon-transformers: 1.0.0 + channel: 1.0.0 + checked-exceptions: 3.1.1 + choku: 1.0.1 + classless: 0.1.1 + classless-arbitrary: 0.1.1 + classless-decode-json: 0.1.1 + classless-encode-json: 0.1.3 + classnames: 2.0.0 + codec: 6.1.0 + codec-argonaut: 10.0.0 + codec-json: 2.0.0 + colors: 7.0.1 + concur-core: 0.5.0 + concur-react: 0.5.0 + concurrent-queues: 3.0.0 + console: 6.1.0 + const: 6.0.0 + contravariant: 6.0.0 + control: 6.0.0 + convertable-options: 1.0.0 + coroutines: 7.0.0 + css: 6.0.0 + css-frameworks: 1.0.1 + csv-stream: 2.3.0 + data-mvc: 0.0.2 + datetime: 6.1.0 + datetime-parsing: 0.2.0 + debounce: 0.1.0 + debug: 6.0.2 + decimals: 7.1.0 + default-values: 1.0.1 + deku: 0.9.23 + deno: 0.0.5 + dissect: 1.0.0 + distributive: 6.0.0 + dom-filereader: 7.0.0 + dom-indexed: 12.0.0 + dom-simple: 0.4.0 + dotenv: 4.0.3 + droplet: 0.6.0 + dts: 1.0.0 + dual-numbers: 1.0.3 + dynamic-buffer: 3.0.1 + echarts-simple: 0.0.1 + effect: 4.0.0 + either: 6.1.0 + elmish: 0.13.0 + elmish-enzyme: 0.1.1 + elmish-hooks: 0.10.3 + elmish-html: 0.9.0 + elmish-testing-library: 0.3.2 + email-validate: 7.0.0 + encoding: 0.0.9 + enums: 6.0.1 + env-names: 0.4.0 + error: 2.0.0 + eta-conversion: 0.3.2 + exceptions: 6.1.0 + exists: 6.0.0 + exitcodes: 4.0.0 + expect-inferred: 3.0.0 + ezfetch: 1.0.0 + fahrtwind: 2.0.0 + fallback: 0.1.0 + fast-vect: 1.2.0 + fetch: 4.1.0 + fetch-argonaut: 1.0.1 + fetch-core: 5.1.0 + fetch-yoga-json: 1.1.0 + ffi-simple: 0.5.1 + fft-js: 0.1.0 + filterable: 5.0.0 + fix-functor: 0.1.0 + fixed-points: 7.0.0 + fixed-precision: 5.0.0 + flame: 1.3.0 + float32: 2.0.0 + fmt: 0.2.1 + foldable-traversable: 6.0.0 + foldable-traversable-extra: 0.0.6 + foreign: 7.0.0 + foreign-object: 4.1.0 + foreign-readwrite: 3.4.0 + forgetmenot: 0.1.0 + fork: 6.0.0 + form-urlencoded: 7.0.0 + formatters: 7.0.0 + framer-motion: 1.0.1 + free: 7.1.0 + freeap: 7.0.0 + freer-free: 0.0.1 + freet: 7.0.0 + functions: 6.0.0 + functor1: 3.0.0 + functors: 5.0.0 + fuzzy: 0.4.0 + gen: 4.0.0 + generate-values: 1.0.1 + generic-router: 0.0.1 + geojson: 0.0.5 + geometria: 2.2.0 + gojs: 0.1.1 + grain: 3.0.0 + grain-router: 3.0.0 + grain-virtualized: 3.0.0 + graphs: 8.1.0 + group: 4.1.1 + halogen: 7.0.0 + halogen-bootstrap5: 5.3.2 + halogen-canvas: 1.0.0 + halogen-css: 10.0.0 + halogen-echarts-simple: 0.0.4 + halogen-formless: 4.0.3 + halogen-helix: 1.0.1 + halogen-hooks: 0.6.3 + halogen-hooks-extra: 0.9.0 + halogen-infinite-scroll: 1.1.0 + halogen-store: 0.5.4 + halogen-storybook: 2.0.0 + halogen-subscriptions: 2.0.0 + halogen-svg-elems: 8.0.0 + halogen-typewriter: 1.0.4 + halogen-vdom: 8.0.0 + halogen-vdom-string-renderer: 0.5.0 + halogen-xterm: 2.0.0 + heckin: 2.0.1 + heterogeneous: 0.6.0 + homogeneous: 0.4.0 + http-methods: 6.0.0 + httpurple: 4.0.0 + huffman: 0.4.0 + humdrum: 0.0.1 + hyrule: 2.3.8 + identity: 6.0.0 + identy: 4.0.1 + indexed-db: 1.0.0 + indexed-monad: 3.0.0 + int64: 3.0.0 + integers: 6.0.0 + interpolate: 5.0.2 + intersection-observer: 1.0.1 + invariant: 6.0.0 + jarilo: 1.0.1 + jelly: 0.10.0 + jelly-router: 0.3.0 + jelly-signal: 0.4.0 + jest: 1.0.0 + js-abort-controller: 1.0.0 + js-bigints: 2.2.1 + js-date: 8.0.0 + js-fetch: 0.2.1 + js-fileio: 3.0.0 + js-intl: 1.0.4 + js-iterators: 0.1.1 + js-maps: 0.1.2 + js-promise: 1.0.0 + js-promise-aff: 1.0.0 + js-timers: 6.1.0 + js-uri: 3.1.0 + json: 1.1.0 + json-codecs: 5.0.0 + justifill: 0.5.0 + jwt: 0.0.9 + labeled-data: 0.2.0 + language-cst-parser: 0.14.0 + lazy: 6.0.0 + lazy-joe: 1.0.0 + lcg: 4.0.0 + leibniz: 5.0.0 + leveldb: 1.0.1 + liminal: 1.0.1 + linalg: 6.0.0 + lists: 7.0.0 + literals: 1.0.2 + logging: 3.0.0 + logging-journald: 0.4.0 + lumi-components: 18.0.0 + machines: 7.0.0 + maps-eager: 0.5.0 + marionette: 1.0.0 + marionette-react-basic-hooks: 0.1.1 + marked: 0.1.0 + matrices: 5.0.1 + matryoshka: 1.0.0 + maybe: 6.0.0 + media-types: 6.0.0 + meowclient: 1.0.0 + midi: 4.0.0 + milkis: 9.0.0 + minibench: 4.0.1 + mmorph: 7.0.0 + monad-control: 5.0.0 + monad-logger: 1.3.1 + monad-loops: 0.5.0 + monad-unlift: 1.0.1 + monoid-extras: 0.0.1 + monoidal: 0.16.0 + morello: 0.4.0 + mote: 3.0.0 + motsunabe: 2.0.0 + mvc: 0.0.1 + mysql: 6.0.1 + n3: 0.1.0 + nano-id: 1.1.0 + nanoid: 0.1.0 + naturals: 3.0.0 + nested-functor: 0.2.1 + newtype: 5.0.0 + nextjs: 0.1.1 + nextui: 0.2.0 + node-buffer: 9.0.0 + node-child-process: 11.1.0 + node-event-emitter: 3.0.0 + node-execa: 5.0.0 + node-fs: 9.2.0 + node-glob-basic: 1.3.0 + node-http: 9.1.0 + node-http2: 1.1.1 + node-human-signals: 1.0.0 + node-net: 5.1.0 + node-os: 5.1.0 + node-path: 5.0.0 + node-process: 11.2.0 + node-readline: 8.1.1 + node-sqlite3: 8.0.0 + node-stream-pipes: 2.1.6 + node-streams: 9.0.0 + node-tls: 0.3.1 + node-url: 7.0.1 + node-zlib: 0.4.0 + nonempty: 7.0.0 + now: 6.0.0 + npm-package-json: 2.0.0 + nullable: 6.0.0 + numberfield: 0.2.2 + numbers: 9.0.1 + oak: 3.1.1 + oak-debug: 1.2.2 + object-maps: 0.3.0 + ocarina: 1.5.4 + oooooooooorrrrrrrmm-lib: 0.0.1 + open-folds: 6.4.0 + open-foreign-generic: 11.0.3 + open-memoize: 6.2.0 + open-mkdirp-aff: 1.2.0 + open-pairing: 6.2.0 + open-smolder: 12.0.2 + options: 7.0.0 + optparse: 5.0.1 + ordered-collections: 3.2.0 + ordered-set: 0.4.0 + orders: 6.0.0 + owoify: 1.2.0 + pairs: 9.0.1 + parallel: 7.0.0 + parsing: 10.2.0 + parsing-dataview: 3.2.4 + partial: 4.0.0 + pathy: 9.0.0 + pha: 0.13.0 + phaser: 0.7.0 + phylio: 1.1.2 + pipes: 8.0.0 + pirates-charm: 0.0.1 + pmock: 0.9.0 + point-free: 1.0.0 + pointed-list: 0.5.1 + polymorphic-vectors: 4.0.0 + posix-types: 6.0.0 + postgresql: 2.0.19 + precise: 6.0.0 + precise-datetime: 7.0.0 + prelude: 6.0.1 + prettier-printer: 3.0.0 + priority-queue: 0.1.2 + profunctor: 6.0.1 + profunctor-lenses: 8.0.0 + protobuf: 4.3.0 + psa-utils: 8.0.0 + psci-support: 6.0.0 + punycode: 1.0.0 + qualified-do: 2.2.0 + quantities: 12.2.0 + quickcheck: 8.0.1 + quickcheck-combinators: 0.1.3 + quickcheck-laws: 7.0.0 + quickcheck-utf8: 0.0.0 + random: 6.0.0 + rationals: 6.0.0 + rdf: 0.1.0 + react: 11.0.0 + react-aria: 0.2.0 + react-basic: 17.0.0 + react-basic-classic: 3.0.0 + react-basic-dnd: 10.1.0 + react-basic-dom: 6.1.0 + react-basic-emotion: 7.1.0 + react-basic-hooks: 8.2.0 + react-basic-storybook: 2.0.0 + react-dom: 8.0.0 + react-halo: 3.0.0 + react-icons: 1.1.5 + react-markdown: 0.1.0 + react-testing-library: 4.0.1 + react-virtuoso: 1.0.0 + reactix: 0.6.1 + read: 1.0.1 + recharts: 1.1.0 + record: 4.0.0 + record-extra: 5.0.1 + record-ptional-fields: 0.1.2 + record-studio: 1.0.4 + refs: 6.0.0 + remotedata: 5.0.1 + repr: 0.5.0 + resize-observer: 1.0.0 + resource: 2.0.1 + resourcet: 1.0.0 + result: 1.0.3 + return: 0.2.0 + ring-modules: 5.0.1 + rito: 0.3.4 + roman: 0.4.0 + rough-notation: 1.0.2 + routing: 11.0.0 + routing-duplex: 0.7.0 + run: 5.0.0 + safe-coerce: 2.0.0 + safely: 4.0.1 + school-of-music: 1.3.0 + selection-foldable: 0.2.0 + selective-functors: 1.0.1 + semirings: 7.0.0 + signal: 13.0.0 + simple-emitter: 3.0.1 + simple-i18n: 2.0.1 + simple-json: 9.0.0 + simple-json-generics: 0.2.1 + simple-ulid: 3.0.0 + sized-matrices: 1.0.0 + sized-vectors: 5.0.2 + slug: 3.1.0 + small-ffi: 4.0.1 + soundfonts: 4.1.0 + sparse-matrices: 2.0.1 + sparse-polynomials: 3.0.1 + spec: 8.0.0 + spec-discovery: 8.3.0 + spec-mocha: 5.1.1 + spec-node: 0.0.2 + spec-quickcheck: 5.0.2 + spec-reporter-xunit: 0.7.1 + splitmix: 2.1.0 + ssrs: 1.0.0 + st: 6.2.0 + statistics: 0.3.2 + strictlypositiveint: 1.0.1 + string-parsers: 8.0.0 + strings: 6.0.1 + strings-extra: 4.0.0 + stringutils: 0.0.12 + substitute: 0.2.3 + supply: 0.2.0 + svg-parser: 3.0.0 + systemd-journald: 0.3.0 + tagged: 4.0.2 + tailrec: 6.1.0 + tecton: 0.2.1 + tecton-halogen: 0.2.0 + test-unit: 17.0.0 + thermite: 6.3.1 + thermite-dom: 0.3.1 + these: 6.0.0 + threading: 0.0.3 + tldr: 0.0.0 + toestand: 0.9.0 + transformation-matrix: 1.0.1 + transformers: 6.1.0 + tree-rose: 4.0.2 + ts-bridge: 4.0.0 + tuples: 7.0.0 + two-or-more: 1.0.0 + type-equality: 4.0.1 + typedenv: 2.0.1 + typelevel: 6.0.0 + typelevel-lists: 2.1.0 + typelevel-peano: 1.0.1 + typelevel-prelude: 7.0.0 + typelevel-regex: 0.0.3 + typelevel-rows: 0.1.0 + typisch: 0.4.0 + uint: 7.0.0 + ulid: 3.0.1 + uncurried-transformers: 1.1.0 + undefined: 2.0.0 + undefined-is-not-a-problem: 1.1.0 + unfoldable: 6.0.0 + unicode: 6.0.0 + unique: 0.6.1 + unlift: 1.0.1 + unordered-collections: 3.1.0 + unsafe-coerce: 6.0.0 + unsafe-reference: 5.0.0 + untagged-to-tagged: 0.1.4 + untagged-union: 1.0.0 + uri: 9.0.0 + url-immutable: 1.0.0 + uuid: 9.0.0 + uuidv4: 1.0.0 + validation: 6.0.0 + variant: 8.0.0 + variant-encodings: 2.0.0 + vectorfield: 1.0.1 + vectors: 2.1.0 + versions: 7.0.0 + visx: 0.0.2 + web-clipboard: 6.0.0 + web-cssom: 2.0.0 + web-cssom-view: 0.1.0 + web-dom: 6.0.0 + web-dom-parser: 8.0.0 + web-dom-xpath: 3.0.0 + web-encoding: 3.0.0 + web-events: 4.0.0 + web-fetch: 4.0.1 + web-file: 4.0.0 + web-geometry: 0.1.0 + web-html: 4.1.0 + web-pointerevents: 2.0.0 + web-proletarian: 1.0.0 + web-promise: 3.2.0 + web-resize-observer: 2.1.0 + web-router: 1.0.0 + web-socket: 4.0.0 + web-storage: 5.0.0 + web-streams: 4.0.0 + web-touchevents: 4.0.0 + web-uievents: 5.0.0 + web-url: 2.0.0 + web-workers: 1.1.0 + web-xhr: 5.0.1 + webextension-polyfill: 0.1.0 + webgpu: 0.0.1 + which: 2.0.0 + xterm: 1.0.0 + yoga-fetch: 1.0.1 + yoga-json: 5.1.0 + yoga-om: 0.1.0 + yoga-postgres: 6.0.0 + yoga-tree: 1.0.0 + z3: 0.0.2 + zipperarray: 2.0.0 + extra_packages: {} +packages: + aff: + type: registry + version: 8.0.0 + integrity: sha256-5MmdI4+0RHBtSBy+YlU3/Cq4R5W2ih3OaRedJIrVHdk= + dependencies: + - bifunctors + - control + - datetime + - effect + - either + - exceptions + - foldable-traversable + - functions + - maybe + - newtype + - parallel + - prelude + - refs + - tailrec + - transformers + - unsafe-coerce + aff-promise: + type: registry + version: 4.0.0 + integrity: sha256-Kq5EupbUpXeUXx4JqGQE7/RTTz/H6idzWhsocwlEFhM= + dependencies: + - aff + - foreign + affjax: + type: registry + version: 13.0.0 + integrity: sha256-blYfaoW4FYIrIdvmT4sB7nN7BathFaEfZuiVLPmHJOo= + dependencies: + - aff + - argonaut-core + - arraybuffer-types + - foreign + - form-urlencoded + - http-methods + - integers + - media-types + - nullable + - refs + - unsafe-coerce + - web-xhr + affjax-node: + type: registry + version: 1.0.0 + integrity: sha256-NcmRTXJxJzgHuKoLh+36yA8UejkfouYcX3uevT+Trjc= + dependencies: + - aff + - affjax + - either + - maybe + - prelude + affjax-web: + type: registry + version: 1.0.0 + integrity: sha256-n/yJUk1wMxMN7fJ2TJ+fELgieomy29N617yOshAnrc0= + dependencies: + - aff + - affjax + - either + - maybe + - prelude + ansi: + type: registry + version: 7.0.0 + integrity: sha256-ZMB6HD+q9CXvn9fRCmJ8dvuDrOVHcjombL3oNOerVnE= + dependencies: + - foldable-traversable + - lists + - strings + argonaut-codecs: + type: registry + version: 9.1.0 + integrity: sha256-N6efXByUeg848ompEqJfVvZuZPfdRYDGlTDFn0G0Oh8= + dependencies: + - argonaut-core + - arrays + - effect + - foreign-object + - identity + - integers + - maybe + - nonempty + - ordered-collections + - prelude + - record + argonaut-core: + type: registry + version: 7.0.0 + integrity: sha256-RC82GfAjItydxrO24cdX373KHVZiLqybu19b5X8u7B4= + dependencies: + - arrays + - control + - either + - foreign-object + - functions + - gen + - maybe + - nonempty + - prelude + - strings + - tailrec + arraybuffer-types: + type: registry + version: 3.0.2 + integrity: sha256-mQKokysYVkooS4uXbO+yovmV/s8b138Ws3zQvOwIHRA= + dependencies: [] + arrays: + type: registry + version: 7.3.0 + integrity: sha256-tmcklBlc/muUtUfr9RapdCPwnlQeB3aSrC4dK85gQlc= + dependencies: + - bifunctors + - control + - foldable-traversable + - functions + - maybe + - nonempty + - partial + - prelude + - safe-coerce + - st + - tailrec + - tuples + - unfoldable + - unsafe-coerce + avar: + type: registry + version: 5.0.0 + integrity: sha256-e7hf0x4hEpcygXP0LtvfvAQ49Bbj2aWtZT3gqM///0A= + dependencies: + - aff + - effect + - either + - exceptions + - functions + - maybe + bifunctors: + type: registry + version: 6.0.0 + integrity: sha256-/gZwC9YhNxZNQpnHa5BIYerCGM2jeX9ukZiEvYxm5Nw= + dependencies: + - const + - either + - newtype + - prelude + - tuples + catenable-lists: + type: registry + version: 7.0.0 + integrity: sha256-76vYENhwF4BWTBsjeLuErCH2jqVT4M3R1HX+4RwSftA= + dependencies: + - control + - foldable-traversable + - lists + - maybe + - prelude + - tuples + - unfoldable + console: + type: registry + version: 6.1.0 + integrity: sha256-CxmAzjgyuGDmt9FZW51VhV6rBPwR6o0YeKUzA9rSzcM= + dependencies: + - effect + - prelude + const: + type: registry + version: 6.0.0 + integrity: sha256-tNrxDW8D8H4jdHE2HiPzpLy08zkzJMmGHdRqt5BQuTc= + dependencies: + - invariant + - newtype + - prelude + contravariant: + type: registry + version: 6.0.0 + integrity: sha256-TP+ooAp3vvmdjfQsQJSichF5B4BPDHp3wAJoWchip6c= + dependencies: + - const + - either + - newtype + - prelude + - tuples + control: + type: registry + version: 6.0.0 + integrity: sha256-sH7Pg9E96JCPF9PIA6oQ8+BjTyO/BH1ZuE/bOcyj4Jk= + dependencies: + - newtype + - prelude + datetime: + type: registry + version: 6.1.0 + integrity: sha256-g/5X5BBegQWLpI9IWD+sY6mcaYpzzlW5lz5NBzaMtyI= + dependencies: + - bifunctors + - control + - either + - enums + - foldable-traversable + - functions + - gen + - integers + - lists + - maybe + - newtype + - numbers + - ordered-collections + - partial + - prelude + - tuples + debug: + type: registry + version: 6.0.2 + integrity: sha256-vmkYFuXYuELBzeauvgHG6E6Kf/Hp1dAnxwE9ByHfwSg= + dependencies: + - functions + - prelude + distributive: + type: registry + version: 6.0.0 + integrity: sha256-HTDdmEnzigMl+02SJB88j+gAXDx9VKsbvR4MJGDPbOQ= + dependencies: + - identity + - newtype + - prelude + - tuples + - type-equality + effect: + type: registry + version: 4.0.0 + integrity: sha256-eBtZu+HZcMa5HilvI6kaDyVX3ji8p0W9MGKy2K4T6+M= + dependencies: + - prelude + either: + type: registry + version: 6.1.0 + integrity: sha256-6hgTPisnMWVwQivOu2PKYcH8uqjEOOqDyaDQVUchTpY= + dependencies: + - control + - invariant + - maybe + - prelude + enums: + type: registry + version: 6.0.1 + integrity: sha256-HWaD73JFLorc4A6trKIRUeDMdzE+GpkJaEOM1nTNkC8= + dependencies: + - control + - either + - gen + - maybe + - newtype + - nonempty + - partial + - prelude + - tuples + - unfoldable + exceptions: + type: registry + version: 6.1.0 + integrity: sha256-K0T89IHtF3vBY7eSAO7eDOqSb2J9kZGAcDN5+IKsF8E= + dependencies: + - effect + - either + - maybe + - prelude + exists: + type: registry + version: 6.0.0 + integrity: sha256-A0JQHpTfo1dNOj9U5/Fd3xndlRSE0g2IQWOGor2yXn8= + dependencies: + - unsafe-coerce + filterable: + type: registry + version: 5.0.0 + integrity: sha256-cCojJHRnTmpY1j1kegI4CFwghdQ2Fm/8dzM8IlC+lng= + dependencies: + - arrays + - either + - foldable-traversable + - identity + - lists + - ordered-collections + foldable-traversable: + type: registry + version: 6.0.0 + integrity: sha256-fLeqRYM4jUrZD5H4WqcwUgzU7XfYkzO4zhgtNc3jcWM= + dependencies: + - bifunctors + - const + - control + - either + - functors + - identity + - maybe + - newtype + - orders + - prelude + - tuples + foreign: + type: registry + version: 7.0.0 + integrity: sha256-1ORiqoS3HW+qfwSZAppHPWy4/6AQysxZ2t29jcdUMNA= + dependencies: + - either + - functions + - identity + - integers + - lists + - maybe + - prelude + - strings + - transformers + foreign-object: + type: registry + version: 4.1.0 + integrity: sha256-q24okj6mT+yGHYQ+ei/pYPj5ih6sTbu7eDv/WU56JVo= + dependencies: + - arrays + - foldable-traversable + - functions + - gen + - lists + - maybe + - prelude + - st + - tailrec + - tuples + - typelevel-prelude + - unfoldable + fork: + type: registry + version: 6.0.0 + integrity: sha256-X7u0SuCvFbLbzuNEKLBNuWjmcroqMqit4xEzpQwAP7E= + dependencies: + - aff + form-urlencoded: + type: registry + version: 7.0.0 + integrity: sha256-WUzk8DTjrbPVHKZ5w7XpPBO6ci6xFhvYguHp6RvX+18= + dependencies: + - foldable-traversable + - js-uri + - maybe + - newtype + - prelude + - strings + - tuples + free: + type: registry + version: 7.1.0 + integrity: sha256-JAumgEsGSzJCNLD8AaFvuX7CpqS5yruCngi6yI7+V5k= + dependencies: + - catenable-lists + - control + - distributive + - either + - exists + - foldable-traversable + - invariant + - lazy + - maybe + - prelude + - tailrec + - transformers + - tuples + - unsafe-coerce + functions: + type: registry + version: 6.0.0 + integrity: sha256-adMyJNEnhGde2unHHAP79gPtlNjNqzgLB8arEOn9hLI= + dependencies: + - prelude + functors: + type: registry + version: 5.0.0 + integrity: sha256-zfPWWYisbD84MqwpJSZFlvM6v86McM68ob8p9s27ywU= + dependencies: + - bifunctors + - const + - contravariant + - control + - distributive + - either + - invariant + - maybe + - newtype + - prelude + - profunctor + - tuples + - unsafe-coerce + gen: + type: registry + version: 4.0.0 + integrity: sha256-f7yzAXWwr+xnaqEOcvyO3ezKdoes8+WXWdXIHDBCAPI= + dependencies: + - either + - foldable-traversable + - identity + - maybe + - newtype + - nonempty + - prelude + - tailrec + - tuples + - unfoldable + halogen-subscriptions: + type: registry + version: 2.0.0 + integrity: sha256-8/BPME/sC/kWMDxp0+n4k09gA1IIedXn2yUJ4pCH5xw= + dependencies: + - arrays + - effect + - foldable-traversable + - functors + - refs + - safe-coerce + - unsafe-reference + heterogeneous: + type: registry + version: 0.6.0 + integrity: sha256-cfNYSK6yYmjTrkzk95Otpv6TUUkeBreexwqG/tBvUyg= + dependencies: + - either + - functors + - prelude + - record + - tuples + - variant + http-methods: + type: registry + version: 6.0.0 + integrity: sha256-Orr7rbDGcp7qoqmUMXPRMjBx+C4jqOQcFe9+gE3nMgU= + dependencies: + - either + - prelude + - strings + identity: + type: registry + version: 6.0.0 + integrity: sha256-4wY0XZbAksjY6UAg99WkuKyJlQlWAfTi2ssadH0wVMY= + dependencies: + - control + - invariant + - newtype + - prelude + integers: + type: registry + version: 6.0.0 + integrity: sha256-sf+sK26R1hzwl3NhXR7WAu9zCDjQnfoXwcyGoseX158= + dependencies: + - maybe + - numbers + - prelude + invariant: + type: registry + version: 6.0.0 + integrity: sha256-RGWWyYrz0Hs1KjPDA+87Kia67ZFBhfJ5lMGOMCEFoLo= + dependencies: + - control + - prelude + js-date: + type: registry + version: 8.0.0 + integrity: sha256-6TVF4DWg5JL+jRAsoMssYw8rgOVALMUHT1CuNZt8NRo= + dependencies: + - datetime + - effect + - exceptions + - foreign + - integers + - now + js-uri: + type: registry + version: 3.1.0 + integrity: sha256-3p0ynHveCJmC2CXze+eMBdW/2l5e953Q8XMAKz+jxUo= + dependencies: + - functions + - maybe + lazy: + type: registry + version: 6.0.0 + integrity: sha256-lMsfFOnlqfe4KzRRiW8ot5ge6HtcU3Eyh2XkXcP5IgU= + dependencies: + - control + - foldable-traversable + - invariant + - prelude + lcg: + type: registry + version: 4.0.0 + integrity: sha256-h7ME5cthLfbgJOJdsZcSfFpwXsx4rf8YmhebU+3iSYg= + dependencies: + - effect + - integers + - maybe + - partial + - prelude + - random + lists: + type: registry + version: 7.0.0 + integrity: sha256-EKF15qYqucuXP2lT/xPxhqy58f0FFT6KHdIB/yBOayI= + dependencies: + - bifunctors + - control + - foldable-traversable + - lazy + - maybe + - newtype + - nonempty + - partial + - prelude + - tailrec + - tuples + - unfoldable + maybe: + type: registry + version: 6.0.0 + integrity: sha256-5cCIb0wPwbat2PRkQhUeZO0jcAmf8jCt2qE0wbC3v2Q= + dependencies: + - control + - invariant + - newtype + - prelude + media-types: + type: registry + version: 6.0.0 + integrity: sha256-n/4FoGBasbVSYscGVRSyBunQ6CZbL3jsYL+Lp01mc9k= + dependencies: + - newtype + - prelude + mmorph: + type: registry + version: 7.0.0 + integrity: sha256-urZlZNNqGeQFe5D/ClHlR8QgGBNHTMFPtJ5S5IpflTQ= + dependencies: + - free + - functors + - transformers + newtype: + type: registry + version: 5.0.0 + integrity: sha256-gdrQu8oGe9eZE6L3wOI8ql/igOg+zEGB5ITh2g+uttw= + dependencies: + - prelude + - safe-coerce + nonempty: + type: registry + version: 7.0.0 + integrity: sha256-54ablJZUHGvvlTJzi3oXyPCuvY6zsrWJuH/dMJ/MFLs= + dependencies: + - control + - foldable-traversable + - maybe + - prelude + - tuples + - unfoldable + now: + type: registry + version: 6.0.0 + integrity: sha256-xZ7x37ZMREfs6GCDw/h+FaKHV/3sPWmtqBZRGTxybQY= + dependencies: + - datetime + - effect + nullable: + type: registry + version: 6.0.0 + integrity: sha256-yiGBVl3AD+Guy4kNWWeN+zl1gCiJK+oeIFtZtPCw4+o= + dependencies: + - effect + - functions + - maybe + numbers: + type: registry + version: 9.0.1 + integrity: sha256-/9M6aeMDBdB4cwYDeJvLFprAHZ49EbtKQLIJsneXLIk= + dependencies: + - functions + - maybe + ordered-collections: + type: registry + version: 3.2.0 + integrity: sha256-o9jqsj5rpJmMdoe/zyufWHFjYYFTTsJpgcuCnqCO6PM= + dependencies: + - arrays + - foldable-traversable + - gen + - lists + - maybe + - partial + - prelude + - st + - tailrec + - tuples + - unfoldable + orders: + type: registry + version: 6.0.0 + integrity: sha256-nBA0g3/ai0euH8q9pSbGqk53W2q6agm/dECZTHcoink= + dependencies: + - newtype + - prelude + parallel: + type: registry + version: 7.0.0 + integrity: sha256-gUC9i4Txnx9K9RcMLsjujbwZz6BB1bnE2MLvw4GIw5o= + dependencies: + - control + - effect + - either + - foldable-traversable + - functors + - maybe + - newtype + - prelude + - profunctor + - refs + - transformers + partial: + type: registry + version: 4.0.0 + integrity: sha256-fwXerld6Xw1VkReh8yeQsdtLVrjfGiVuC5bA1Wyo/J4= + dependencies: [] + pipes: + type: registry + version: 8.0.0 + integrity: sha256-kvfqGM4cPA/wCcBHbp5psouFw5dZGvku2462x7ZBwSY= + dependencies: + - aff + - lists + - mmorph + - prelude + - tailrec + - transformers + - tuples + prelude: + type: registry + version: 6.0.1 + integrity: sha256-o8p6SLYmVPqzXZhQFd2hGAWEwBoXl1swxLG/scpJ0V0= + dependencies: [] + profunctor: + type: registry + version: 6.0.1 + integrity: sha256-E58hSYdJvF2Qjf9dnWLPlJKh2Z2fLfFLkQoYi16vsFk= + dependencies: + - control + - distributive + - either + - exists + - invariant + - newtype + - prelude + - tuples + psci-support: + type: registry + version: 6.0.0 + integrity: sha256-C6ql4P9TEP06hft/1Z5QumPA4yARR4VIxDdhmL1EO+Y= + dependencies: + - console + - effect + - prelude + quickcheck: + type: registry + version: 8.0.1 + integrity: sha256-ZvpccKQCvgslTXZCNmpYW4bUsFzhZd/kQUr2WmxFTGY= + dependencies: + - arrays + - console + - control + - effect + - either + - enums + - exceptions + - foldable-traversable + - gen + - identity + - integers + - lazy + - lcg + - lists + - maybe + - newtype + - nonempty + - numbers + - partial + - prelude + - record + - st + - strings + - tailrec + - transformers + - tuples + - unfoldable + random: + type: registry + version: 6.0.0 + integrity: sha256-CJ611a35MPCE7XQMp0rdC6MCn76znlhisiCRgboAG+Q= + dependencies: + - effect + - integers + record: + type: registry + version: 4.0.0 + integrity: sha256-Za5U85bTRJEfGK5Sk4hM41oXy84YQI0I8TL3WUn1Qzg= + dependencies: + - functions + - prelude + - unsafe-coerce + refs: + type: registry + version: 6.0.0 + integrity: sha256-Vgwne7jIbD3ZMoLNNETLT8Litw6lIYo3MfYNdtYWj9s= + dependencies: + - effect + - prelude + safe-coerce: + type: registry + version: 2.0.0 + integrity: sha256-a1ibQkiUcbODbLE/WAq7Ttbbh9ex+x33VCQ7GngKudU= + dependencies: + - unsafe-coerce + spec: + type: registry + version: 8.0.0 + integrity: sha256-Yn7MhDai1YULlQF45+9FTOTf2rcjoda1Jf2IrEFCoeg= + dependencies: + - aff + - ansi + - arrays + - avar + - bifunctors + - control + - datetime + - effect + - either + - exceptions + - foldable-traversable + - fork + - identity + - integers + - lists + - maybe + - newtype + - now + - ordered-collections + - parallel + - pipes + - prelude + - refs + - strings + - tailrec + - transformers + - tuples + spec-discovery: + type: registry + version: 8.3.0 + integrity: sha256-9F5mAPIlvEkzUFLvHp3zRpwlafANsVSdwkshKeb/PIk= + dependencies: + - aff + - aff-promise + - effect + - foldable-traversable + - prelude + - spec + st: + type: registry + version: 6.2.0 + integrity: sha256-z9X0WsOUlPwNx9GlCC+YccCyz8MejC8Wb0C4+9fiBRY= + dependencies: + - partial + - prelude + - tailrec + - unsafe-coerce + string-parsers: + type: registry + version: 8.0.0 + integrity: sha256-9ATYh0S54ERoR+uhkCM59wBRvW/6zv6geHJ0TmcI644= + dependencies: + - arrays + - bifunctors + - control + - either + - foldable-traversable + - lists + - maybe + - prelude + - strings + - tailrec + strings: + type: registry + version: 6.0.1 + integrity: sha256-WssD3DbX4OPzxSdjvRMX0yvc9+pS7n5gyPv5I2Trb7k= + dependencies: + - arrays + - control + - either + - enums + - foldable-traversable + - gen + - integers + - maybe + - newtype + - nonempty + - partial + - prelude + - tailrec + - tuples + - unfoldable + - unsafe-coerce + tailrec: + type: registry + version: 6.1.0 + integrity: sha256-Xx19ECVDRrDWpz9D2GxQHHV89vd61dnXxQm0IcYQHGk= + dependencies: + - bifunctors + - effect + - either + - identity + - maybe + - partial + - prelude + - refs + transformers: + type: registry + version: 6.1.0 + integrity: sha256-3Bm+Z6tsC/paG888XkywDngJ2JMos+JfOhRlkVfb7gI= + dependencies: + - control + - distributive + - effect + - either + - exceptions + - foldable-traversable + - identity + - lazy + - maybe + - newtype + - prelude + - st + - tailrec + - tuples + - unfoldable + tuples: + type: registry + version: 7.0.0 + integrity: sha256-1rXgTomes9105BjgXqIw0FL6Fz1lqqUTLWOumhWec1M= + dependencies: + - control + - invariant + - prelude + type-equality: + type: registry + version: 4.0.1 + integrity: sha256-Hs9D6Y71zFi/b+qu5NSbuadUQXe5iv5iWx0226vOHUw= + dependencies: [] + typelevel-lists: + type: registry + version: 2.1.0 + integrity: sha256-h7fTc4i98F/mRizWGIjm91eRwUQlC6/33Lm1JbnD3BE= + dependencies: + - prelude + - tuples + - typelevel-peano + - typelevel-prelude + - unsafe-coerce + typelevel-peano: + type: registry + version: 1.0.1 + integrity: sha256-DO/EazDNu07i2ekvj8vIdgH2HdKWUjfohNYo5aNQZy0= + dependencies: + - arrays + - console + - effect + - prelude + - psci-support + - typelevel-prelude + - unsafe-coerce + typelevel-prelude: + type: registry + version: 7.0.0 + integrity: sha256-uFF2ph+vHcQpfPuPf2a3ukJDFmLhApmkpTMviHIWgJM= + dependencies: + - prelude + - type-equality + unfoldable: + type: registry + version: 6.0.0 + integrity: sha256-JtikvJdktRap7vr/K4ITlxUX1QexpnqBq0G/InLr6eg= + dependencies: + - foldable-traversable + - maybe + - partial + - prelude + - tuples + unicode: + type: registry + version: 6.0.0 + integrity: sha256-QJnTVZpmihEAUiMeYrfkusVoziJWp2hJsgi9bMQLue8= + dependencies: + - foldable-traversable + - maybe + - strings + unsafe-coerce: + type: registry + version: 6.0.0 + integrity: sha256-IqIYW4Vkevn8sI+6aUwRGvd87tVL36BBeOr0cGAE7t0= + dependencies: [] + unsafe-reference: + type: registry + version: 5.0.0 + integrity: sha256-zU7BhfJU14nXQRZG9iADsp0mSiKhz07OcKyjRB2YT+Y= + dependencies: + - prelude + variant: + type: registry + version: 8.0.0 + integrity: sha256-SR//zQDg2dnbB8ZHslcxieUkCeNlbMToapvmh9onTtw= + dependencies: + - enums + - lists + - maybe + - partial + - prelude + - record + - tuples + - unsafe-coerce + web-dom: + type: registry + version: 6.0.0 + integrity: sha256-1kSKWFDI4LupdmpjK01b1MMxDFW7jvatEgPgVmCmSBQ= + dependencies: + - web-events + web-events: + type: registry + version: 4.0.0 + integrity: sha256-YDt8b6u1tzGtnWyNRodne57iO8FNSGPaTCVzBUyUn4k= + dependencies: + - datetime + - enums + - foreign + - nullable + web-file: + type: registry + version: 4.0.0 + integrity: sha256-1h5jPBkvjY71jLEdwVadXCx86/2inNoMBO//Rd3eCSU= + dependencies: + - foreign + - media-types + - web-dom + web-html: + type: registry + version: 4.1.0 + integrity: sha256-ByqS/h1/yG+hjCOnOQp7L1QpIWzQENNKB1kaHtpEhlE= + dependencies: + - js-date + - web-dom + - web-file + - web-storage + web-storage: + type: registry + version: 5.0.0 + integrity: sha256-q+6lxcnfWxus0/nDeFVtF1V+tLehZvvXQ0cduYPLksY= + dependencies: + - nullable + - web-events + web-xhr: + type: registry + version: 5.0.1 + integrity: sha256-3dbIPVG66S+hPrgEVnpD78hrGjE7qlBbsReWOz89Ios= + dependencies: + - arraybuffer-types + - datetime + - http-methods + - web-dom + - web-file + - web-html diff --git a/spago.yaml b/spago.yaml new file mode 100644 index 0000000..80c641c --- /dev/null +++ b/spago.yaml @@ -0,0 +1,61 @@ +package: + name: graphql-client + dependencies: + - aff + - affjax + - affjax-node + - affjax-web + - argonaut-codecs + - argonaut-core + - arrays + - bifunctors + - console + - control + - datetime + - debug + - effect + - either + - enums + - filterable + - foldable-traversable + - foreign + - foreign-object + - functions + - halogen-subscriptions + - heterogeneous + - http-methods + - identity + - integers + - lists + - maybe + - media-types + - newtype + - now + - nullable + - numbers + - ordered-collections + - partial + - prelude + - psci-support + - quickcheck + - record + - spec + - spec-discovery + - string-parsers + - strings + - transformers + - tuples + - typelevel-lists + - unfoldable + - unicode + - unsafe-coerce + - variant + test: + main: Test.Main + dependencies: + - console + - argonaut-generic +workspace: + packageSet: + registry: 60.2.1 + extraPackages: {} diff --git a/src/GraphQL/Client/Args.purs b/src/GraphQL/Client/Args.purs index e7ca9b1..7801b68 100644 --- a/src/GraphQL/Client/Args.purs +++ b/src/GraphQL/Client/Args.purs @@ -71,7 +71,7 @@ class ArgGqlAt at params arg instance argAsGql :: ArgGqlAt at param arg => ArgGqlAt at (AsGql gqlName param) arg else instance argToGqlNotNull :: (IsNotNull at param arg, ArgGqlAt at param arg) => ArgGqlAt at (NotNull param) arg else instance argToGqlIgnore :: ArgGqlAt at param IgnoreArg -else instance argToGqlVariant :: (Union r () params) => ArgGqlAt at (Variant params) (Variant r) +else instance argToGqlVariant :: (Row.Union r () params) => ArgGqlAt at (Variant params) (Variant r) else instance argVarJson :: ArgGqlAt at Json (Var sym Json) -- Json can only be used with a variable else instance argToGqlJsonNotAllowed :: TE.Fail (TE.Text "A `Json` query argument can only be used as a variable ") => ArgGqlAt at Json Json else instance argVar :: ArgGqlAt at param arg => ArgGqlAt at param (Var sym arg)