diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c5899b..bbac368 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,39 +10,47 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: purescript-contrib/setup-purescript@main + - uses: actions/checkout@v4 + + - name: Set up a PureScript toolchain + uses: purescript-contrib/setup-purescript@main with: - purescript: "0.15.0" - - uses: actions/cache@v2 - # This cache uses the .dhall files to know when it should reinstall - # and rebuild packages. It caches both the installed packages from - # the `.spago` directory and compilation artifacts from the `output` - # directory. When restored the compiler will rebuild any files that - # have changed. + purescript: "latest" + purs-tidy: "latest" + spago: "unstable" + + - name: Cache PureScript dependencies + uses: actions/cache@v4 with: - key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }} + key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }} path: | .spago output - - name: Install esbuild and dev dependencies - run: npm install --global esbuild@0.14.x && npm install - - - name: Build source - run: npm run bundle + - name: Cache NPM dependencies + uses: actions/cache@v4 + env: + cache-name: cache-node-modules + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}- + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- - - name: Build script - run: spago --config script/spago.dhall build + - name: Install npm dependencies + run: npm install - - name: Build bin - run: spago --config bin/spago.dhall build + - name: Build all + run: npm run build - - name: Build tests - run: spago --config test/spago.dhall build + - name: Build cli + run: npm run bundle:cli - - name: Run tests - run: spago --quiet --config test/spago.dhall test + - name: Run all tests + run: npm run test - name: Verify formatting run: npm run check-self diff --git a/bin/Bin/Version.js b/bin/Bin/Version.js deleted file mode 100644 index 9eb0005..0000000 --- a/bin/Bin/Version.js +++ /dev/null @@ -1 +0,0 @@ -export const version = "v0.11.0"; diff --git a/bin/Bin/Version.purs b/bin/Bin/Version.purs deleted file mode 100644 index acd7f57..0000000 --- a/bin/Bin/Version.purs +++ /dev/null @@ -1,3 +0,0 @@ -module Bin.Version where - -foreign import version :: String diff --git a/bin/spago.dhall b/bin/spago.dhall deleted file mode 100644 index 6513d8c..0000000 --- a/bin/spago.dhall +++ /dev/null @@ -1,41 +0,0 @@ -{ name = "tidy-cli" -, dependencies = - [ "aff" - , "argonaut-codecs" - , "argonaut-core" - , "argparse-basic" - , "arrays" - , "console" - , "control" - , "datetime" - , "dodo-printer" - , "effect" - , "either" - , "foldable-traversable" - , "foreign-object" - , "lazy" - , "lists" - , "maybe" - , "newtype" - , "node-buffer" - , "node-fs" - , "node-fs-aff" - , "node-glob-basic" - , "node-path" - , "node-process" - , "node-streams" - , "node-workerbees" - , "numbers" - , "ordered-collections" - , "parallel" - , "partial" - , "prelude" - , "language-cst-parser" - , "refs" - , "strings" - , "transformers" - , "tuples" - ] -, packages = ../packages.dhall -, sources = [ "src/**/*.purs", "bin/**/*.purs" ] -} diff --git a/cli/.psc-ide-port b/cli/.psc-ide-port new file mode 100644 index 0000000..5c0bd6f --- /dev/null +++ b/cli/.psc-ide-port @@ -0,0 +1 @@ +15368 \ No newline at end of file diff --git a/bin/index.dev.js b/cli/index.dev.js similarity index 100% rename from bin/index.dev.js rename to cli/index.dev.js diff --git a/bin/index.js b/cli/index.js similarity index 100% rename from bin/index.js rename to cli/index.js diff --git a/cli/spago.yaml b/cli/spago.yaml new file mode 100644 index 0000000..33b929c --- /dev/null +++ b/cli/spago.yaml @@ -0,0 +1,43 @@ +package: + name: tidy-cli + publish: + license: MIT + version: 0.11.0 + location: + githubOwner: natefaubion + githubRepo: purescript-tidy + dependencies: + - aff: ">=8.0.0 <9.0.0" + - argonaut-codecs: ">=9.1.0 <10.0.0" + - argonaut-core: ">=7.0.0 <8.0.0" + - argparse-basic: ">=2.0.0 <3.0.0" + - arrays: ">=7.3.0 <8.0.0" + - console: ">=6.1.0 <7.0.0" + - control: ">=6.0.0 <7.0.0" + - datetime: ">=6.1.0 <7.0.0" + - dodo-printer: "*" + - effect: ">=4.0.0 <5.0.0" + - either: ">=6.1.0 <7.0.0" + - foldable-traversable: ">=6.0.0 <7.0.0" + - foreign-object: ">=4.1.0 <5.0.0" + - language-cst-parser: "*" + - lazy: ">=6.0.0 <7.0.0" + - lists: ">=7.0.0 <8.0.0" + - maybe: ">=6.0.0 <7.0.0" + - newtype: ">=5.0.0 <6.0.0" + - node-buffer: ">=9.0.0 <10.0.0" + - node-fs: ">=9.2.0 <10.0.0" + - node-glob-basic: "*" + - node-path: ">=5.0.0 <6.0.0" + - node-process: ">=11.2.0 <12.0.0" + - node-streams: ">=9.0.0 <10.0.0" + - node-workerbees: "*" + - numbers: ">=9.0.1 <10.0.0" + - ordered-collections: ">=3.2.0 <4.0.0" + - parallel: ">=7.0.0 <8.0.0" + - partial: ">=4.0.0 <5.0.0" + - prelude: ">=6.0.1 <7.0.0" + - strings: ">=6.0.1 <7.0.0" + - tidy: "*" + - transformers: ">=6.1.0 <7.0.0" + - tuples: ">=7.0.0 <8.0.0" diff --git a/bin/Bin/Timing.js b/cli/src/Cli/Timing.js similarity index 100% rename from bin/Bin/Timing.js rename to cli/src/Cli/Timing.js diff --git a/bin/Bin/Timing.purs b/cli/src/Cli/Timing.purs similarity index 93% rename from bin/Bin/Timing.purs rename to cli/src/Cli/Timing.purs index 9388015..da3c204 100644 --- a/bin/Bin/Timing.purs +++ b/cli/src/Cli/Timing.purs @@ -1,4 +1,4 @@ -module Bin.Timing where +module Cli.Timing where import Prelude diff --git a/cli/src/Cli/Version.purs b/cli/src/Cli/Version.purs new file mode 100644 index 0000000..3f2b7e6 --- /dev/null +++ b/cli/src/Cli/Version.purs @@ -0,0 +1,7 @@ +module Cli.Version where + +import Prelude +import Spago.Generated.BuildInfo (packages) + +version :: String +version = "v" <> packages."tidy-cli" diff --git a/bin/Bin/Worker.purs b/cli/src/Cli/Worker.purs similarity index 96% rename from bin/Bin/Worker.purs rename to cli/src/Cli/Worker.purs index 1602cba..1f2966e 100644 --- a/bin/Bin/Worker.purs +++ b/cli/src/Cli/Worker.purs @@ -1,10 +1,8 @@ -module Bin.Worker where +module Cli.Worker where import Prelude -import Bin.FormatOptions (FormatOptions) -import Bin.FormatOptions as FormatOptions -import Bin.Timing (hrtime, hrtimeDiff, toMilliseconds) +import Cli.Timing (hrtime, hrtimeDiff, toMilliseconds) import Data.Array.NonEmpty as NonEmptyArray import Data.Either (Either(..), either, fromRight') import Data.Lazy (Lazy) @@ -28,6 +26,8 @@ import PureScript.CST (RecoveredParserResult(..), parseModule) import PureScript.CST.Errors (printParseError) import PureScript.CST.Parser.Monad (PositionedError) import Tidy (defaultFormatOptions, formatModule, toDoc) +import Tidy.FormatOptions (FormatOptions) +import Tidy.FormatOptions as FormatOptions import Tidy.Operators (parseOperatorTable) import Tidy.Precedence (PrecedenceMap, remapOperators) diff --git a/bin/Main.purs b/cli/src/Main.purs similarity index 92% rename from bin/Main.purs rename to cli/src/Main.purs index 4e0d3dc..72be1f3 100644 --- a/bin/Main.purs +++ b/cli/src/Main.purs @@ -4,10 +4,8 @@ import Prelude import ArgParse.Basic (ArgParser) import ArgParse.Basic as Arg -import Bin.FormatOptions (FormatOptions, formatOptions) -import Bin.FormatOptions as FormatOptions -import Bin.Version (version) -import Bin.Worker (WorkerData, WorkerInput, WorkerOutput, formatCommand, formatInPlaceCommand, toWorkerConfig) +import Cli.Version (version) +import Cli.Worker (WorkerData, WorkerInput, WorkerOutput, formatCommand, formatInPlaceCommand, toWorkerConfig) import Control.Monad.State (evalStateT, lift) import Control.Monad.State as State import Control.Parallel (parTraverse) @@ -34,11 +32,10 @@ import Data.Traversable (for, traverse) import Data.Tuple (Tuple(..)) import Data.Tuple.Nested ((/\)) import Effect (Effect) -import Effect.Aff (Aff, error, launchAff_, makeAff, throwError, try) +import Effect.Aff (Aff, error, launchAff_, throwError, try) import Effect.Aff as Aff import Effect.Class (liftEffect) import Effect.Class.Console as Console -import Effect.Ref as Ref import Foreign.Object (Object) import Foreign.Object as Object import Node.Buffer as Buffer @@ -49,12 +46,14 @@ import Node.Glob.Basic (expandGlobsCwd, expandGlobsWithStatsCwd) import Node.Path (FilePath) import Node.Path as Path import Node.Process as Process -import Node.Stream as Stream +import Node.Stream.Aff as Stream.Aff import Node.WorkerBees as Worker import Node.WorkerBees.Aff.Pool (poolTraverse) import PureScript.CST (RecoveredParserResult(..), parseModule, toRecovered) import PureScript.CST.ModuleGraph (ModuleSort(..), sortModules) import PureScript.CST.Types (Module(..), ModuleHeader(..), Name(..)) +import Tidy.FormatOptions (FormatOptions, formatOptions) +import Tidy.FormatOptions as FormatOptions import Tidy.Operators (parseOperatorTable, resolveOperatorExports) import Tidy.Operators.Defaults (defaultOperators) import Tidy.Precedence (OperatorNamespace(..), PrecedenceMap) @@ -163,11 +162,11 @@ main = launchAff_ do Console.log $ Arg.printArgError err case err of Arg.ArgError _ Arg.ShowHelp -> - liftEffect $ Process.exit 0 + liftEffect $ Process.exit Arg.ArgError _ (Arg.ShowInfo _) -> - liftEffect $ Process.exit 0 + liftEffect $ Process.exit' 0 _ -> - liftEffect $ Process.exit 1 + liftEffect $ Process.exit' 1 Right cmd -> case cmd of GenerateOperators globs -> @@ -180,7 +179,7 @@ main = launchAff_ do FS.writeTextFile UTF8 rcFileName $ contents <> "\n" else do Console.error $ rcFileName <> " already exists." - liftEffect $ Process.exit 1 + liftEffect $ Process.exit' 1 FormatInPlace mode cliOptions configOption numThreads printTiming globs -> do currentDir <- liftEffect Process.cwd @@ -213,9 +212,9 @@ main = launchAff_ do results <- if Array.length filesWithOptions > numThreads * 2 then do -- Worker location for production bin - let bundleLocation = Path.concat [ srcLocation, "bundle", "Bin.Worker", "index.js" ] + let bundleLocation = Path.concat [ srcLocation, "bundle", "Cli.Worker", "index.js" ] -- Worker location for local dev - let outputLocation = Path.concat [ srcLocation, "output", "Bin.Worker", "index.js" ] + let outputLocation = Path.concat [ srcLocation, "output", "Cli.Worker", "index.js" ] worker <- oneOf [ FS.stat bundleLocation $> Worker.unsafeWorkerFromPath bundleLocation @@ -251,7 +250,7 @@ main = launchAff_ do Check -> liftEffect do if Array.null errors && Array.null notFormatted then do Console.log "All files are formatted." - Process.exit 0 + Process.exit else do unless (Array.null errors) do Console.log "Some files have errors:\n" @@ -260,7 +259,7 @@ main = launchAff_ do unless (Array.null notFormatted) do Console.log "Some files are not formatted:\n" for_ notFormatted Console.error - Process.exit 1 + Process.exit' 1 Format cliOptions configOption -> do currentDir <- liftEffect Process.cwd @@ -272,11 +271,8 @@ main = launchAff_ do case formatCommand options operators contents of Left err -> do Console.error err - liftEffect $ Process.exit 1 - Right str -> - makeAff \k -> do - _ <- Stream.writeString Process.stdout UTF8 str (const (k (Right unit))) - pure mempty + liftEffect $ Process.exit' 1 + Right str -> Stream.Aff.write Process.stdout =<< Stream.Aff.fromStringUTF8 str expandGlobs :: Array String -> Aff (Array String) expandGlobs = map dirToGlob >>> expandGlobsWithStatsCwd >>> map onlyFiles @@ -303,7 +299,7 @@ getOptions cliOptions rcOptions filePath = case _ of case rcOptions of Nothing -> do Console.error $ rcFileName <> " not found for " <> filePath - liftEffect $ Process.exit 1 + liftEffect $ Process.exit' 1 Just options -> pure options @@ -360,13 +356,7 @@ resolveRcForDir root = go List.Nil Tuple res cache readStdin :: Aff String -readStdin = makeAff \k -> do - contents <- Ref.new [] - Stream.onData Process.stdin \buff -> do - void $ Ref.modify (_ `Array.snoc` buff) contents - Stream.onEnd Process.stdin do - k <<< Right =<< Buffer.toString UTF8 =<< Buffer.concat =<< Ref.read contents - pure mempty +readStdin = Stream.Aff.readableToStringUtf8 Process.stdin generateOperatorsCommand :: Array String -> Aff Unit generateOperatorsCommand globs = do diff --git a/generate-default-operators/spago.yaml b/generate-default-operators/spago.yaml new file mode 100644 index 0000000..89754fb --- /dev/null +++ b/generate-default-operators/spago.yaml @@ -0,0 +1,22 @@ +package: + name: tidy-generate-default-operators + dependencies: + - aff: ">=8.0.0 <9.0.0" + - argonaut-codecs: ">=9.1.0 <10.0.0" + - argonaut-core: ">=7.0.0 <8.0.0" + - arrays: ">=7.3.0 <8.0.0" + - console: ">=6.1.0 <7.0.0" + - effect: ">=4.0.0 <5.0.0" + - either: ">=6.1.0 <7.0.0" + - exceptions: ">=6.1.0 <7.0.0" + - foreign-object: ">=4.1.0 <5.0.0" + - maybe: ">=6.0.0 <7.0.0" + - node-buffer: ">=9.0.0 <10.0.0" + - node-child-process: ">=11.1.0 <12.0.0" + - node-execa: ">=5.0.0 <6.0.0" + - node-fs: ">=9.2.0 <10.0.0" + - node-path: ">=5.0.0 <6.0.0" + - node-process: ">=11.2.0 <12.0.0" + - numbers: ">=9.0.1 <10.0.0" + - prelude: ">=6.0.1 <7.0.0" + - strings: ">=6.0.1 <7.0.0" diff --git a/script/GenerateDefaultOperatorsModule.js b/generate-default-operators/src/GenerateDefaultOperatorsModule.js similarity index 100% rename from script/GenerateDefaultOperatorsModule.js rename to generate-default-operators/src/GenerateDefaultOperatorsModule.js diff --git a/generate-default-operators/src/GenerateDefaultOperatorsModule.purs b/generate-default-operators/src/GenerateDefaultOperatorsModule.purs new file mode 100644 index 0000000..7b765d2 --- /dev/null +++ b/generate-default-operators/src/GenerateDefaultOperatorsModule.purs @@ -0,0 +1,140 @@ +module GenerateDefaultOperatorsModule where + +import Prelude + +import Data.Argonaut.Core (Json) +import Data.Argonaut.Decode as Data.Argonaut.Decode +import Data.Array (foldMap, mapWithIndex) +import Data.Array as Array +import Data.Either (Either(..), either) +import Data.Maybe (Maybe(..)) +import Data.Number (infinity) +import Data.String (Pattern(..)) +import Data.String as Str +import Data.String as String +import Data.String.Regex as Regex +import Data.String.Regex.Flags (noFlags) +import Data.String.Regex.Unsafe (unsafeRegex) +import Effect (Effect) +import Effect.Aff (Aff, error, runAff_, throwError) +import Effect.Class (liftEffect) +import Effect.Class.Console as Console +import Effect.Exception (throwException) +import Foreign.Object (Object) +import Foreign.Object as Foreign.Object +import Node.Buffer as Buffer +import Node.ChildProcess as ChildProcess +import Node.ChildProcess as Exec +import Node.ChildProcess.Types as Node.ChildProcess.Types +import Node.Encoding (Encoding(..)) +import Node.FS.Aff (readdir, stat, writeTextFile) +import Node.FS.Stats as FS +import Node.Library.Execa as Node.Library.Execa +import Node.Path (FilePath) +import Node.Path as Path +import Node.Process as Node.Process + +foreign import tmpdir :: String -> Effect String + +main :: Effect Unit +main = runAff_ (either throwException mempty) do + cwdPath <- liftEffect Node.Process.cwd + tmpPath <- liftEffect $ tmpdir "purs-tidy-generate-default-operators-" + liftEffect $ Console.log $ "Working in " <> tmpPath + + writeTextFile UTF8 (Path.concat [ tmpPath, "spago.yaml" ]) defaultSpagoYaml + writeTextFile UTF8 (Path.concat [ tmpPath, "package.json" ]) defaultPackageJson + liftEffect $ Console.log $ "running 'npm install'" + _ <- liftEffect $ ChildProcess.execSync' "npm install" (_ { cwd = Just tmpPath }) + + liftEffect $ Console.log $ "running 'spago ls packages --json'" + s <- liftEffect $ Buffer.toString UTF8 =<< Exec.execSync' "spago ls packages --json" (_ { cwd = Just tmpPath }) + + packages <- case Data.Argonaut.Decode.decodeJson =<< Data.Argonaut.Decode.parseJson s of + Left err -> throwError $ error $ Data.Argonaut.Decode.printJsonDecodeError err + Right (object :: Object Json) -> pure $ Foreign.Object.keys object + + liftEffect $ Console.log $ "running 'spago install " <> Str.joinWith " " packages <> "'" + _ <- liftEffect $ Exec.execSync' ("spago install " <> Str.joinWith " " packages) (_ { cwd = Just tmpPath }) + + pursFiles <- getPursFiles tmpPath + + let genCmdFile = Path.concat [ cwdPath, "cli", "index.js" ] + let genCmdArgs = [ "generate-operators" ] <> pursFiles + + liftEffect $ Console.log $ "running " <> Str.joinWith " " ([ genCmdFile, "..."]) <> "\n" + -- liftEffect $ Console.log $ "running " <> Str.joinWith " " ([ genCmdFile ] <> genCmdArgs) <> "\n" + + genCmdResult <- liftEffect $ Node.Library.Execa.execaSync genCmdFile genCmdArgs + ( _ + { cwd = Just tmpPath + , maxBuffer = Just infinity -- The Nothing means 100MB, will result in empty stdout (but Nothing should mean Infinity https://github.com/JordanMartinez/purescript-node-execa/issues/20) + } + ) + output <- + case genCmdResult.exit of + Node.ChildProcess.Types.Normally 0 -> pure genCmdResult.stdout + _ -> liftEffect do + Console.error genCmdResult.message + Node.Process.exit' 1 + + -- liftEffect $ Console.log "output:" + -- liftEffect $ Console.log output + + let + header = + [ "--------------------------------------------" + , "-- This module is generated. DO NOT EDIT! --" + , "--------------------------------------------" + , "module Tidy.Operators.Defaults where" + , "" + , "defaultOperators :: Array String" + , "defaultOperators =" + ] + + lines = output # String.trim # String.split (Pattern "\n") # mapWithIndex \ix line -> + if ix == 0 then + " [ \"\"\"" <> line <> "\"\"\"" + else + " , \"\"\"" <> line <> "\"\"\"" + + footer = + [ " ]" + , "" + ] + + contents = + Array.intercalate "\n" (header <> lines <> footer) + + writeTextFile UTF8 (Path.concat [ cwdPath, "lib", "src", "Tidy", "Operators", "Defaults.purs" ]) contents + +getPursFiles :: FilePath -> Aff (Array FilePath) +getPursFiles tmpPath = do + s <- liftEffect $ Buffer.toString UTF8 =<< Exec.execSync' ("spago sources --json --quiet") (_ { cwd = Just tmpPath }) + case Data.Argonaut.Decode.decodeJson =<< Data.Argonaut.Decode.parseJson s of + Left err -> throwError $ error $ Data.Argonaut.Decode.printJsonDecodeError err + Right globs -> pure globs + +defaultPackageJson :: String +defaultPackageJson = + """ + { + "private": true, + "type": "module", + "dependencies": { + "purescript": "latest", + "spago": "next" + } + } + """ + +defaultSpagoYaml :: String +defaultSpagoYaml = Array.intercalate "\n" + [ "package:" + , " name: test-parser" + , " dependencies: []" + , "workspace:" + , " package_set:" + , " registry: 60.5.1" + , " extra_packages: {}" + ] diff --git a/lib/spago.yaml b/lib/spago.yaml new file mode 100644 index 0000000..e0ab463 --- /dev/null +++ b/lib/spago.yaml @@ -0,0 +1,52 @@ +package: + name: tidy + publish: + license: MIT + version: 0.11.0 + location: + githubOwner: natefaubion + githubRepo: purescript-tidy + exclude: + - "test/snapshots/**/*" + dependencies: + - argonaut-codecs: ">=9.1.0 <10.0.0" + - argonaut-core: ">=7.0.0 <8.0.0" + - argparse-basic: ">=2.0.0 <3.0.0" + - arrays: ">=7.3.0 <8.0.0" + - control: ">=6.0.0 <7.0.0" + - dodo-printer: "*" + - either: ">=6.1.0 <7.0.0" + - foldable-traversable: ">=6.0.0 <7.0.0" + - language-cst-parser: "*" + - lists: ">=7.0.0 <8.0.0" + - maybe: ">=6.0.0 <7.0.0" + - newtype: ">=5.0.0 <6.0.0" + - ordered-collections: ">=3.2.0 <4.0.0" + - partial: ">=4.0.0 <5.0.0" + - prelude: ">=6.0.1 <7.0.0" + - strings: ">=6.0.1 <7.0.0" + - transformers: ">=6.1.0 <7.0.0" + - tuples: ">=7.0.0 <8.0.0" + test: + main: Test.Main + # execArgs: + # - "--exclude-files" + # - "snapshots/*" # doesnt work + # - "--exclude-files" + # - "test/snapshots/*" # doesnt work + # - "--exclude-files" + # - "lib/test/snapshots/*" # doesnt work, so I have renamed purs files to inputpurs + dependencies: + - aff + - ansi + - bifunctors + - console + - effect + - exceptions + - node-buffer + - node-child-process + - node-fs + - node-glob-basic + - node-path + - node-process + - posix-types diff --git a/src/Tidy.purs b/lib/src/Tidy.purs similarity index 100% rename from src/Tidy.purs rename to lib/src/Tidy.purs diff --git a/src/Tidy/Doc.purs b/lib/src/Tidy/Doc.purs similarity index 100% rename from src/Tidy/Doc.purs rename to lib/src/Tidy/Doc.purs diff --git a/bin/Bin/FormatOptions.purs b/lib/src/Tidy/FormatOptions.purs similarity index 99% rename from bin/Bin/FormatOptions.purs rename to lib/src/Tidy/FormatOptions.purs index 4891496..6e0752c 100644 --- a/bin/Bin/FormatOptions.purs +++ b/lib/src/Tidy/FormatOptions.purs @@ -1,4 +1,4 @@ -module Bin.FormatOptions where +module Tidy.FormatOptions where import Prelude diff --git a/src/Tidy/Hang.purs b/lib/src/Tidy/Hang.purs similarity index 100% rename from src/Tidy/Hang.purs rename to lib/src/Tidy/Hang.purs diff --git a/src/Tidy/Operators.purs b/lib/src/Tidy/Operators.purs similarity index 100% rename from src/Tidy/Operators.purs rename to lib/src/Tidy/Operators.purs diff --git a/lib/src/Tidy/Operators/Defaults.purs b/lib/src/Tidy/Operators/Defaults.purs new file mode 100644 index 0000000..946daa5 --- /dev/null +++ b/lib/src/Tidy/Operators/Defaults.purs @@ -0,0 +1,928 @@ +-------------------------------------------- +-- This module is generated. DO NOT EDIT! -- +-------------------------------------------- +module Tidy.Operators.Defaults where + +defaultOperators :: Array String +defaultOperators = + [ """ApplicativePhases.(:) 6""" + , """Beta.DOM.(++) 0""" + , """Beta.DOM.Internal.(++) 0""" + , """Bookhound.ParserCombinators.(->>-) 6""" + , """Bookhound.ParserCombinators.(<#>) 6""" + , """Bookhound.ParserCombinators.(<&>) 6""" + , """Bookhound.ParserCombinators.() 6""" + , """Bookhound.ParserCombinators.(<:>) 6""" + , """Bookhound.ParserCombinators.() 6""" + , """Bookhound.ParserCombinators.(|*) 0""" + , """Bookhound.ParserCombinators.(|+) 0""" + , """Bookhound.ParserCombinators.(|++) 0""" + , """Bookhound.ParserCombinators.(|?) 0""" + , """Bookhound.ParserCombinators.(||*) 0""" + , """Bookhound.ParserCombinators.(||+) 0""" + , """Bookhound.ParserCombinators.(||++) 0""" + , """Bookhound.ParserCombinators.List.(|*) 0""" + , """Bookhound.ParserCombinators.List.(|+) 0""" + , """Bookhound.ParserCombinators.List.(|++) 0""" + , """Bookhound.ParserCombinators.List.(|?) 0""" + , """Bookhound.Utils.Array.(..) 8""" + , """CSS.(!) 9""" + , """CSS.($=) 6""" + , """CSS.(&) 6""" + , """CSS.(*=) 6""" + , """CSS.(*@) 7""" + , """CSS.(?) 5""" + , """CSS.(@*) 7""" + , """CSS.(@+@) 6""" + , """CSS.(@-@) 6""" + , """CSS.(@/) 7""" + , """CSS.(@=) 6""" + , """CSS.(^=) 6""" + , """CSS.(|*) 6""" + , """CSS.(|+) 6""" + , """CSS.(|=) 6""" + , """CSS.(|>) 6""" + , """CSS.(~=) 6""" + , """CSS.Property.(!) 9""" + , """CSS.Selector.($=) 6""" + , """CSS.Selector.(&) 6""" + , """CSS.Selector.(*=) 6""" + , """CSS.Selector.(@=) 6""" + , """CSS.Selector.(^=) 6""" + , """CSS.Selector.(|*) 6""" + , """CSS.Selector.(|+) 6""" + , """CSS.Selector.(|=) 6""" + , """CSS.Selector.(|>) 6""" + , """CSS.Selector.(~=) 6""" + , """CSS.Size.(*@) 7""" + , """CSS.Size.(@*) 7""" + , """CSS.Size.(@+@) 6""" + , """CSS.Size.(@-@) 6""" + , """CSS.Size.(@/) 7""" + , """CSS.Stylesheet.(?) 5""" + , """CallByName.Alt.(<|>) 3""" + , """CallByName.Syntax.(\\) 10""" + , """CallByName.Syntax.(~) 10""" + , """Choku.(&:) 7""" + , """Choku.(&|) 7""" + , """Choku.(:&) 7""" + , """Choku.(|&) 7""" + , """Choku.Common.(&|) 7""" + , """Choku.Common.(|&) 7""" + , """Choku.Stderr.(&:) 7""" + , """Choku.Stderr.(:&) 7""" + , """Choku.Stderr.Aff.(&:) 7""" + , """Choku.Stderr.Aff.(:&) 7""" + , """Choku.Stdout.(&:) 7""" + , """Choku.Stdout.(:&) 7""" + , """Choku.Stdout.Aff.(&:) 7""" + , """Choku.Stdout.Aff.(:&) 7""" + , """ClassNames.(^) type 6""" + , """ClassNames.(^) 6""" + , """Classes.HasUuid.(!==) 4""" + , """Classes.HasUuid.(===) 4""" + , """Classless.(~) type 6""" + , """Classless.(~) 6""" + , """Control.Alt.($>) 4""" + , """Control.Alt.(<#>) 1""" + , """Control.Alt.(<$) 4""" + , """Control.Alt.(<$>) 4""" + , """Control.Alt.(<@>) 4""" + , """Control.Alt.(<|>) 3""" + , """Control.Alternative.($>) 4""" + , """Control.Alternative.(*>) 4""" + , """Control.Alternative.(<#>) 1""" + , """Control.Alternative.(<$) 4""" + , """Control.Alternative.(<$>) 4""" + , """Control.Alternative.(<*) 4""" + , """Control.Alternative.(<*>) 4""" + , """Control.Alternative.(<@>) 4""" + , """Control.Alternative.(<|>) 3""" + , """Control.Applicative.($>) 4""" + , """Control.Applicative.(*>) 4""" + , """Control.Applicative.(<#>) 1""" + , """Control.Applicative.(<$) 4""" + , """Control.Applicative.(<$>) 4""" + , """Control.Applicative.(<*) 4""" + , """Control.Applicative.(<*>) 4""" + , """Control.Applicative.(<@>) 4""" + , """Control.Applicative.Indexed.(:$>) 4""" + , """Control.Applicative.Indexed.(:*>) 4""" + , """Control.Applicative.Indexed.(<$:) 4""" + , """Control.Applicative.Indexed.(<*:) 4""" + , """Control.Apply.($>) 4""" + , """Control.Apply.(*>) 4""" + , """Control.Apply.(<#>) 1""" + , """Control.Apply.(<$) 4""" + , """Control.Apply.(<$>) 4""" + , """Control.Apply.(<*) 4""" + , """Control.Apply.(<*>) 4""" + , """Control.Apply.(<@>) 4""" + , """Control.Apply.Indexed.(:$>) 4""" + , """Control.Apply.Indexed.(:*>) 4""" + , """Control.Apply.Indexed.(<$:) 4""" + , """Control.Apply.Indexed.(<*:) 4""" + , """Control.Biapply.(*>>) 4""" + , """Control.Biapply.(<<$>>) 4""" + , """Control.Biapply.(<<*) 4""" + , """Control.Biapply.(<<*>>) 4""" + , """Control.Bind.($>) 4""" + , """Control.Bind.(*>) 4""" + , """Control.Bind.(<#>) 1""" + , """Control.Bind.(<$) 4""" + , """Control.Bind.(<$>) 4""" + , """Control.Bind.(<*) 4""" + , """Control.Bind.(<*>) 4""" + , """Control.Bind.(<=<) 1""" + , """Control.Bind.(<@>) 4""" + , """Control.Bind.(=<<) 1""" + , """Control.Bind.(>=>) 1""" + , """Control.Bind.(>>=) 1""" + , """Control.Bind.Indexed.(:$>) 4""" + , """Control.Bind.Indexed.(:*>) 4""" + , """Control.Bind.Indexed.(:>=>) 1""" + , """Control.Bind.Indexed.(:>>=) 1""" + , """Control.Bind.Indexed.(<$:) 4""" + , """Control.Bind.Indexed.(<*:) 4""" + , """Control.Bind.Indexed.(<=<:) 1""" + , """Control.Bind.Indexed.(=<<:) 1""" + , """Control.Category.(<<<) 9""" + , """Control.Category.(>>>) 9""" + , """Control.Cofree.(:<) 5""" + , """Control.Comonad.($>) 4""" + , """Control.Comonad.(<#>) 1""" + , """Control.Comonad.(<$) 4""" + , """Control.Comonad.(<$>) 4""" + , """Control.Comonad.(<<=) 1""" + , """Control.Comonad.(<@>) 4""" + , """Control.Comonad.(=<=) 1""" + , """Control.Comonad.(=>=) 1""" + , """Control.Comonad.(=>>) 1""" + , """Control.Comonad.Cofree.(:<) 5""" + , """Control.Coroutine.($$) 2""" + , """Control.Coroutine.($~) 2""" + , """Control.Coroutine.(/\) 3""" + , """Control.Coroutine.(\/) 3""" + , """Control.Coroutine.(~$) 2""" + , """Control.Coroutine.(~~) 2""" + , """Control.Extend.($>) 4""" + , """Control.Extend.(<#>) 1""" + , """Control.Extend.(<$) 4""" + , """Control.Extend.(<$>) 4""" + , """Control.Extend.(<<=) 1""" + , """Control.Extend.(<@>) 4""" + , """Control.Extend.(=<=) 1""" + , """Control.Extend.(=>=) 1""" + , """Control.Extend.(=>>) 1""" + , """Control.Monad.($>) 4""" + , """Control.Monad.(*>) 4""" + , """Control.Monad.(<#>) 1""" + , """Control.Monad.(<$) 4""" + , """Control.Monad.(<$>) 4""" + , """Control.Monad.(<*) 4""" + , """Control.Monad.(<*>) 4""" + , """Control.Monad.(<=<) 1""" + , """Control.Monad.(<@>) 4""" + , """Control.Monad.(=<<) 1""" + , """Control.Monad.(>=>) 1""" + , """Control.Monad.(>>=) 1""" + , """Control.Monad.Indexed.(:$>) 4""" + , """Control.Monad.Indexed.(:*>) 4""" + , """Control.Monad.Indexed.(:>=>) 1""" + , """Control.Monad.Indexed.(:>>=) 1""" + , """Control.Monad.Indexed.(<$:) 4""" + , """Control.Monad.Indexed.(<*:) 4""" + , """Control.Monad.Indexed.(<=<:) 1""" + , """Control.Monad.Indexed.(=<<:) 1""" + , """Control.Monad.Morph.(<|<) 2""" + , """Control.Monad.Morph.(=<|) 2""" + , """Control.Monad.Morph.(>|>) 2""" + , """Control.Monad.Morph.(|>=) 2""" + , """Control.MonadPlus.($>) 4""" + , """Control.MonadPlus.(*>) 4""" + , """Control.MonadPlus.(<#>) 1""" + , """Control.MonadPlus.(<$) 4""" + , """Control.MonadPlus.(<$>) 4""" + , """Control.MonadPlus.(<*) 4""" + , """Control.MonadPlus.(<*>) 4""" + , """Control.MonadPlus.(<=<) 1""" + , """Control.MonadPlus.(<@>) 4""" + , """Control.MonadPlus.(<|>) 3""" + , """Control.MonadPlus.(=<<) 1""" + , """Control.MonadPlus.(>=>) 1""" + , """Control.MonadPlus.(>>=) 1""" + , """Control.Plus.($>) 4""" + , """Control.Plus.(<#>) 1""" + , """Control.Plus.(<$) 4""" + , """Control.Plus.(<$>) 4""" + , """Control.Plus.(<@>) 4""" + , """Control.Plus.(<|>) 3""" + , """Control.Select.(<&&>) 3""" + , """Control.Select.(<*?) 4""" + , """Control.Select.(<||>) 2""" + , """Control.Semigroupoid.(<<<) 9""" + , """Control.Semigroupoid.(>>>) 9""" + , """Data.Argonaut.(.!=) 6""" + , """Data.Argonaut.(.:) 7""" + , """Data.Argonaut.(.:!) 7""" + , """Data.Argonaut.(.:?) 7""" + , """Data.Argonaut.(:=) 7""" + , """Data.Argonaut.(:=?) 7""" + , """Data.Argonaut.(~>) 6""" + , """Data.Argonaut.(~>?) 6""" + , """Data.Argonaut.Decode.(.!=) 6""" + , """Data.Argonaut.Decode.(.:) 7""" + , """Data.Argonaut.Decode.(.:!) 7""" + , """Data.Argonaut.Decode.(.:?) 7""" + , """Data.Argonaut.Decode.Combinators.(.!=) 6""" + , """Data.Argonaut.Decode.Combinators.(.:) 7""" + , """Data.Argonaut.Decode.Combinators.(.:!) 7""" + , """Data.Argonaut.Decode.Combinators.(.:?) 7""" + , """Data.Argonaut.Encode.(:=) 7""" + , """Data.Argonaut.Encode.(:=?) 7""" + , """Data.Argonaut.Encode.(~>) 6""" + , """Data.Argonaut.Encode.(~>?) 6""" + , """Data.Argonaut.Encode.Combinators.(:=) 7""" + , """Data.Argonaut.Encode.Combinators.(:=?) 7""" + , """Data.Argonaut.Encode.Combinators.(~>) 6""" + , """Data.Argonaut.Encode.Combinators.(~>?) 6""" + , """Data.ArgsRotater.(<<^) 9""" + , """Data.ArgsRotater.(<^) 9""" + , """Data.Array.(!!) 8""" + , """Data.Array.(..) 8""" + , """Data.Array.(:) 6""" + , """Data.Array.(\\) 5""" + , """Data.Array.Builder.(+>) 6""" + , """Data.Array.Builder.(:>) 6""" + , """Data.Array.Builder.(<+) 7""" + , """Data.Array.Builder.(<+>) 5""" + , """Data.Array.Builder.(<:) 7""" + , """Data.Array.NonEmpty.(!!) 8""" + , """Data.Array.NonEmpty.(..) 8""" + , """Data.Array.NonEmpty.(:) 6""" + , """Data.Array.NonEmpty.(\\) 5""" + , """Data.ArrayBuffer.Builder.(<>>) 5""" + , """Data.ArrayBuffer.Builder.Internal.(<>>) 5""" + , """Data.ArrayBuffer.Typed.(!) 3""" + , """Data.Bifunctor.Monoidal.Specialized.(&&) 5""" + , """Data.Bifunctor.Monoidal.Specialized.(&|) 5""" + , """Data.Bifunctor.Monoidal.Specialized.(|&) 5""" + , """Data.Bifunctor.Monoidal.Specialized.(||) 4""" + , """Data.BooleanAlgebra.(&&) 3""" + , """Data.BooleanAlgebra.(||) 2""" + , """Data.Bounded.(<) 4""" + , """Data.Bounded.(<=) 4""" + , """Data.Bounded.(>) 4""" + , """Data.Bounded.(>=) 4""" + , """Data.Codec.(<~<) 8""" + , """Data.Codec.(>~>) 8""" + , """Data.Codec.(~) 5""" + , """Data.Codec.Argonaut.(<~<) 8""" + , """Data.Codec.Argonaut.(>~>) 8""" + , """Data.Codec.Argonaut.(~) 5""" + , """Data.Codec.Argonaut.Common.(<~<) 8""" + , """Data.Codec.Argonaut.Common.(>~>) 8""" + , """Data.Codec.Argonaut.Common.(~) 5""" + , """Data.Codec.Argonaut.Compat.(<~<) 8""" + , """Data.Codec.Argonaut.Compat.(>~>) 8""" + , """Data.Codec.Argonaut.Compat.(~) 5""" + , """Data.Codec.JSON.(<~<) 8""" + , """Data.Codec.JSON.(>~>) 8""" + , """Data.Codec.JSON.(~) 5""" + , """Data.Codec.JSON.Common.(<~<) 8""" + , """Data.Codec.JSON.Common.(>~>) 8""" + , """Data.Codec.JSON.Common.(~) 5""" + , """Data.CommutativeRing.(*) 7""" + , """Data.CommutativeRing.(+) 6""" + , """Data.CommutativeRing.(-) 6""" + , """Data.DivisionRing.(*) 7""" + , """Data.DivisionRing.(+) 6""" + , """Data.DivisionRing.(-) 6""" + , """Data.Either.Nested.(\/) type 6""" + , """Data.Either.Nested.(\/) 6""" + , """Data.Eq.(/=) 4""" + , """Data.Eq.(==) 4""" + , """Data.EtaConversionTransformer.(:>>) 8""" + , """Data.EtaConversionTransformer.(<<:) 9""" + , """Data.EtaConversionTransformer.(<<|) 9""" + , """Data.EtaConversionTransformer.(|>>) 8""" + , """Data.EuclideanRing.(*) 7""" + , """Data.EuclideanRing.(+) 6""" + , """Data.EuclideanRing.(-) 6""" + , """Data.EuclideanRing.(/) 7""" + , """Data.Euterpea.Music.(:+:) 5""" + , """Data.Euterpea.Music.(:=:) 5""" + , """Data.Euterpea.Transform.(/=:) 5""" + , """Data.FastVect.FastVect.(:) 6""" + , """Data.FastVect.MinLenVect.(:) 6""" + , """Data.FastVect.Sparse.Read.(:) 6""" + , """Data.FastVect.Sparse.Write.(:) 6""" + , """Data.Field.(*) 7""" + , """Data.Field.(+) 6""" + , """Data.Field.(-) 6""" + , """Data.Field.(/) 7""" + , """Data.Function.(#) 1""" + , """Data.Function.($) 0""" + , """Data.Function.(<<<) 9""" + , """Data.Function.(>>>) 9""" + , """Data.Functor.($>) 4""" + , """Data.Functor.(<#>) 1""" + , """Data.Functor.(<$) 4""" + , """Data.Functor.(<$>) 4""" + , """Data.Functor.(<@>) 4""" + , """Data.Functor.Contravariant.(>#<) 4""" + , """Data.Functor.Contravariant.(>$<) 4""" + , """Data.Functor.Coproduct.Nested.(<\/>) type 6""" + , """Data.Functor.Coproduct.Nested.(<\/>) 6""" + , """Data.Functor.Indexed.(:$>) 4""" + , """Data.Functor.Indexed.(<$:) 4""" + , """Data.Functor.Nested.(<##>) 1""" + , """Data.Functor.Nested.(<$$>) 4""" + , """Data.Functor.Pairing.(⋈) type 4""" + , """Data.Functor.Product.Nested.() type 6""" + , """Data.Functor.Product.Nested.() 6""" + , """Data.Geometria.(<+|) 6""" + , """Data.Geometria.Types.(<+|) 6""" + , """Data.Group.Action.(+>) 6""" + , """Data.Group.Action.(<+) 6""" + , """Data.HeytingAlgebra.(&&) 3""" + , """Data.HeytingAlgebra.(||) 2""" + , """Data.HugeNum.(^) 8""" + , """Data.Int.Bits.(.&.) 10""" + , """Data.Int.Bits.(.^.) 10""" + , """Data.Int.Bits.(.|.) 10""" + , """Data.Int64.(.&.) 10""" + , """Data.Int64.(.^.) 10""" + , """Data.Int64.(.|.) 10""" + , """Data.Leibniz.(~) type 4""" + , """Data.Lens.(%=) 4""" + , """Data.Lens.(%~) 4""" + , """Data.Lens.(&&&) 3""" + , """Data.Lens.(&&=) 4""" + , """Data.Lens.(&&~) 4""" + , """Data.Lens.(***) 3""" + , """Data.Lens.(*=) 4""" + , """Data.Lens.(*~) 4""" + , """Data.Lens.(+++) 2""" + , """Data.Lens.(+=) 4""" + , """Data.Lens.(+~) 4""" + , """Data.Lens.(-=) 4""" + , """Data.Lens.(-~) 4""" + , """Data.Lens.(.=) 4""" + , """Data.Lens.(.~) 4""" + , """Data.Lens.(//=) 4""" + , """Data.Lens.(//~) 4""" + , """Data.Lens.(<>=) 4""" + , """Data.Lens.(<>~) 4""" + , """Data.Lens.(?=) 4""" + , """Data.Lens.(?~) 4""" + , """Data.Lens.(^.) 8""" + , """Data.Lens.(^..) 8""" + , """Data.Lens.(^?) 8""" + , """Data.Lens.(||=) 4""" + , """Data.Lens.(|||) 2""" + , """Data.Lens.(||~) 4""" + , """Data.Lens.Common.(&&&) 3""" + , """Data.Lens.Common.(***) 3""" + , """Data.Lens.Common.(+++) 2""" + , """Data.Lens.Common.(|||) 2""" + , """Data.Lens.Fold.(^..) 8""" + , """Data.Lens.Fold.(^?) 8""" + , """Data.Lens.Fold.Partial.(^?!) 8""" + , """Data.Lens.Fold.Partial.(^@?!) 8""" + , """Data.Lens.Getter.(^.) 8""" + , """Data.Lens.Lens.Tuple.(&&&) 3""" + , """Data.Lens.Lens.Tuple.(***) 3""" + , """Data.Lens.Prism.Either.(+++) 2""" + , """Data.Lens.Prism.Either.(|||) 2""" + , """Data.Lens.Setter.(%=) 4""" + , """Data.Lens.Setter.(%~) 4""" + , """Data.Lens.Setter.(&&=) 4""" + , """Data.Lens.Setter.(&&~) 4""" + , """Data.Lens.Setter.(*=) 4""" + , """Data.Lens.Setter.(*~) 4""" + , """Data.Lens.Setter.(+=) 4""" + , """Data.Lens.Setter.(+~) 4""" + , """Data.Lens.Setter.(-=) 4""" + , """Data.Lens.Setter.(-~) 4""" + , """Data.Lens.Setter.(.=) 4""" + , """Data.Lens.Setter.(.~) 4""" + , """Data.Lens.Setter.(//=) 4""" + , """Data.Lens.Setter.(//~) 4""" + , """Data.Lens.Setter.(<>=) 4""" + , """Data.Lens.Setter.(<>~) 4""" + , """Data.Lens.Setter.(?=) 4""" + , """Data.Lens.Setter.(?~) 4""" + , """Data.Lens.Setter.(||=) 4""" + , """Data.Lens.Setter.(||~) 4""" + , """Data.List.(!!) 8""" + , """Data.List.(..) 8""" + , """Data.List.(:) 6""" + , """Data.List.(\\) 5""" + , """Data.List.Lazy.(!!) 8""" + , """Data.List.Lazy.(..) 8""" + , """Data.List.Lazy.(:) 6""" + , """Data.List.Lazy.(\\) 5""" + , """Data.List.Lazy.NonEmpty.(:) 6""" + , """Data.List.Lazy.Types.(:) 6""" + , """Data.List.NonEmpty.(!!) 8""" + , """Data.List.NonEmpty.(:) 6""" + , """Data.List.Types.(:) 6""" + , """Data.Matrix.(\\) 3""" + , """Data.Matrix.Operations.(&) 4""" + , """Data.Matrix.Operations.(⇥) 5""" + , """Data.Matrix.Operations.(⤓) 4""" + , """Data.Monoid.(<>) 5""" + , """Data.Monoid.Coproduct.(:+:) type 5""" + , """Data.Monoid.MList.(:::) type 5""" + , """Data.Monoid.MList.(*:) 5""" + , """Data.Natural.(+-) 6""" + , """Data.NaturalTransformation.(~>) type 4""" + , """Data.NonEmpty.(:|) 5""" + , """Data.Number.(%) 7""" + , """Data.Number.Approximate.(~=) 4""" + , """Data.Number.Approximate.(≅) 4""" + , """Data.Number.Approximate.(≇) 4""" + , """Data.Number.Dual.(.:.) 6""" + , """Data.Options.(:=) 6""" + , """Data.Ord.(<) 4""" + , """Data.Ord.(<=) 4""" + , """Data.Ord.(>) 4""" + , """Data.Ord.(>=) 4""" + , """Data.Pair.(~) 6""" + , """Data.Profunctor.Choice.(+++) 2""" + , """Data.Profunctor.Choice.(|||) 2""" + , """Data.Profunctor.Strong.(&&&) 3""" + , """Data.Profunctor.Strong.(***) 3""" + , """Data.Quantity.(.*) 5""" + , """Data.Quantity.(⊕) 3""" + , """Data.Quantity.(⊖) 3""" + , """Data.Quantity.(⊗) 4""" + , """Data.Quantity.(⊘) 4""" + , """Data.Ratio.(%) 7""" + , """Data.Rational.(%) 7""" + , """Data.Ring.(*) 7""" + , """Data.Ring.(+) 6""" + , """Data.Ring.(-) 6""" + , """Data.Ring.Module.(*^) 7""" + , """Data.Ring.Module.(+^) 6""" + , """Data.Ring.Module.(-^) 6""" + , """Data.Ring.Module.(^*) 7""" + , """Data.Ring.Module.(^+) 6""" + , """Data.Ring.Module.(^-) 6""" + , """Data.Semigroup.(<>) 5""" + , """Data.Semiring.(*) 7""" + , """Data.Semiring.(+) 6""" + , """Data.Set.Ordered.(!!) 8""" + , """Data.Set.Ordered.(..) 8""" + , """Data.Set.Ordered.(:) 6""" + , """Data.Set.Ordered.(\\) 5""" + , """Data.Sparse.Matrix.(!!) 8""" + , """Data.Sparse.Matrix.(~) 7""" + , """Data.Sparse.Matrix.(~*) 7""" + , """Data.Sparse.Matrix.(~+) 7""" + , """Data.Sparse.Polynomial.(!) 8""" + , """Data.Sparse.Polynomial.(.-) 5""" + , """Data.Sparse.Polynomial.(:.) 5""" + , """Data.Sparse.Polynomial.(^) 8""" + , """Data.Tuple.Nested.(/\) type 6""" + , """Data.Tuple.Nested.(/\) 6""" + , """Data.TwoOrMore.(!!) 8""" + , """Data.Typelevel.Num.(:*) type 6""" + , """Data.Typelevel.Num.(*) 7""" + , """Data.Typelevel.Num.(+) 6""" + , """Data.Typelevel.Num.(-) 6""" + , """Data.Typelevel.Num.(<) 4""" + , """Data.Typelevel.Num.(<=) 4""" + , """Data.Typelevel.Num.(==) 4""" + , """Data.Typelevel.Num.(>) 4""" + , """Data.Typelevel.Num.(>=) 4""" + , """Data.Typelevel.Num.Ops.(*) 7""" + , """Data.Typelevel.Num.Ops.(+) 6""" + , """Data.Typelevel.Num.Ops.(-) 6""" + , """Data.Typelevel.Num.Ops.(<) 4""" + , """Data.Typelevel.Num.Ops.(<=) 4""" + , """Data.Typelevel.Num.Ops.(==) 4""" + , """Data.Typelevel.Num.Ops.(>) 4""" + , """Data.Typelevel.Num.Ops.(>=) 4""" + , """Data.Typelevel.Num.Reps.(:*) type 6""" + , """Data.UInt.(.&.) 10""" + , """Data.UInt.(.^.) 10""" + , """Data.UInt.(.|.) 10""" + , """Data.UInt64.(.&.) 10""" + , """Data.UInt64.(.^.) 10""" + , """Data.UInt64.(.|.) 10""" + , """Data.URL.(#) 3""" + , """Data.URL.(&) 3""" + , """Data.URL.(/) 3""" + , """Data.URL.(?) 3""" + , """Data.Undefined.NoProblem.(:::) type 6""" + , """Data.Undefined.NoProblem.(<>) type 2""" + , """Data.Undefined.NoProblem.(|>) type 1""" + , """Data.Undefined.NoProblem.(!) 9""" + , """Data.Undefined.NoProblem.(?) 9""" + , """Data.Units.(./) 6""" + , """Data.Units.(.^) 9""" + , """Data.Vec.(!!) 8""" + , """Data.Vec.(+>) 5""" + , """Data.Vector.Polymorphic.(><) 2""" + , """Data.Vector.Polymorphic.Types.(><) 2""" + , """Data.Vector2.(//) 7""" + , """Data.Vector3.(//) 7""" + , """Data.VectorField.(*.) 8""" + , """Data.VectorField.(.*) 8""" + , """Deku.Attribute.(!:=) 5""" + , """Deku.Attribute.(:=) 5""" + , """Deku.Attribute.(<:=>) 5""" + , """Deku.Attribute.(?:=) 5""" + , """Deku.Control.(<#~>) 1""" + , """Deku.Control.(<$~>) 4""" + , """Deku.Pursx.(~!~) 5""" + , """Deku.Pursx.(~~) 5""" + , """Dissect.Generic.(:*:) type 5""" + , """Dissect.Generic.(:+:) type 4""" + , """Dissect.Generic.(:*:) 5""" + , """Droplet.Language.(.&&.) 3""" + , """Droplet.Language.(...) 7""" + , """Droplet.Language.(.<.) 4""" + , """Droplet.Language.(.<=.) 4""" + , """Droplet.Language.(.<>.) 4""" + , """Droplet.Language.(.=.) 4""" + , """Droplet.Language.(.>.) 4""" + , """Droplet.Language.(.>=.) 4""" + , """Droplet.Language.(.||.) 2""" + , """Droplet.Language.Internal.Condition.(.&&.) 3""" + , """Droplet.Language.Internal.Condition.(.<.) 4""" + , """Droplet.Language.Internal.Condition.(.<=.) 4""" + , """Droplet.Language.Internal.Condition.(.<>.) 4""" + , """Droplet.Language.Internal.Condition.(.=.) 4""" + , """Droplet.Language.Internal.Condition.(.>.) 4""" + , """Droplet.Language.Internal.Condition.(.>=.) 4""" + , """Droplet.Language.Internal.Condition.(.||.) 2""" + , """Droplet.Language.Internal.Definition.(...) 7""" + , """Elmish.(>) 1""" + , """Elmish.Hooks.(<>) type 6""" + , """Elmish.Hooks.(=/>) 1""" + , """Elmish.Hooks.(==>) 1""" + , """Elmish.Hooks.Type.(<>) type 6""" + , """Elmish.Hooks.Type.(=/>) 1""" + , """Elmish.Hooks.Type.(==>) 1""" + , """Elmish.Test.(##) 8""" + , """Elmish.Test.($$) 8""" + , """Elmish.Test.(>>) 8""" + , """Elmish.Test.Combinators.(##) 8""" + , """Elmish.Test.Combinators.($$) 8""" + , """Elmish.Test.Combinators.(>>) 8""" + , """ExpectInferred.(+) type 2""" + , """ExpectInferred.(^) type 1""" + , """FFI.Simple.(!-) 9""" + , """FFI.Simple.(!=) 9""" + , """FFI.Simple.(..) 9""" + , """FFI.Simple.(...) 4""" + , """FFI.Simple.(.=) 9""" + , """FFI.Simple.(.?) 9""" + , """FFI.Simple.Functions.(...) 4""" + , """FFI.Simple.Objects.(!-) 9""" + , """FFI.Simple.Objects.(!=) 9""" + , """FFI.Simple.Objects.(..) 9""" + , """FFI.Simple.Objects.(.=) 9""" + , """FFI.Simple.Objects.(.?) 9""" + , """FRP.Event.Class.(*|>) 4""" + , """FRP.Event.Class.(<**>) 4""" + , """FRP.Event.Class.(<**|>) 4""" + , """FRP.Event.Class.(<*|>) 4""" + , """FRP.Event.Class.(<|*) 4""" + , """FRP.Event.Class.(<|**>) 4""" + , """FRP.Event.Class.(<|*>) 4""" + , """Fallback.Fallback.(|>) 1""" + , """Flame.(:>) 6""" + , """Flame.Types.(:>) 6""" + , """Fmt.(#) type 1""" + , """Foreign.Index.(!) 9""" + , """HTTPurple.(<+>) type 0""" + , """HTTPurple.(!!) 8""" + , """HTTPurple.(!?) 8""" + , """HTTPurple.(!@) 8""" + , """HTTPurple.(/) 1""" + , """HTTPurple.(:=) 2""" + , """HTTPurple.(<+>) 3""" + , """HTTPurple.(?) 8""" + , """HTTPurple.(~) 0""" + , """HTTPurple.Lookup.(!!) 8""" + , """HTTPurple.Lookup.(!?) 8""" + , """HTTPurple.Lookup.(!@) 8""" + , """HTTPurple.Routes.(<+>) type 0""" + , """HTTPurple.Routes.(<+>) 3""" + , """Halogen.Helix.(<|) 4""" + , """Halogen.Helix.(|>) 4""" + , """Halogen.Helix.Middleware.(<|) 4""" + , """Halogen.Helix.Middleware.(|>) 4""" + , """Halogen.Hooks.(<>) type 1""" + , """Halogen.Hooks.Hook.(<>) type 1""" + , """Jarilo.Junction.(:<|>) type 8""" + , """Jarilo.Junction.(:=) type 9""" + , """Jarilo.Path.(:>) type 9""" + , """Jarilo.Query.(:?) type 9""" + , """Jelly.Prop.(:=) 0""" + , """Jelly.Prop.(@=) 0""" + , """Lumi.Components.($$$) 0""" + , """Morello.Morello.(|>) 9""" + , """Morello.Morello.(🌱) 8""" + , """Morello.Morello.(🌸) 8""" + , """Morello.Morello.(🍒) 8""" + , """Morello.Morello.Core.(|>) 9""" + , """Morello.Morello.Core.(🌱) 8""" + , """Morello.Morello.Core.(🌸) 8""" + , """Morello.Morello.Core.(🍒) 8""" + , """Options.Applicative.(<**>) 4""" + , """Options.Applicative.Help.(.$.) 5""" + , """Options.Applicative.Help.(<$$>) 5""" + , """Options.Applicative.Help.(<$>) 5""" + , """Options.Applicative.Help.(<+>) 6""" + , """Options.Applicative.Help.() 5""" + , """Options.Applicative.Help.() 5""" + , """Options.Applicative.Help.(<<+>>) 6""" + , """Options.Applicative.Help.(<>) 6""" + , """Options.Applicative.Help.Chunk.(<<+>>) 6""" + , """Options.Applicative.Help.Chunk.(<>) 6""" + , """Options.Applicative.Help.Pretty.(.$.) 5""" + , """Options.Applicative.Help.Pretty.(<$$>) 5""" + , """Options.Applicative.Help.Pretty.(<$>) 5""" + , """Options.Applicative.Help.Pretty.(<+>) 6""" + , """Options.Applicative.Help.Pretty.() 5""" + , """Options.Applicative.Help.Pretty.() 5""" + , """Options.Applicative.Internal.() 99""" + , """Options.Applicative.Internal.Utils.(<**>) 4""" + , """Parsing.Combinators.(!!) 8""" + , """Parsing.Combinators.($>) 4""" + , """Parsing.Combinators.(..) 8""" + , """Parsing.Combinators.(:) 6""" + , """Parsing.Combinators.(<#>) 1""" + , """Parsing.Combinators.(<$) 4""" + , """Parsing.Combinators.(<$>) 4""" + , """Parsing.Combinators.() 4""" + , """Parsing.Combinators.() 3""" + , """Parsing.Combinators.(<@>) 4""" + , """Parsing.Combinators.(<|>) 3""" + , """Parsing.Combinators.(<~?>) 4""" + , """Parsing.Combinators.(\\) 5""" + , """Parsing.Indent.(<*/>) 11""" + , """Parsing.Indent.(<+/>) 9""" + , """Parsing.Indent.(<-/>) 10""" + , """Parsing.Indent.() 12""" + , """Pathy.(<..>) 6""" + , """Pathy.(<.>) 6""" + , """Pathy.() 6""" + , """Pathy.Path.(<..>) 6""" + , """Pathy.Path.(<.>) 6""" + , """Pathy.Path.() 6""" + , """Pipes.(<-<) 7""" + , """Pipes.(<~) 4""" + , """Pipes.(>->) 7""" + , """Pipes.(>~) 5""" + , """Pipes.(~<) 5""" + , """Pipes.(~>) 4""" + , """Pipes.Async.(>-/->) 7""" + , """Pipes.Core.(+>>) 6""" + , """Pipes.Core.(//<) 4""" + , """Pipes.Core.(//>) 4""" + , """Pipes.Core.(//) 4""" + , """Pipes.Core.(<+<) 7""" + , """Pipes.Core.(<<+) 6""" + , """Pipes.Core.(<\\) 3""" + , """Pipes.Core.(<~<) 8""" + , """Pipes.Core.(>+>) 7""" + , """Pipes.Core.(>>~) 7""" + , """Pipes.Core.(>\\) 5""" + , """Pipes.Core.(>~>) 8""" + , """Pipes.Core.(\<\) 4""" + , """Pipes.Core.(\>\) 4""" + , """Pipes.Core.(~<<) 7""" + , """PointFree.(#~) 8""" + , """PointFree.(#~~) 8""" + , """PointFree.(#~~~) 8""" + , """PointFree.(....>) 9""" + , """PointFree.(...>) 9""" + , """PointFree.(..>) 9""" + , """PointFree.(.>) 9""" + , """PointFree.(<.) 9""" + , """PointFree.(<..) 9""" + , """PointFree.(<...) 9""" + , """PointFree.(<....) 9""" + , """PointFree.(<~.) 9""" + , """PointFree.(<~..) 9""" + , """PointFree.(<~...) 9""" + , """PointFree.(<~~.) 9""" + , """PointFree.(<~~..) 9""" + , """PointFree.(<~~~.) 9""" + , """PointFree.(~$) 8""" + , """PointFree.(~...>) 9""" + , """PointFree.(~..>) 9""" + , """PointFree.(~.>) 9""" + , """PointFree.(~~$) 8""" + , """PointFree.(~~..>) 9""" + , """PointFree.(~~.>) 9""" + , """PointFree.(~~~$) 8""" + , """PointFree.(~~~.>) 9""" + , """Prelude.(~>) type 4""" + , """Prelude.(#) 1""" + , """Prelude.($) 0""" + , """Prelude.($>) 4""" + , """Prelude.(&&) 3""" + , """Prelude.(*) 7""" + , """Prelude.(*>) 4""" + , """Prelude.(+) 6""" + , """Prelude.(-) 6""" + , """Prelude.(/) 7""" + , """Prelude.(/=) 4""" + , """Prelude.(<) 4""" + , """Prelude.(<#>) 1""" + , """Prelude.(<$) 4""" + , """Prelude.(<$>) 4""" + , """Prelude.(<*) 4""" + , """Prelude.(<*>) 4""" + , """Prelude.(<<<) 9""" + , """Prelude.(<=) 4""" + , """Prelude.(<=<) 1""" + , """Prelude.(<>) 5""" + , """Prelude.(<@>) 4""" + , """Prelude.(=<<) 1""" + , """Prelude.(==) 4""" + , """Prelude.(>) 4""" + , """Prelude.(>=) 4""" + , """Prelude.(>=>) 1""" + , """Prelude.(>>=) 1""" + , """Prelude.(>>>) 9""" + , """Prelude.(||) 2""" + , """Prettier.Printer.(<+/>) 6""" + , """Prettier.Printer.(<+>) 6""" + , """Prettier.Printer.() 5""" + , """Protobuf.Internal.Prelude.(~>) type 4""" + , """Protobuf.Internal.Prelude.(!!) 8""" + , """Protobuf.Internal.Prelude.(#) 1""" + , """Protobuf.Internal.Prelude.($) 0""" + , """Protobuf.Internal.Prelude.($>) 4""" + , """Protobuf.Internal.Prelude.(&&) 3""" + , """Protobuf.Internal.Prelude.(*) 7""" + , """Protobuf.Internal.Prelude.(*>) 4""" + , """Protobuf.Internal.Prelude.(+) 6""" + , """Protobuf.Internal.Prelude.(-) 6""" + , """Protobuf.Internal.Prelude.(.&.) 10""" + , """Protobuf.Internal.Prelude.(..) 8""" + , """Protobuf.Internal.Prelude.(.^.) 10""" + , """Protobuf.Internal.Prelude.(.|.) 10""" + , """Protobuf.Internal.Prelude.(/) 7""" + , """Protobuf.Internal.Prelude.(/=) 4""" + , """Protobuf.Internal.Prelude.(:) 6""" + , """Protobuf.Internal.Prelude.(<) 4""" + , """Protobuf.Internal.Prelude.(<#>) 1""" + , """Protobuf.Internal.Prelude.(<$) 4""" + , """Protobuf.Internal.Prelude.(<$>) 4""" + , """Protobuf.Internal.Prelude.(<*) 4""" + , """Protobuf.Internal.Prelude.(<*>) 4""" + , """Protobuf.Internal.Prelude.(<<<) 9""" + , """Protobuf.Internal.Prelude.(<=) 4""" + , """Protobuf.Internal.Prelude.(<=<) 1""" + , """Protobuf.Internal.Prelude.(<>) 5""" + , """Protobuf.Internal.Prelude.(<>>) 5""" + , """Protobuf.Internal.Prelude.(<@>) 4""" + , """Protobuf.Internal.Prelude.(<|>) 3""" + , """Protobuf.Internal.Prelude.(=<<) 1""" + , """Protobuf.Internal.Prelude.(==) 4""" + , """Protobuf.Internal.Prelude.(>) 4""" + , """Protobuf.Internal.Prelude.(>=) 4""" + , """Protobuf.Internal.Prelude.(>=>) 1""" + , """Protobuf.Internal.Prelude.(>>=) 1""" + , """Protobuf.Internal.Prelude.(>>>) 9""" + , """Protobuf.Internal.Prelude.(\\) 5""" + , """Protobuf.Internal.Prelude.(||) 2""" + , """Quantities.(.*) 5""" + , """Quantities.(./) 6""" + , """Quantities.(.^) 9""" + , """Quantities.(⊕) 3""" + , """Quantities.(⊖) 3""" + , """Quantities.(⊗) 4""" + , """Quantities.(⊘) 4""" + , """React.Basic.Hooks.(&) type 0""" + , """React.Basic.Hooks.(/\) type 6""" + , """React.Basic.Hooks.(/\) 6""" + , """React.Basic.Hooks.Internal.(&) type 0""" + , """Record.Extra.(:::) type 6""" + , """Record.Optional.Fields.Errors.(>>) type 6""" + , """Record.Optional.Fields.Errors.(|>) type 5""" + , """Record.Studio.(//) 1""" + , """Record.Studio.Merge.(//) 1""" + , """Routing.Duplex.(:=) 2""" + , """Routing.Duplex.Generic.(~) 0""" + , """Routing.Duplex.Generic.Syntax.(/) 1""" + , """Routing.Duplex.Generic.Syntax.(?) 8""" + , """Signal.(<~) 4""" + , """Signal.(~) 4""" + , """Signal.(~>) 4""" + , """StringParser.() 4""" + , """StringParser.Combinators.() 4""" + , """TLDR.Combinators.($>) type 4""" + , """TLDR.Combinators.(<$) type 4""" + , """TLDR.Combinators.(||) type 2""" + , """TLDR.List.(:) type 6""" + , """TLDR.Matchers.(&&&) type 2""" + , """TLDR.Matchers.(|||) type 2""" + , """Tecton.(#+) 9""" + , """Tecton.(#-) 9""" + , """Tecton.($=) 8""" + , """Tecton.(&#) 7""" + , """Tecton.(&.) 7""" + , """Tecton.(&:) 7""" + , """Tecton.(&::) 7""" + , """Tecton.(&@) 7""" + , """Tecton.(*=) 8""" + , """Tecton.(*@) 9""" + , """Tecton.(:/) 5""" + , """Tecton.(:=) 0""" + , """Tecton.(?) 0""" + , """Tecton.(@*) 9""" + , """Tecton.(@+@) 8""" + , """Tecton.(@-@) 8""" + , """Tecton.(@/) 9""" + , """Tecton.(@=) 8""" + , """Tecton.(^=) 8""" + , """Tecton.(|*) 7""" + , """Tecton.(|+) 7""" + , """Tecton.(|=) 8""" + , """Tecton.(|>) 7""" + , """Tecton.(|~) 7""" + , """Tecton.(~) 7""" + , """Tecton.(~=) 8""" + , """Tecton.Internal.(#+) 9""" + , """Tecton.Internal.(#-) 9""" + , """Tecton.Internal.($=) 8""" + , """Tecton.Internal.(&#) 7""" + , """Tecton.Internal.(&.) 7""" + , """Tecton.Internal.(&:) 7""" + , """Tecton.Internal.(&::) 7""" + , """Tecton.Internal.(&@) 7""" + , """Tecton.Internal.(*=) 8""" + , """Tecton.Internal.(*@) 9""" + , """Tecton.Internal.(:/) 5""" + , """Tecton.Internal.(:=) 0""" + , """Tecton.Internal.(?) 0""" + , """Tecton.Internal.(@*) 9""" + , """Tecton.Internal.(@+@) 8""" + , """Tecton.Internal.(@-@) 8""" + , """Tecton.Internal.(@/) 9""" + , """Tecton.Internal.(@=) 8""" + , """Tecton.Internal.(^=) 8""" + , """Tecton.Internal.(|*) 7""" + , """Tecton.Internal.(|+) 7""" + , """Tecton.Internal.(|=) 8""" + , """Tecton.Internal.(|>) 7""" + , """Tecton.Internal.(|~) 7""" + , """Tecton.Internal.(~) 7""" + , """Tecton.Internal.(~=) 8""" + , """Test.PMock.(#>) type 8""" + , """Test.PMock.(#>) 8""" + , """Test.PMock.(:>) 8""" + , """Test.PMock.Cons.(#>) type 8""" + , """Test.PMock.Cons.(#>) 8""" + , """Test.PMock.Param.(:>) 8""" + , """Test.QuickCheck.(/==) 2""" + , """Test.QuickCheck.(/=?) 2""" + , """Test.QuickCheck.(<=?) 2""" + , """Test.QuickCheck.() 2""" + , """Test.QuickCheck.(===) 2""" + , """Test.QuickCheck.(==?) 2""" + , """Test.QuickCheck.(>=?) 2""" + , """Test.QuickCheck.(>?) 2""" + , """Test.QuickCheck.Combinators.(&=&) 3""" + , """Test.QuickCheck.Combinators.(==>) 3""" + , """Test.QuickCheck.Combinators.(|-|) 3""" + , """Test.QuickCheck.Combinators.(|=|) 3""" + , """Text.PrettyPrint.Leijen.(<$$>) 5""" + , """Text.PrettyPrint.Leijen.(<$>) 5""" + , """Text.PrettyPrint.Leijen.(<+>) 6""" + , """Text.PrettyPrint.Leijen.() 5""" + , """Text.PrettyPrint.Leijen.() 5""" + , """Text.Smolder.Markup.(!) 4""" + , """Text.Smolder.Markup.(!?) 4""" + , """Text.Smolder.Markup.(#!) 4""" + , """TsBridge.(|&|) type 7""" + , """TsBridge.(~) type 9""" + , """TsBridge.Types.Intersection.(|&|) type 7""" + , """TsBridge.Types.TsRecord.(~) type 9""" + , """Type.Data.List.(:>) type 1""" + , """Type.Function.(#) type 1""" + , """Type.Function.($) type 0""" + , """Type.Prelude.(+) type 0""" + , """Type.Regex.CST.(~) type 6""" + , """Type.Regex.RegexRep.(~) type 6""" + , """Type.Row.(+) type 0""" + , """Untagged.Union.(|+|) type 7""" + , """Web.GPU.Internal.Bitwise.(.|.) 10""" + , """Web.GPU.Internal.RequiredAndOptional.(~) 4""" + ] diff --git a/src/Tidy/Precedence.purs b/lib/src/Tidy/Precedence.purs similarity index 100% rename from src/Tidy/Precedence.purs rename to lib/src/Tidy/Precedence.purs diff --git a/src/Tidy/Token.purs b/lib/src/Tidy/Token.purs similarity index 100% rename from src/Tidy/Token.purs rename to lib/src/Tidy/Token.purs diff --git a/src/Tidy/Util.purs b/lib/src/Tidy/Util.purs similarity index 100% rename from src/Tidy/Util.purs rename to lib/src/Tidy/Util.purs diff --git a/test/FormatDirective.purs b/lib/test/FormatDirective.purs similarity index 93% rename from test/FormatDirective.purs rename to lib/test/FormatDirective.purs index 4de84ca..e91b7c0 100644 --- a/test/FormatDirective.purs +++ b/lib/test/FormatDirective.purs @@ -9,7 +9,6 @@ module Test.FormatDirective import Prelude import ArgParse.Basic (ArgError, parseArgs, printArgError) -import Bin.FormatOptions as Bin import Data.Array as Array import Data.Bifunctor (bimap) import Data.Either (Either(..)) @@ -25,6 +24,7 @@ import Data.Tuple (Tuple(..)) import Dodo (PrintOptions, twoSpaces) import PureScript.CST.Types (Comment(..), LineFeed, Module(..), ModuleHeader(..)) import Tidy (class FormatError, FormatOptions, defaultFormatOptions) +import Tidy.FormatOptions (FormatOptions, formatOptions) as Tidy.FormatOptions directiveRegex :: Regex directiveRegex = unsafeRegex "\\n-- @format .+\\n" global @@ -96,10 +96,10 @@ parseDirectivesFromModule (Module { header: ModuleHeader header, body }) = parseFormatOptions :: Array String -> Either String (FormatDirective e a) parseFormatOptions = bimap printArgError fromBinFormatOptions <<< parse where - parse :: Array String -> Either ArgError Bin.FormatOptions - parse = parseArgs "format-directives" "Parse format directives." Bin.formatOptions + parse :: Array String -> Either ArgError Tidy.FormatOptions.FormatOptions + parse = parseArgs "format-directives" "Parse format directives." Tidy.FormatOptions.formatOptions - fromBinFormatOptions :: Bin.FormatOptions -> FormatDirective e a + fromBinFormatOptions :: Tidy.FormatOptions.FormatOptions -> FormatDirective e a fromBinFormatOptions opts = { printOptions: { indentUnit: power " " opts.indent diff --git a/test/Main.purs b/lib/test/Main.purs similarity index 98% rename from test/Main.purs rename to lib/test/Main.purs index dadacd8..f45a307 100644 --- a/test/Main.purs +++ b/lib/test/Main.purs @@ -31,7 +31,7 @@ main = do results@(SnapshotResultGroup { hasBad }) <- snapshotFormat accept filter printResult 0 results when hasBad do - liftEffect $ Process.exit 1 + liftEffect $ Process.exit' 1 where indent :: Int -> String indent = fold <<< flip Array.replicate " " diff --git a/test/Snapshot.purs b/lib/test/Snapshot.purs similarity index 95% rename from test/Snapshot.purs rename to lib/test/Snapshot.purs index 364792f..36fb6be 100644 --- a/test/Snapshot.purs +++ b/lib/test/Snapshot.purs @@ -28,8 +28,9 @@ import Effect.Exception (error) import Node.Buffer (Buffer, freeze) import Node.Buffer as Buffer import Node.Buffer.Immutable as ImmutableBuffer -import Node.ChildProcess (ExecResult, defaultExecOptions) -import Node.ChildProcess as ChildProcess +import Node.ChildProcess (ExecResult) +import Node.ChildProcess (exec', killSignal) as ChildProcess +import Node.ChildProcess.Types (customShell) as ChildProcess import Node.Encoding (Encoding(..)) import Node.FS.Aff (readFile, writeFile) import Node.Glob.Basic (expandGlobs) @@ -76,7 +77,7 @@ snapshotDirectory = snapshotFormat :: Boolean -> Maybe Pattern -> Aff SnapshotResultGroup snapshotFormat accept mbPattern = do - paths <- mapMaybe goPath <<< Array.fromFoldable <$> expandGlobs snapshotDirectory.path [ "**/*.purs" ] + paths <- mapMaybe goPath <<< Array.fromFoldable <$> expandGlobs snapshotDirectory.path [ "**/*.inputpurs" ] tested <- for paths runSnapshot pure $ groupSnapshots tested where @@ -238,8 +239,8 @@ snapshotFormat accept mbPattern = do exec :: String -> Aff ExecResult exec command = makeAff \k -> do - childProc <- ChildProcess.exec command (defaultExecOptions { shell = Just "/bin/bash" }) (k <<< pure) - pure $ effectCanceler $ ChildProcess.kill SIGABRT childProc + childProc <- ChildProcess.exec' command (\x -> x { shell = Just (ChildProcess.customShell "/bin/bash") }) (k <<< pure) + pure $ effectCanceler $ map (const unit) $ ChildProcess.killSignal SIGABRT childProc bufferToUTF8 :: Buffer -> Effect String bufferToUTF8 = map (ImmutableBuffer.toString UTF8) <<< freeze diff --git a/test/snapshots/.gitattributes b/lib/test/snapshots/.gitattributes similarity index 100% rename from test/snapshots/.gitattributes rename to lib/test/snapshots/.gitattributes diff --git a/test/snapshots/Array.purs b/lib/test/snapshots/Array.inputpurs similarity index 100% rename from test/snapshots/Array.purs rename to lib/test/snapshots/Array.inputpurs diff --git a/test/snapshots/Array.output b/lib/test/snapshots/Array.output similarity index 100% rename from test/snapshots/Array.output rename to lib/test/snapshots/Array.output diff --git a/test/snapshots/BlockComments.purs b/lib/test/snapshots/BlockComments.inputpurs similarity index 100% rename from test/snapshots/BlockComments.purs rename to lib/test/snapshots/BlockComments.inputpurs diff --git a/test/snapshots/BlockComments.output b/lib/test/snapshots/BlockComments.output similarity index 100% rename from test/snapshots/BlockComments.output rename to lib/test/snapshots/BlockComments.output diff --git a/test/snapshots/DataDeclarations.purs b/lib/test/snapshots/DataDeclarations.inputpurs similarity index 100% rename from test/snapshots/DataDeclarations.purs rename to lib/test/snapshots/DataDeclarations.inputpurs diff --git a/test/snapshots/DataDeclarations.output b/lib/test/snapshots/DataDeclarations.output similarity index 100% rename from test/snapshots/DataDeclarations.output rename to lib/test/snapshots/DataDeclarations.output diff --git a/test/snapshots/DeclarationBreaks.purs b/lib/test/snapshots/DeclarationBreaks.inputpurs similarity index 100% rename from test/snapshots/DeclarationBreaks.purs rename to lib/test/snapshots/DeclarationBreaks.inputpurs diff --git a/test/snapshots/DeclarationBreaks.output b/lib/test/snapshots/DeclarationBreaks.output similarity index 100% rename from test/snapshots/DeclarationBreaks.output rename to lib/test/snapshots/DeclarationBreaks.output diff --git a/test/snapshots/DeclarationSignatures.purs b/lib/test/snapshots/DeclarationSignatures.inputpurs similarity index 100% rename from test/snapshots/DeclarationSignatures.purs rename to lib/test/snapshots/DeclarationSignatures.inputpurs diff --git a/test/snapshots/DeclarationSignatures.output b/lib/test/snapshots/DeclarationSignatures.output similarity index 100% rename from test/snapshots/DeclarationSignatures.output rename to lib/test/snapshots/DeclarationSignatures.output diff --git a/test/snapshots/DelimitersWithLeadingComments.purs b/lib/test/snapshots/DelimitersWithLeadingComments.inputpurs similarity index 100% rename from test/snapshots/DelimitersWithLeadingComments.purs rename to lib/test/snapshots/DelimitersWithLeadingComments.inputpurs diff --git a/test/snapshots/DelimitersWithLeadingComments.output b/lib/test/snapshots/DelimitersWithLeadingComments.output similarity index 100% rename from test/snapshots/DelimitersWithLeadingComments.output rename to lib/test/snapshots/DelimitersWithLeadingComments.output diff --git a/test/snapshots/Exports.purs b/lib/test/snapshots/Exports.inputpurs similarity index 100% rename from test/snapshots/Exports.purs rename to lib/test/snapshots/Exports.inputpurs diff --git a/test/snapshots/Exports.output b/lib/test/snapshots/Exports.output similarity index 100% rename from test/snapshots/Exports.output rename to lib/test/snapshots/Exports.output diff --git a/test/snapshots/ForeignImportSignatures.purs b/lib/test/snapshots/ForeignImportSignatures.inputpurs similarity index 100% rename from test/snapshots/ForeignImportSignatures.purs rename to lib/test/snapshots/ForeignImportSignatures.inputpurs diff --git a/test/snapshots/ForeignImportSignatures.output b/lib/test/snapshots/ForeignImportSignatures.output similarity index 100% rename from test/snapshots/ForeignImportSignatures.output rename to lib/test/snapshots/ForeignImportSignatures.output diff --git a/test/snapshots/Guards.purs b/lib/test/snapshots/Guards.inputpurs similarity index 100% rename from test/snapshots/Guards.purs rename to lib/test/snapshots/Guards.inputpurs diff --git a/test/snapshots/Guards.output b/lib/test/snapshots/Guards.output similarity index 100% rename from test/snapshots/Guards.output rename to lib/test/snapshots/Guards.output diff --git a/test/snapshots/HTML.purs b/lib/test/snapshots/HTML.inputpurs similarity index 100% rename from test/snapshots/HTML.purs rename to lib/test/snapshots/HTML.inputpurs diff --git a/test/snapshots/HTML.output b/lib/test/snapshots/HTML.output similarity index 100% rename from test/snapshots/HTML.output rename to lib/test/snapshots/HTML.output diff --git a/test/snapshots/IfThenElse.purs b/lib/test/snapshots/IfThenElse.inputpurs similarity index 100% rename from test/snapshots/IfThenElse.purs rename to lib/test/snapshots/IfThenElse.inputpurs diff --git a/test/snapshots/IfThenElse.output b/lib/test/snapshots/IfThenElse.output similarity index 100% rename from test/snapshots/IfThenElse.output rename to lib/test/snapshots/IfThenElse.output diff --git a/test/snapshots/ImportSortIde.purs b/lib/test/snapshots/ImportSortIde.inputpurs similarity index 100% rename from test/snapshots/ImportSortIde.purs rename to lib/test/snapshots/ImportSortIde.inputpurs diff --git a/test/snapshots/ImportSortIde.output b/lib/test/snapshots/ImportSortIde.output similarity index 100% rename from test/snapshots/ImportSortIde.output rename to lib/test/snapshots/ImportSortIde.output diff --git a/test/snapshots/ImportWrap.purs b/lib/test/snapshots/ImportWrap.inputpurs similarity index 100% rename from test/snapshots/ImportWrap.purs rename to lib/test/snapshots/ImportWrap.inputpurs diff --git a/test/snapshots/ImportWrap.output b/lib/test/snapshots/ImportWrap.output similarity index 100% rename from test/snapshots/ImportWrap.output rename to lib/test/snapshots/ImportWrap.output diff --git a/test/snapshots/Imports.purs b/lib/test/snapshots/Imports.inputpurs similarity index 100% rename from test/snapshots/Imports.purs rename to lib/test/snapshots/Imports.inputpurs diff --git a/test/snapshots/Imports.output b/lib/test/snapshots/Imports.output similarity index 100% rename from test/snapshots/Imports.output rename to lib/test/snapshots/Imports.output diff --git a/test/snapshots/Instance.purs b/lib/test/snapshots/Instance.inputpurs similarity index 100% rename from test/snapshots/Instance.purs rename to lib/test/snapshots/Instance.inputpurs diff --git a/test/snapshots/Instance.output b/lib/test/snapshots/Instance.output similarity index 100% rename from test/snapshots/Instance.output rename to lib/test/snapshots/Instance.output diff --git a/test/snapshots/InstanceChain.purs b/lib/test/snapshots/InstanceChain.inputpurs similarity index 100% rename from test/snapshots/InstanceChain.purs rename to lib/test/snapshots/InstanceChain.inputpurs diff --git a/test/snapshots/InstanceChain.output b/lib/test/snapshots/InstanceChain.output similarity index 100% rename from test/snapshots/InstanceChain.output rename to lib/test/snapshots/InstanceChain.output diff --git a/test/snapshots/ModuleHeader.purs b/lib/test/snapshots/ModuleHeader.inputpurs similarity index 100% rename from test/snapshots/ModuleHeader.purs rename to lib/test/snapshots/ModuleHeader.inputpurs diff --git a/test/snapshots/ModuleHeader.output b/lib/test/snapshots/ModuleHeader.output similarity index 100% rename from test/snapshots/ModuleHeader.output rename to lib/test/snapshots/ModuleHeader.output diff --git a/test/snapshots/MultiCase.purs b/lib/test/snapshots/MultiCase.inputpurs similarity index 100% rename from test/snapshots/MultiCase.purs rename to lib/test/snapshots/MultiCase.inputpurs diff --git a/test/snapshots/MultiCase.output b/lib/test/snapshots/MultiCase.output similarity index 100% rename from test/snapshots/MultiCase.output rename to lib/test/snapshots/MultiCase.output diff --git a/test/snapshots/MultilineApplications.purs b/lib/test/snapshots/MultilineApplications.inputpurs similarity index 100% rename from test/snapshots/MultilineApplications.purs rename to lib/test/snapshots/MultilineApplications.inputpurs diff --git a/test/snapshots/MultilineApplications.output b/lib/test/snapshots/MultilineApplications.output similarity index 100% rename from test/snapshots/MultilineApplications.output rename to lib/test/snapshots/MultilineApplications.output diff --git a/test/snapshots/MultilineBindings.purs b/lib/test/snapshots/MultilineBindings.inputpurs similarity index 100% rename from test/snapshots/MultilineBindings.purs rename to lib/test/snapshots/MultilineBindings.inputpurs diff --git a/test/snapshots/MultilineBindings.output b/lib/test/snapshots/MultilineBindings.output similarity index 100% rename from test/snapshots/MultilineBindings.output rename to lib/test/snapshots/MultilineBindings.output diff --git a/test/snapshots/MultilineNamedBinders.purs b/lib/test/snapshots/MultilineNamedBinders.inputpurs similarity index 100% rename from test/snapshots/MultilineNamedBinders.purs rename to lib/test/snapshots/MultilineNamedBinders.inputpurs diff --git a/test/snapshots/MultilineNamedBinders.output b/lib/test/snapshots/MultilineNamedBinders.output similarity index 100% rename from test/snapshots/MultilineNamedBinders.output rename to lib/test/snapshots/MultilineNamedBinders.output diff --git a/test/snapshots/MultilineOperatorArguments.purs b/lib/test/snapshots/MultilineOperatorArguments.inputpurs similarity index 100% rename from test/snapshots/MultilineOperatorArguments.purs rename to lib/test/snapshots/MultilineOperatorArguments.inputpurs diff --git a/test/snapshots/MultilineOperatorArguments.output b/lib/test/snapshots/MultilineOperatorArguments.output similarity index 100% rename from test/snapshots/MultilineOperatorArguments.output rename to lib/test/snapshots/MultilineOperatorArguments.output diff --git a/test/snapshots/MultilineStringLiterals.purs b/lib/test/snapshots/MultilineStringLiterals.inputpurs similarity index 100% rename from test/snapshots/MultilineStringLiterals.purs rename to lib/test/snapshots/MultilineStringLiterals.inputpurs diff --git a/test/snapshots/MultilineStringLiterals.output b/lib/test/snapshots/MultilineStringLiterals.output similarity index 100% rename from test/snapshots/MultilineStringLiterals.output rename to lib/test/snapshots/MultilineStringLiterals.output diff --git a/test/snapshots/MultilineSuperClasses.purs b/lib/test/snapshots/MultilineSuperClasses.inputpurs similarity index 100% rename from test/snapshots/MultilineSuperClasses.purs rename to lib/test/snapshots/MultilineSuperClasses.inputpurs diff --git a/test/snapshots/MultilineSuperClasses.output b/lib/test/snapshots/MultilineSuperClasses.output similarity index 100% rename from test/snapshots/MultilineSuperClasses.output rename to lib/test/snapshots/MultilineSuperClasses.output diff --git a/test/snapshots/OperatorsReversed.purs b/lib/test/snapshots/OperatorsReversed.inputpurs similarity index 100% rename from test/snapshots/OperatorsReversed.purs rename to lib/test/snapshots/OperatorsReversed.inputpurs diff --git a/test/snapshots/OperatorsReversed.output b/lib/test/snapshots/OperatorsReversed.output similarity index 100% rename from test/snapshots/OperatorsReversed.output rename to lib/test/snapshots/OperatorsReversed.output diff --git a/test/snapshots/Shebang.output b/lib/test/snapshots/Shebang.inputpurs similarity index 100% rename from test/snapshots/Shebang.output rename to lib/test/snapshots/Shebang.inputpurs diff --git a/test/snapshots/Shebang.purs b/lib/test/snapshots/Shebang.output similarity index 100% rename from test/snapshots/Shebang.purs rename to lib/test/snapshots/Shebang.output diff --git a/test/snapshots/TrailingLineComments.purs b/lib/test/snapshots/TrailingLineComments.inputpurs similarity index 100% rename from test/snapshots/TrailingLineComments.purs rename to lib/test/snapshots/TrailingLineComments.inputpurs diff --git a/test/snapshots/TrailingLineComments.output b/lib/test/snapshots/TrailingLineComments.output similarity index 100% rename from test/snapshots/TrailingLineComments.output rename to lib/test/snapshots/TrailingLineComments.output diff --git a/test/snapshots/UnicodeSignatures.purs b/lib/test/snapshots/UnicodeSignatures.inputpurs similarity index 100% rename from test/snapshots/UnicodeSignatures.purs rename to lib/test/snapshots/UnicodeSignatures.inputpurs diff --git a/test/snapshots/UnicodeSignatures.output b/lib/test/snapshots/UnicodeSignatures.output similarity index 100% rename from test/snapshots/UnicodeSignatures.output rename to lib/test/snapshots/UnicodeSignatures.output diff --git a/test/snapshots/UnicodeSuperclass.purs b/lib/test/snapshots/UnicodeSuperclass.inputpurs similarity index 100% rename from test/snapshots/UnicodeSuperclass.purs rename to lib/test/snapshots/UnicodeSuperclass.inputpurs diff --git a/test/snapshots/UnicodeSuperclass.output b/lib/test/snapshots/UnicodeSuperclass.output similarity index 100% rename from test/snapshots/UnicodeSuperclass.output rename to lib/test/snapshots/UnicodeSuperclass.output diff --git a/test/snapshots/UnusualLineComments.purs b/lib/test/snapshots/UnusualLineComments.inputpurs similarity index 100% rename from test/snapshots/UnusualLineComments.purs rename to lib/test/snapshots/UnusualLineComments.inputpurs diff --git a/test/snapshots/UnusualLineComments.output b/lib/test/snapshots/UnusualLineComments.output similarity index 100% rename from test/snapshots/UnusualLineComments.output rename to lib/test/snapshots/UnusualLineComments.output diff --git a/test/snapshots/VisibleTypeApplications.purs b/lib/test/snapshots/VisibleTypeApplications.inputpurs similarity index 100% rename from test/snapshots/VisibleTypeApplications.purs rename to lib/test/snapshots/VisibleTypeApplications.inputpurs diff --git a/test/snapshots/VisibleTypeApplications.output b/lib/test/snapshots/VisibleTypeApplications.output similarity index 100% rename from test/snapshots/VisibleTypeApplications.output rename to lib/test/snapshots/VisibleTypeApplications.output diff --git a/package-lock.json b/package-lock.json index f5ded52..56aee34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,9 +12,416 @@ "purs-tidy": "bin/index.js" }, "devDependencies": { + "esbuild": "latest", "purs-backend-es": "^1.4.2" } }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz", + "integrity": "sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.2.tgz", + "integrity": "sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz", + "integrity": "sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.2.tgz", + "integrity": "sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz", + "integrity": "sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz", + "integrity": "sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz", + "integrity": "sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz", + "integrity": "sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz", + "integrity": "sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz", + "integrity": "sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz", + "integrity": "sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz", + "integrity": "sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz", + "integrity": "sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz", + "integrity": "sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz", + "integrity": "sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz", + "integrity": "sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz", + "integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz", + "integrity": "sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz", + "integrity": "sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz", + "integrity": "sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz", + "integrity": "sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz", + "integrity": "sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz", + "integrity": "sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz", + "integrity": "sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.20.2", + "@esbuild/android-arm": "0.20.2", + "@esbuild/android-arm64": "0.20.2", + "@esbuild/android-x64": "0.20.2", + "@esbuild/darwin-arm64": "0.20.2", + "@esbuild/darwin-x64": "0.20.2", + "@esbuild/freebsd-arm64": "0.20.2", + "@esbuild/freebsd-x64": "0.20.2", + "@esbuild/linux-arm": "0.20.2", + "@esbuild/linux-arm64": "0.20.2", + "@esbuild/linux-ia32": "0.20.2", + "@esbuild/linux-loong64": "0.20.2", + "@esbuild/linux-mips64el": "0.20.2", + "@esbuild/linux-ppc64": "0.20.2", + "@esbuild/linux-riscv64": "0.20.2", + "@esbuild/linux-s390x": "0.20.2", + "@esbuild/linux-x64": "0.20.2", + "@esbuild/netbsd-x64": "0.20.2", + "@esbuild/openbsd-x64": "0.20.2", + "@esbuild/sunos-x64": "0.20.2", + "@esbuild/win32-arm64": "0.20.2", + "@esbuild/win32-ia32": "0.20.2", + "@esbuild/win32-x64": "0.20.2" + } + }, "node_modules/purs-backend-es": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/purs-backend-es/-/purs-backend-es-1.4.2.tgz", @@ -26,6 +433,198 @@ } }, "dependencies": { + "@esbuild/aix-ppc64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz", + "integrity": "sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==", + "dev": true, + "optional": true + }, + "@esbuild/android-arm": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.2.tgz", + "integrity": "sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==", + "dev": true, + "optional": true + }, + "@esbuild/android-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz", + "integrity": "sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==", + "dev": true, + "optional": true + }, + "@esbuild/android-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.2.tgz", + "integrity": "sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==", + "dev": true, + "optional": true + }, + "@esbuild/darwin-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz", + "integrity": "sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==", + "dev": true, + "optional": true + }, + "@esbuild/darwin-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz", + "integrity": "sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==", + "dev": true, + "optional": true + }, + "@esbuild/freebsd-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz", + "integrity": "sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==", + "dev": true, + "optional": true + }, + "@esbuild/freebsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz", + "integrity": "sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==", + "dev": true, + "optional": true + }, + "@esbuild/linux-arm": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz", + "integrity": "sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==", + "dev": true, + "optional": true + }, + "@esbuild/linux-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz", + "integrity": "sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==", + "dev": true, + "optional": true + }, + "@esbuild/linux-ia32": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz", + "integrity": "sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==", + "dev": true, + "optional": true + }, + "@esbuild/linux-loong64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz", + "integrity": "sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-mips64el": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz", + "integrity": "sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==", + "dev": true, + "optional": true + }, + "@esbuild/linux-ppc64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz", + "integrity": "sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==", + "dev": true, + "optional": true + }, + "@esbuild/linux-riscv64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz", + "integrity": "sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==", + "dev": true, + "optional": true + }, + "@esbuild/linux-s390x": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz", + "integrity": "sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz", + "integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==", + "dev": true, + "optional": true + }, + "@esbuild/netbsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz", + "integrity": "sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==", + "dev": true, + "optional": true + }, + "@esbuild/openbsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz", + "integrity": "sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==", + "dev": true, + "optional": true + }, + "@esbuild/sunos-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz", + "integrity": "sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==", + "dev": true, + "optional": true + }, + "@esbuild/win32-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz", + "integrity": "sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==", + "dev": true, + "optional": true + }, + "@esbuild/win32-ia32": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz", + "integrity": "sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==", + "dev": true, + "optional": true + }, + "@esbuild/win32-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz", + "integrity": "sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==", + "dev": true, + "optional": true + }, + "esbuild": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz", + "integrity": "sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==", + "dev": true, + "requires": { + "@esbuild/aix-ppc64": "0.20.2", + "@esbuild/android-arm": "0.20.2", + "@esbuild/android-arm64": "0.20.2", + "@esbuild/android-x64": "0.20.2", + "@esbuild/darwin-arm64": "0.20.2", + "@esbuild/darwin-x64": "0.20.2", + "@esbuild/freebsd-arm64": "0.20.2", + "@esbuild/freebsd-x64": "0.20.2", + "@esbuild/linux-arm": "0.20.2", + "@esbuild/linux-arm64": "0.20.2", + "@esbuild/linux-ia32": "0.20.2", + "@esbuild/linux-loong64": "0.20.2", + "@esbuild/linux-mips64el": "0.20.2", + "@esbuild/linux-ppc64": "0.20.2", + "@esbuild/linux-riscv64": "0.20.2", + "@esbuild/linux-s390x": "0.20.2", + "@esbuild/linux-x64": "0.20.2", + "@esbuild/netbsd-x64": "0.20.2", + "@esbuild/openbsd-x64": "0.20.2", + "@esbuild/sunos-x64": "0.20.2", + "@esbuild/win32-arm64": "0.20.2", + "@esbuild/win32-ia32": "0.20.2", + "@esbuild/win32-x64": "0.20.2" + } + }, "purs-backend-es": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/purs-backend-es/-/purs-backend-es-1.4.2.tgz", diff --git a/package.json b/package.json index 3c40ca2..dd5c2f8 100644 --- a/package.json +++ b/package.json @@ -14,18 +14,23 @@ "bundle/**/*.js" ], "scripts": { - "version": "echo 'export const version = \"v'$npm_package_version'\";' > ./bin/Bin/Version.js && git add ./bin/Bin/Version.js", + "version": "sed -i \"s/version: .*/version: $npm_package_version/\" **/spago.yaml && git add **/spago.yaml", "postversion": "git push && git push --tags", - "build": "spago -x bin/spago.dhall build", - "build:corefn": "spago -x bin/spago.dhall build -u '-g corefn,js'", - "bundle": "npm run build:corefn && purs-backend-es build && npm run bundle:main && npm run bundle:worker", - "bundle:main": "purs-backend-es bundle-module --platform node --to \"./bundle/Main/index.js\" --no-build", - "bundle:worker": "purs-backend-es bundle-app --platform node --to \"./bundle/Bin.Worker/index.js\" --main Bin.Worker --no-build", - "test": "spago -x test/spago.dhall test", - "generate-default-operators": "spago -x script/spago.dhall run -m GenerateDefaultOperatorsModule", - "format-self": "npm run build && node ./bin/index.js format-in-place src 'test/*.purs' bin script", - "check-self": "node ./bin/index.js check src 'test/*.purs' bin script", - "prepublishOnly": "rm -rf output bundle && npm run bundle" + "build": "npm run build:lib && npm run build:cli && npm run build:generate-default-operators", + "build:lib": "spago build --package tidy --censor-stats --strict --ensure-ranges --pedantic-packages", + "build:cli": "spago build --package tidy-cli --censor-stats --strict --ensure-ranges --pedantic-packages", + "build:generate-default-operators": "spago build --package tidy-generate-default-operators --censor-stats --strict --ensure-ranges --pedantic-packages", + "bundle:cli": "npm run build:cli && purs-backend-es build && npm run bundle:cli:main && npm run bundle:cli:worker", + "bundle:cli:main": "purs-backend-es bundle-module --platform node --to \"./bundle/Main/index.js\" --no-build", + "bundle:cli:worker": "purs-backend-es bundle-app --platform node --to \"./bundle/Cli.Worker/index.js\" --main Cli.Worker --no-build", + "test": "npm run test:lib", + "test:lib": "spago test --package tidy --censor-stats --strict --pedantic-packages", + "generate-default-operators:update_registry": "registry_value=$(awk '/registry:/ {print $2}' spago.yaml) && echo \"registry_value=\" $registry_value && sed -i \"s/registry:.*/registry: $registry_value\\\"/\" generate-default-operators/src/GenerateDefaultOperatorsModule.purs", + "generate-default-operators:run": "spago run --package tidy-generate-default-operators --main GenerateDefaultOperatorsModule", + "generate-default-operators": "npm run generate-default-operators:update_registry && npm run generate-default-operators:run", + "format-self": "npm run build && node ./cli/index.js format-in-place lib bin generate-default-operators", + "check-self": "node ./cli/index.js check lib bin generate-default-operators", + "prepublishOnly": "rm -rf output bundle && npm run bundle:cli" }, "repository": { "type": "git", @@ -43,6 +48,7 @@ }, "homepage": "https://github.com/natefaubion/purescript-tidy#readme", "devDependencies": { - "purs-backend-es": "^1.4.2" + "purs-backend-es": "^1.4.2", + "esbuild": "latest" } } diff --git a/packages.dhall b/packages.dhall deleted file mode 100644 index 7697066..0000000 --- a/packages.dhall +++ /dev/null @@ -1,42 +0,0 @@ -let upstream = - https://github.com/purescript/package-sets/releases/download/psc-0.15.0-20220513/packages.dhall - sha256:1ed784f37ae6131d99acd542d058d5ce39954ccaacc3adba5cc7cf1549d2bffa - -in upstream - with node-glob-basic = - { dependencies = - [ "aff" - , "console" - , "effect" - , "lists" - , "maybe" - , "node-fs-aff" - , "node-path" - , "node-process" - , "ordered-collections" - , "strings" - ] - , repo = "https://github.com/natefaubion/purescript-node-glob-basic.git" - , version = "v1.2.2" - } - - with node-workerbees = - { dependencies = - [ "aff" - , "argonaut-core" - , "arraybuffer-types" - , "avar" - , "effect" - , "either" - , "exceptions" - , "maybe" - , "newtype" - , "parallel" - , "variant" - ] - , repo = "https://github.com/natefaubion/purescript-node-workerbees.git" - , version = "node-esm" - } - - with language-cst-parser = - (upstream.language-cst-parser with version = "v0.14.0") diff --git a/script/GenerateDefaultOperatorsModule.purs b/script/GenerateDefaultOperatorsModule.purs deleted file mode 100644 index 3c92a41..0000000 --- a/script/GenerateDefaultOperatorsModule.purs +++ /dev/null @@ -1,199 +0,0 @@ -module GenerateDefaultOperatorsModule where - -import Prelude - -import Data.Array (mapWithIndex) -import Data.Array as Array -import Data.Maybe (Maybe(..)) -import Data.String (Pattern(..)) -import Data.String as String -import Effect (Effect) -import Effect.Class.Console as Console -import Effect.Exception (catchException, throwException) -import Node.Buffer (Buffer) -import Node.Buffer as Buffer -import Node.ChildProcess as ChildProcess -import Node.Encoding (Encoding(..)) -import Node.FS.Sync (writeTextFile) -import Node.Path as Path -import Node.Process (cwd) -import Unsafe.Coerce (unsafeCoerce) - -foreign import tmpdir :: String -> Effect String - -main :: Effect Unit -main = do - cwdPath <- cwd - tmpPath <- tmpdir "purs-tidy-generate-default-operators-" - - let opts = ChildProcess.defaultExecSyncOptions { cwd = Just tmpPath } - let genCmd = Path.concat [ cwdPath, "bin", "index.js" ] <> " generate-operators '.spago/*/*/src/**/*.purs'" - - writeTextFile UTF8 (Path.concat [ tmpPath, "spago.dhall" ]) defaultSpagoDhall - writeTextFile UTF8 (Path.concat [ tmpPath, "package.json" ]) defaultPackageJson - _ <- ChildProcess.execSync "npm install" opts - output <- Buffer.toString UTF8 =<< catchException - ( \err -> do - stdout <- Buffer.toString UTF8 ((unsafeCoerce err).stdout :: Buffer) - stderr <- Buffer.toString UTF8 ((unsafeCoerce err).stderr :: Buffer) - Console.log stdout - Console.error stderr - throwException err - ) - (ChildProcess.execSync genCmd opts) - - let - header = - [ "--------------------------------------------" - , "-- This module is generated. DO NOT EDIT! --" - , "--------------------------------------------" - , "module Tidy.Operators.Defaults where" - , "" - , "defaultOperators :: Array String" - , "defaultOperators =" - ] - - lines = output # String.trim # String.split (Pattern "\n") # mapWithIndex \ix line -> - if ix == 0 then - " [ \"\"\"" <> line <> "\"\"\"" - else - " , \"\"\"" <> line <> "\"\"\"" - - footer = - [ " ]" - , "" - ] - - contents = - Array.intercalate "\n" (header <> lines <> footer) - - writeTextFile UTF8 (Path.concat [ cwdPath, "src", "Tidy", "Operators", "Defaults.purs" ]) contents - -defaultPackageJson :: String -defaultPackageJson = - """ - { - "private": true, - "type": "module", - "dependencies": { - "purescript": "^0.15.0", - "spago": "^0.20.8" - }, - "scripts": { - "postinstall": "spago install" - } - } - """ - -defaultSpagoDhall :: String -defaultSpagoDhall = - """ - { name = "purs-tidy-generate-default-operators" - , dependencies = - [ "ace" - , "aff" - , "aff-bus" - , "aff-coroutines" - , "affjax" - , "argonaut" - , "argonaut-codecs" - , "argonaut-core" - , "argonaut-generic" - , "argonaut-traversals" - , "arraybuffer-types" - , "arrays" - , "assert" - , "avar" - , "bifunctors" - , "catenable-lists" - , "concurrent-queues" - , "console" - , "const" - , "contravariant" - , "control" - , "coroutines" - , "datetime" - , "distributive" - , "effect" - , "either" - , "enums" - , "exceptions" - , "exists" - , "filterable" - , "fixed-points" - , "foldable-traversable" - , "foreign" - , "foreign-object" - , "fork" - , "form-urlencoded" - , "formatters" - , "free" - , "freet" - , "functions" - , "functors" - , "gen" - , "github-actions-toolkit" - , "graphs" - , "http-methods" - , "identity" - , "integers" - , "invariant" - , "js-date" - , "js-timers" - , "js-uri" - , "lazy" - , "lcg" - , "lists" - , "machines" - , "matryoshka" - , "maybe" - , "media-types" - , "minibench" - , "newtype" - , "nonempty" - , "now" - , "nullable" - , "numbers" - , "options" - , "ordered-collections" - , "orders" - , "parallel" - , "parsing" - , "partial" - , "pathy" - , "precise" - , "prelude" - , "profunctor" - , "profunctor-lenses" - , "psci-support" - , "quickcheck" - , "quickcheck-laws" - , "random" - , "react" - , "react-dom" - , "record" - , "refs" - , "routing" - , "safe-coerce" - , "semirings" - , "st" - , "string-parsers" - , "strings" - , "strings-extra" - , "tailrec" - , "these" - , "transformers" - , "tuples" - , "type-equality" - , "typelevel-prelude" - , "unfoldable" - , "unicode" - , "unsafe-coerce" - , "unsafe-reference" - , "uri" - , "validation" - ] - , packages = https://github.com/purescript/package-sets/releases/download/psc-0.15.0-20220513/packages.dhall - , sources = [] : List Text - } -""" diff --git a/script/spago.dhall b/script/spago.dhall deleted file mode 100644 index 5f5226f..0000000 --- a/script/spago.dhall +++ /dev/null @@ -1,19 +0,0 @@ -{ name = "purescript-tidy-script" -, dependencies = - [ "arrays" - , "console" - , "effect" - , "exceptions" - , "maybe" - , "node-buffer" - , "node-child-process" - , "node-fs" - , "node-path" - , "node-process" - , "prelude" - , "strings" - , "unsafe-coerce" - ] -, packages = ../packages.dhall -, sources = [ "script/**/*.purs" ] -} diff --git a/spago.dhall b/spago.dhall deleted file mode 100644 index 4265921..0000000 --- a/spago.dhall +++ /dev/null @@ -1,20 +0,0 @@ -{ name = "tidy" -, dependencies = - [ "arrays" - , "control" - , "dodo-printer" - , "either" - , "foldable-traversable" - , "lists" - , "maybe" - , "newtype" - , "ordered-collections" - , "partial" - , "prelude" - , "language-cst-parser" - , "strings" - , "tuples" - ] -, packages = ./packages.dhall -, sources = [ "src/**/*.purs" ] -} diff --git a/spago.lock b/spago.lock new file mode 100644 index 0000000..d82e6c8 --- /dev/null +++ b/spago.lock @@ -0,0 +1,2184 @@ +{ + "workspace": { + "packages": { + "tidy": { + "path": "lib", + "core": { + "dependencies": [ + { + "argonaut-codecs": ">=9.1.0 <10.0.0" + }, + { + "argonaut-core": ">=7.0.0 <8.0.0" + }, + { + "argparse-basic": ">=2.0.0 <3.0.0" + }, + { + "arrays": ">=7.3.0 <8.0.0" + }, + { + "control": ">=6.0.0 <7.0.0" + }, + { + "dodo-printer": "*" + }, + { + "either": ">=6.1.0 <7.0.0" + }, + { + "foldable-traversable": ">=6.0.0 <7.0.0" + }, + { + "language-cst-parser": "*" + }, + { + "lists": ">=7.0.0 <8.0.0" + }, + { + "maybe": ">=6.0.0 <7.0.0" + }, + { + "newtype": ">=5.0.0 <6.0.0" + }, + { + "ordered-collections": ">=3.2.0 <4.0.0" + }, + { + "partial": ">=4.0.0 <5.0.0" + }, + { + "prelude": ">=6.0.1 <7.0.0" + }, + { + "strings": ">=6.0.1 <7.0.0" + }, + { + "transformers": ">=6.1.0 <7.0.0" + }, + { + "tuples": ">=7.0.0 <8.0.0" + } + ], + "build_plan": [ + "ansi", + "argonaut-codecs", + "argonaut-core", + "argparse-basic", + "arrays", + "bifunctors", + "catenable-lists", + "const", + "contravariant", + "control", + "distributive", + "dodo-printer", + "effect", + "either", + "enums", + "exceptions", + "exists", + "foldable-traversable", + "foreign-object", + "free", + "functions", + "functors", + "gen", + "identity", + "integers", + "invariant", + "language-cst-parser", + "lazy", + "lists", + "maybe", + "newtype", + "nonempty", + "numbers", + "ordered-collections", + "orders", + "partial", + "prelude", + "profunctor", + "record", + "refs", + "safe-coerce", + "st", + "strings", + "tailrec", + "transformers", + "tuples", + "type-equality", + "typelevel-prelude", + "unfoldable", + "unsafe-coerce" + ] + }, + "test": { + "dependencies": [ + "aff", + "ansi", + "bifunctors", + "console", + "effect", + "exceptions", + "node-buffer", + "node-child-process", + "node-fs", + "node-glob-basic", + "node-path", + "node-process", + "posix-types" + ], + "build_plan": [ + "aff", + "ansi", + "arraybuffer-types", + "arrays", + "bifunctors", + "console", + "const", + "contravariant", + "control", + "datetime", + "distributive", + "effect", + "either", + "enums", + "exceptions", + "exists", + "foldable-traversable", + "foreign", + "foreign-object", + "functions", + "functors", + "gen", + "identity", + "integers", + "invariant", + "js-date", + "lazy", + "lists", + "maybe", + "newtype", + "node-buffer", + "node-child-process", + "node-event-emitter", + "node-fs", + "node-glob-basic", + "node-os", + "node-path", + "node-process", + "node-streams", + "nonempty", + "now", + "nullable", + "numbers", + "ordered-collections", + "orders", + "parallel", + "partial", + "posix-types", + "prelude", + "profunctor", + "refs", + "safe-coerce", + "st", + "strings", + "tailrec", + "transformers", + "tuples", + "type-equality", + "typelevel-prelude", + "unfoldable", + "unsafe-coerce" + ] + } + }, + "tidy-cli": { + "path": "cli", + "core": { + "dependencies": [ + { + "aff": ">=8.0.0 <9.0.0" + }, + { + "argonaut-codecs": ">=9.1.0 <10.0.0" + }, + { + "argonaut-core": ">=7.0.0 <8.0.0" + }, + { + "argparse-basic": ">=2.0.0 <3.0.0" + }, + { + "arrays": ">=7.3.0 <8.0.0" + }, + { + "console": ">=6.1.0 <7.0.0" + }, + { + "control": ">=6.0.0 <7.0.0" + }, + { + "datetime": ">=6.1.0 <7.0.0" + }, + { + "dodo-printer": "*" + }, + { + "effect": ">=4.0.0 <5.0.0" + }, + { + "either": ">=6.1.0 <7.0.0" + }, + { + "foldable-traversable": ">=6.0.0 <7.0.0" + }, + { + "foreign-object": ">=4.1.0 <5.0.0" + }, + { + "language-cst-parser": "*" + }, + { + "lazy": ">=6.0.0 <7.0.0" + }, + { + "lists": ">=7.0.0 <8.0.0" + }, + { + "maybe": ">=6.0.0 <7.0.0" + }, + { + "newtype": ">=5.0.0 <6.0.0" + }, + { + "node-buffer": ">=9.0.0 <10.0.0" + }, + { + "node-fs": ">=9.2.0 <10.0.0" + }, + { + "node-glob-basic": "*" + }, + { + "node-path": ">=5.0.0 <6.0.0" + }, + { + "node-process": ">=11.2.0 <12.0.0" + }, + { + "node-streams": ">=9.0.0 <10.0.0" + }, + { + "node-workerbees": "*" + }, + { + "numbers": ">=9.0.1 <10.0.0" + }, + { + "ordered-collections": ">=3.2.0 <4.0.0" + }, + { + "parallel": ">=7.0.0 <8.0.0" + }, + { + "partial": ">=4.0.0 <5.0.0" + }, + { + "prelude": ">=6.0.1 <7.0.0" + }, + { + "strings": ">=6.0.1 <7.0.0" + }, + { + "tidy": "*" + }, + { + "transformers": ">=6.1.0 <7.0.0" + }, + { + "tuples": ">=7.0.0 <8.0.0" + } + ], + "build_plan": [ + "aff", + "ansi", + "argonaut-codecs", + "argonaut-core", + "argparse-basic", + "arraybuffer-types", + "arrays", + "avar", + "bifunctors", + "catenable-lists", + "console", + "const", + "contravariant", + "control", + "datetime", + "distributive", + "dodo-printer", + "effect", + "either", + "enums", + "exceptions", + "exists", + "foldable-traversable", + "foreign", + "foreign-object", + "free", + "functions", + "functors", + "gen", + "identity", + "integers", + "invariant", + "js-date", + "language-cst-parser", + "lazy", + "lists", + "maybe", + "newtype", + "node-buffer", + "node-event-emitter", + "node-fs", + "node-glob-basic", + "node-path", + "node-process", + "node-streams", + "node-workerbees", + "nonempty", + "now", + "nullable", + "numbers", + "ordered-collections", + "orders", + "parallel", + "partial", + "posix-types", + "prelude", + "profunctor", + "record", + "refs", + "safe-coerce", + "st", + "strings", + "tailrec", + "tidy", + "transformers", + "tuples", + "type-equality", + "typelevel-prelude", + "unfoldable", + "unsafe-coerce", + "variant" + ] + }, + "test": { + "dependencies": [], + "build_plan": [] + } + }, + "tidy-generate-default-operators": { + "path": "generate-default-operators", + "core": { + "dependencies": [ + { + "aff": ">=8.0.0 <9.0.0" + }, + { + "argonaut-codecs": ">=9.1.0 <10.0.0" + }, + { + "argonaut-core": ">=7.0.0 <8.0.0" + }, + { + "arrays": ">=7.3.0 <8.0.0" + }, + { + "console": ">=6.1.0 <7.0.0" + }, + { + "effect": ">=4.0.0 <5.0.0" + }, + { + "either": ">=6.1.0 <7.0.0" + }, + { + "exceptions": ">=6.1.0 <7.0.0" + }, + { + "foreign-object": ">=4.1.0 <5.0.0" + }, + { + "maybe": ">=6.0.0 <7.0.0" + }, + { + "node-buffer": ">=9.0.0 <10.0.0" + }, + { + "node-child-process": ">=11.1.0 <12.0.0" + }, + { + "node-execa": ">=5.0.0 <6.0.0" + }, + { + "node-fs": ">=9.2.0 <10.0.0" + }, + { + "node-path": ">=5.0.0 <6.0.0" + }, + { + "node-process": ">=11.2.0 <12.0.0" + }, + { + "numbers": ">=9.0.1 <10.0.0" + }, + { + "prelude": ">=6.0.1 <7.0.0" + }, + { + "strings": ">=6.0.1 <7.0.0" + } + ], + "build_plan": [ + "aff", + "argonaut-codecs", + "argonaut-core", + "arraybuffer-types", + "arrays", + "bifunctors", + "console", + "const", + "contravariant", + "control", + "datetime", + "distributive", + "effect", + "either", + "enums", + "exceptions", + "exists", + "foldable-traversable", + "foreign", + "foreign-object", + "functions", + "functors", + "gen", + "identity", + "integers", + "invariant", + "js-date", + "js-timers", + "lazy", + "lists", + "maybe", + "newtype", + "node-buffer", + "node-child-process", + "node-event-emitter", + "node-execa", + "node-fs", + "node-human-signals", + "node-os", + "node-path", + "node-process", + "node-streams", + "nonempty", + "now", + "nullable", + "numbers", + "ordered-collections", + "orders", + "parallel", + "parsing", + "partial", + "posix-types", + "prelude", + "profunctor", + "record", + "refs", + "safe-coerce", + "st", + "strings", + "tailrec", + "transformers", + "tuples", + "type-equality", + "typelevel-prelude", + "unfoldable", + "unicode", + "unsafe-coerce", + "unsafe-reference" + ] + }, + "test": { + "dependencies": [], + "build_plan": [] + } + } + }, + "package_set": { + "address": { + "registry": "60.5.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", + "jsdom": "1.0.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-colors-scales-and-schemes": "1.0.0", + "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-dom-beta": "0.1.1", + "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.1.0", + "spec-discovery": "8.4.0", + "spec-mocha": "5.1.1", + "spec-node": "0.0.3", + "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": { + "git": "https://github.com/srghma/purescript-dodo-printer.git", + "ref": "master" + }, + "language-cst-parser": { + "git": "https://github.com/srghma/purescript-language-cst-parser.git", + "ref": "main", + "subdir": "lib" + }, + "node-glob-basic": { + "git": "https://github.com/natefaubion/purescript-node-glob-basic.git", + "ref": "main" + }, + "node-workerbees": { + "git": "https://github.com/srghma/purescript-node-workerbees.git", + "ref": "node-esm" + } + } + }, + "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" + ] + }, + "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" + ] + }, + "argparse-basic": { + "type": "registry", + "version": "2.0.0", + "integrity": "sha256-3Pp8MDfRL2oeBdfxXIUVJBdhGniaahw2UOG4QmHPm58=", + "dependencies": [ + "arrays", + "bifunctors", + "control", + "either", + "foldable-traversable", + "integers", + "lists", + "maybe", + "newtype", + "numbers", + "prelude", + "record", + "strings", + "tuples", + "unfoldable" + ] + }, + "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" + ] + }, + "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/srghma/purescript-dodo-printer.git", + "rev": "1766a5410bb3db8b1b652c17187dad2262ba976f", + "dependencies": [ + "ansi", + "either", + "foldable-traversable", + "integers", + "lists", + "maybe", + "newtype", + "partial", + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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-timers": { + "type": "registry", + "version": "6.1.0", + "integrity": "sha256-znHWLSSOYw15P5DTcsAdal2lf7nGA2yayLdOZ2t5r7o=", + "dependencies": [ + "effect" + ] + }, + "language-cst-parser": { + "type": "git", + "url": "https://github.com/srghma/purescript-language-cst-parser.git", + "rev": "dbac5f38188ebaf112dc26e02ea162c0b31e0597", + "subdir": "lib", + "dependencies": [ + "arrays", + "const", + "control", + "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" + ] + }, + "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" + ] + }, + "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-execa": { + "type": "registry", + "version": "5.0.0", + "integrity": "sha256-yNcgbCs4guwoTApyV6LRoYCYnU5loWgQiqMtsbloZqk=", + "dependencies": [ + "aff", + "arrays", + "control", + "effect", + "either", + "exceptions", + "foldable-traversable", + "foreign", + "foreign-object", + "functions", + "integers", + "js-timers", + "maybe", + "node-buffer", + "node-child-process", + "node-event-emitter", + "node-fs", + "node-human-signals", + "node-os", + "node-path", + "node-process", + "node-streams", + "nullable", + "numbers", + "ordered-collections", + "parallel", + "parsing", + "partial", + "posix-types", + "prelude", + "record", + "refs", + "safe-coerce", + "strings", + "tailrec", + "tuples", + "unsafe-coerce", + "unsafe-reference" + ] + }, + "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-glob-basic": { + "type": "git", + "url": "https://github.com/natefaubion/purescript-node-glob-basic.git", + "rev": "d8501e9e0b79b5b427c9f664f5f9e14a51194928", + "dependencies": [ + "aff", + "effect", + "either", + "foldable-traversable", + "lists", + "maybe", + "node-fs", + "node-path", + "node-process", + "ordered-collections", + "parallel", + "prelude", + "refs", + "strings", + "tuples" + ] + }, + "node-human-signals": { + "type": "registry", + "version": "1.0.0", + "integrity": "sha256-HOUfMQTAIuL5AOCUlJJcKq78masah+388eQOdloYH1g=", + "dependencies": [ + "arrays", + "control", + "foreign-object", + "maybe", + "ordered-collections", + "prelude" + ] + }, + "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" + ] + }, + "node-workerbees": { + "type": "git", + "url": "https://github.com/srghma/purescript-node-workerbees.git", + "rev": "afa97222df052380929f352af3cad4f4beddf4bb", + "dependencies": [ + "aff", + "argonaut-core", + "arraybuffer-types", + "arrays", + "avar", + "effect", + "either", + "exceptions", + "foldable-traversable", + "foreign-object", + "newtype", + "parallel", + "prelude", + "transformers", + "tuples", + "variant" + ] + }, + "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": [] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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-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" + ] + } + } +} diff --git a/spago.yaml b/spago.yaml new file mode 100644 index 0000000..20a91fd --- /dev/null +++ b/spago.yaml @@ -0,0 +1,20 @@ +workspace: + packageSet: + registry: 60.5.1 + extraPackages: + language-cst-parser: + # git: https://github.com/natefaubion/purescript-language-cst-parser.git + git: https://github.com/srghma/purescript-language-cst-parser.git + subdir: lib + ref: main + node-glob-basic: + git: https://github.com/natefaubion/purescript-node-glob-basic.git + ref: main + node-workerbees: + # git: https://github.com/natefaubion/purescript-node-workerbees.git + git: https://github.com/srghma/purescript-node-workerbees.git + ref: node-esm + dodo-printer: + # git: https://github.com/natefaubion/purescript-tidy.git + git: https://github.com/srghma/purescript-dodo-printer.git + ref: master diff --git a/src/Tidy/Operators/Defaults.purs b/src/Tidy/Operators/Defaults.purs deleted file mode 100644 index 1456afb..0000000 --- a/src/Tidy/Operators/Defaults.purs +++ /dev/null @@ -1,358 +0,0 @@ --------------------------------------------- --- This module is generated. DO NOT EDIT! -- --------------------------------------------- -module Tidy.Operators.Defaults where - -defaultOperators :: Array String -defaultOperators = - [ """Control.Alt.($>) 4""" - , """Control.Alt.(<#>) 1""" - , """Control.Alt.(<$) 4""" - , """Control.Alt.(<$>) 4""" - , """Control.Alt.(<@>) 4""" - , """Control.Alt.(<|>) 3""" - , """Control.Alternative.($>) 4""" - , """Control.Alternative.(*>) 4""" - , """Control.Alternative.(<#>) 1""" - , """Control.Alternative.(<$) 4""" - , """Control.Alternative.(<$>) 4""" - , """Control.Alternative.(<*) 4""" - , """Control.Alternative.(<*>) 4""" - , """Control.Alternative.(<@>) 4""" - , """Control.Alternative.(<|>) 3""" - , """Control.Applicative.($>) 4""" - , """Control.Applicative.(*>) 4""" - , """Control.Applicative.(<#>) 1""" - , """Control.Applicative.(<$) 4""" - , """Control.Applicative.(<$>) 4""" - , """Control.Applicative.(<*) 4""" - , """Control.Applicative.(<*>) 4""" - , """Control.Applicative.(<@>) 4""" - , """Control.Apply.($>) 4""" - , """Control.Apply.(*>) 4""" - , """Control.Apply.(<#>) 1""" - , """Control.Apply.(<$) 4""" - , """Control.Apply.(<$>) 4""" - , """Control.Apply.(<*) 4""" - , """Control.Apply.(<*>) 4""" - , """Control.Apply.(<@>) 4""" - , """Control.Biapply.(*>>) 4""" - , """Control.Biapply.(<<$>>) 4""" - , """Control.Biapply.(<<*) 4""" - , """Control.Biapply.(<<*>>) 4""" - , """Control.Bind.($>) 4""" - , """Control.Bind.(*>) 4""" - , """Control.Bind.(<#>) 1""" - , """Control.Bind.(<$) 4""" - , """Control.Bind.(<$>) 4""" - , """Control.Bind.(<*) 4""" - , """Control.Bind.(<*>) 4""" - , """Control.Bind.(<=<) 1""" - , """Control.Bind.(<@>) 4""" - , """Control.Bind.(=<<) 1""" - , """Control.Bind.(>=>) 1""" - , """Control.Bind.(>>=) 1""" - , """Control.Category.(<<<) 9""" - , """Control.Category.(>>>) 9""" - , """Control.Comonad.($>) 4""" - , """Control.Comonad.(<#>) 1""" - , """Control.Comonad.(<$) 4""" - , """Control.Comonad.(<$>) 4""" - , """Control.Comonad.(<<=) 1""" - , """Control.Comonad.(<@>) 4""" - , """Control.Comonad.(=<=) 1""" - , """Control.Comonad.(=>=) 1""" - , """Control.Comonad.(=>>) 1""" - , """Control.Comonad.Cofree.(:<) 5""" - , """Control.Coroutine.($$) 2""" - , """Control.Coroutine.($~) 2""" - , """Control.Coroutine.(/\) 3""" - , """Control.Coroutine.(\/) 3""" - , """Control.Coroutine.(~$) 2""" - , """Control.Coroutine.(~~) 2""" - , """Control.Extend.($>) 4""" - , """Control.Extend.(<#>) 1""" - , """Control.Extend.(<$) 4""" - , """Control.Extend.(<$>) 4""" - , """Control.Extend.(<<=) 1""" - , """Control.Extend.(<@>) 4""" - , """Control.Extend.(=<=) 1""" - , """Control.Extend.(=>=) 1""" - , """Control.Extend.(=>>) 1""" - , """Control.Monad.($>) 4""" - , """Control.Monad.(*>) 4""" - , """Control.Monad.(<#>) 1""" - , """Control.Monad.(<$) 4""" - , """Control.Monad.(<$>) 4""" - , """Control.Monad.(<*) 4""" - , """Control.Monad.(<*>) 4""" - , """Control.Monad.(<=<) 1""" - , """Control.Monad.(<@>) 4""" - , """Control.Monad.(=<<) 1""" - , """Control.Monad.(>=>) 1""" - , """Control.Monad.(>>=) 1""" - , """Control.MonadPlus.($>) 4""" - , """Control.MonadPlus.(*>) 4""" - , """Control.MonadPlus.(<#>) 1""" - , """Control.MonadPlus.(<$) 4""" - , """Control.MonadPlus.(<$>) 4""" - , """Control.MonadPlus.(<*) 4""" - , """Control.MonadPlus.(<*>) 4""" - , """Control.MonadPlus.(<=<) 1""" - , """Control.MonadPlus.(<@>) 4""" - , """Control.MonadPlus.(<|>) 3""" - , """Control.MonadPlus.(=<<) 1""" - , """Control.MonadPlus.(>=>) 1""" - , """Control.MonadPlus.(>>=) 1""" - , """Control.Plus.($>) 4""" - , """Control.Plus.(<#>) 1""" - , """Control.Plus.(<$) 4""" - , """Control.Plus.(<$>) 4""" - , """Control.Plus.(<@>) 4""" - , """Control.Plus.(<|>) 3""" - , """Control.Semigroupoid.(<<<) 9""" - , """Control.Semigroupoid.(>>>) 9""" - , """Data.Argonaut.(.!=) 6""" - , """Data.Argonaut.(.:) 7""" - , """Data.Argonaut.(.:!) 7""" - , """Data.Argonaut.(.:?) 7""" - , """Data.Argonaut.(:=) 7""" - , """Data.Argonaut.(:=?) 7""" - , """Data.Argonaut.(~>) 6""" - , """Data.Argonaut.(~>?) 6""" - , """Data.Argonaut.Decode.(.!=) 6""" - , """Data.Argonaut.Decode.(.:) 7""" - , """Data.Argonaut.Decode.(.:!) 7""" - , """Data.Argonaut.Decode.(.:?) 7""" - , """Data.Argonaut.Decode.Combinators.(.!=) 6""" - , """Data.Argonaut.Decode.Combinators.(.:) 7""" - , """Data.Argonaut.Decode.Combinators.(.:!) 7""" - , """Data.Argonaut.Decode.Combinators.(.:?) 7""" - , """Data.Argonaut.Encode.(:=) 7""" - , """Data.Argonaut.Encode.(:=?) 7""" - , """Data.Argonaut.Encode.(~>) 6""" - , """Data.Argonaut.Encode.(~>?) 6""" - , """Data.Argonaut.Encode.Combinators.(:=) 7""" - , """Data.Argonaut.Encode.Combinators.(:=?) 7""" - , """Data.Argonaut.Encode.Combinators.(~>) 6""" - , """Data.Argonaut.Encode.Combinators.(~>?) 6""" - , """Data.Array.(!!) 8""" - , """Data.Array.(..) 8""" - , """Data.Array.(:) 6""" - , """Data.Array.(\\) 5""" - , """Data.Array.NonEmpty.(!!) 8""" - , """Data.Array.NonEmpty.(..) 8""" - , """Data.Array.NonEmpty.(:) 6""" - , """Data.Array.NonEmpty.(\\) 5""" - , """Data.BooleanAlgebra.(&&) 3""" - , """Data.BooleanAlgebra.(||) 2""" - , """Data.Bounded.(<) 4""" - , """Data.Bounded.(<=) 4""" - , """Data.Bounded.(>) 4""" - , """Data.Bounded.(>=) 4""" - , """Data.CommutativeRing.(*) 7""" - , """Data.CommutativeRing.(+) 6""" - , """Data.CommutativeRing.(-) 6""" - , """Data.DivisionRing.(*) 7""" - , """Data.DivisionRing.(+) 6""" - , """Data.DivisionRing.(-) 6""" - , """Data.Either.Nested.(\/) type 6""" - , """Data.Either.Nested.(\/) 6""" - , """Data.Eq.(/=) 4""" - , """Data.Eq.(==) 4""" - , """Data.EuclideanRing.(*) 7""" - , """Data.EuclideanRing.(+) 6""" - , """Data.EuclideanRing.(-) 6""" - , """Data.EuclideanRing.(/) 7""" - , """Data.Field.(*) 7""" - , """Data.Field.(+) 6""" - , """Data.Field.(-) 6""" - , """Data.Field.(/) 7""" - , """Data.Function.(#) 1""" - , """Data.Function.($) 0""" - , """Data.Function.(<<<) 9""" - , """Data.Function.(>>>) 9""" - , """Data.Functor.($>) 4""" - , """Data.Functor.(<#>) 1""" - , """Data.Functor.(<$) 4""" - , """Data.Functor.(<$>) 4""" - , """Data.Functor.(<@>) 4""" - , """Data.Functor.Contravariant.(>#<) 4""" - , """Data.Functor.Contravariant.(>$<) 4""" - , """Data.Functor.Coproduct.Nested.(<\/>) type 6""" - , """Data.Functor.Coproduct.Nested.(<\/>) 6""" - , """Data.Functor.Product.Nested.() type 6""" - , """Data.Functor.Product.Nested.() 6""" - , """Data.HeytingAlgebra.(&&) 3""" - , """Data.HeytingAlgebra.(||) 2""" - , """Data.HugeNum.(^) 8""" - , """Data.Int.Bits.(.&.) 10""" - , """Data.Int.Bits.(.^.) 10""" - , """Data.Int.Bits.(.|.) 10""" - , """Data.Lens.(%=) 4""" - , """Data.Lens.(%~) 4""" - , """Data.Lens.(&&&) 3""" - , """Data.Lens.(&&=) 4""" - , """Data.Lens.(&&~) 4""" - , """Data.Lens.(***) 3""" - , """Data.Lens.(*=) 4""" - , """Data.Lens.(*~) 4""" - , """Data.Lens.(+++) 2""" - , """Data.Lens.(+=) 4""" - , """Data.Lens.(+~) 4""" - , """Data.Lens.(-=) 4""" - , """Data.Lens.(-~) 4""" - , """Data.Lens.(.=) 4""" - , """Data.Lens.(.~) 4""" - , """Data.Lens.(//=) 4""" - , """Data.Lens.(//~) 4""" - , """Data.Lens.(<>=) 4""" - , """Data.Lens.(<>~) 4""" - , """Data.Lens.(?=) 4""" - , """Data.Lens.(?~) 4""" - , """Data.Lens.(^.) 8""" - , """Data.Lens.(^..) 8""" - , """Data.Lens.(^?) 8""" - , """Data.Lens.(||=) 4""" - , """Data.Lens.(|||) 2""" - , """Data.Lens.(||~) 4""" - , """Data.Lens.Common.(&&&) 3""" - , """Data.Lens.Common.(***) 3""" - , """Data.Lens.Common.(+++) 2""" - , """Data.Lens.Common.(|||) 2""" - , """Data.Lens.Fold.(^..) 8""" - , """Data.Lens.Fold.(^?) 8""" - , """Data.Lens.Fold.Partial.(^?!) 8""" - , """Data.Lens.Fold.Partial.(^@?!) 8""" - , """Data.Lens.Getter.(^.) 8""" - , """Data.Lens.Lens.Tuple.(&&&) 3""" - , """Data.Lens.Lens.Tuple.(***) 3""" - , """Data.Lens.Prism.Either.(+++) 2""" - , """Data.Lens.Prism.Either.(|||) 2""" - , """Data.Lens.Setter.(%=) 4""" - , """Data.Lens.Setter.(%~) 4""" - , """Data.Lens.Setter.(&&=) 4""" - , """Data.Lens.Setter.(&&~) 4""" - , """Data.Lens.Setter.(*=) 4""" - , """Data.Lens.Setter.(*~) 4""" - , """Data.Lens.Setter.(+=) 4""" - , """Data.Lens.Setter.(+~) 4""" - , """Data.Lens.Setter.(-=) 4""" - , """Data.Lens.Setter.(-~) 4""" - , """Data.Lens.Setter.(.=) 4""" - , """Data.Lens.Setter.(.~) 4""" - , """Data.Lens.Setter.(//=) 4""" - , """Data.Lens.Setter.(//~) 4""" - , """Data.Lens.Setter.(<>=) 4""" - , """Data.Lens.Setter.(<>~) 4""" - , """Data.Lens.Setter.(?=) 4""" - , """Data.Lens.Setter.(?~) 4""" - , """Data.Lens.Setter.(||=) 4""" - , """Data.Lens.Setter.(||~) 4""" - , """Data.List.(!!) 8""" - , """Data.List.(..) 8""" - , """Data.List.(:) 6""" - , """Data.List.(\\) 5""" - , """Data.List.Lazy.(!!) 8""" - , """Data.List.Lazy.(..) 8""" - , """Data.List.Lazy.(:) 6""" - , """Data.List.Lazy.(\\) 5""" - , """Data.List.Lazy.NonEmpty.(:) 6""" - , """Data.List.Lazy.Types.(:) 6""" - , """Data.List.NonEmpty.(!!) 8""" - , """Data.List.NonEmpty.(:) 6""" - , """Data.List.Types.(:) 6""" - , """Data.Monoid.(<>) 5""" - , """Data.NaturalTransformation.(~>) type 4""" - , """Data.NonEmpty.(:|) 5""" - , """Data.Number.(%) 7""" - , """Data.Number.Approximate.(~=) 4""" - , """Data.Number.Approximate.(≅) 4""" - , """Data.Number.Approximate.(≇) 4""" - , """Data.Options.(:=) 6""" - , """Data.Ord.(<) 4""" - , """Data.Ord.(<=) 4""" - , """Data.Ord.(>) 4""" - , """Data.Ord.(>=) 4""" - , """Data.Profunctor.Choice.(+++) 2""" - , """Data.Profunctor.Choice.(|||) 2""" - , """Data.Profunctor.Strong.(&&&) 3""" - , """Data.Profunctor.Strong.(***) 3""" - , """Data.Ring.(*) 7""" - , """Data.Ring.(+) 6""" - , """Data.Ring.(-) 6""" - , """Data.Semigroup.(<>) 5""" - , """Data.Semiring.(*) 7""" - , """Data.Semiring.(+) 6""" - , """Data.Tuple.Nested.(/\) type 6""" - , """Data.Tuple.Nested.(/\) 6""" - , """Foreign.Index.(!) 9""" - , """Parsing.Combinators.(!!) 8""" - , """Parsing.Combinators.($>) 4""" - , """Parsing.Combinators.(..) 8""" - , """Parsing.Combinators.(:) 6""" - , """Parsing.Combinators.(<#>) 1""" - , """Parsing.Combinators.(<$) 4""" - , """Parsing.Combinators.(<$>) 4""" - , """Parsing.Combinators.() 4""" - , """Parsing.Combinators.() 3""" - , """Parsing.Combinators.(<@>) 4""" - , """Parsing.Combinators.(<|>) 3""" - , """Parsing.Combinators.(<~?>) 4""" - , """Parsing.Combinators.(\\) 5""" - , """Parsing.Indent.(<*/>) 11""" - , """Parsing.Indent.(<+/>) 9""" - , """Parsing.Indent.(<-/>) 10""" - , """Parsing.Indent.() 12""" - , """Pathy.(<..>) 6""" - , """Pathy.(<.>) 6""" - , """Pathy.() 6""" - , """Pathy.Path.(<..>) 6""" - , """Pathy.Path.(<.>) 6""" - , """Pathy.Path.() 6""" - , """Prelude.(~>) type 4""" - , """Prelude.(#) 1""" - , """Prelude.($) 0""" - , """Prelude.($>) 4""" - , """Prelude.(&&) 3""" - , """Prelude.(*) 7""" - , """Prelude.(*>) 4""" - , """Prelude.(+) 6""" - , """Prelude.(-) 6""" - , """Prelude.(/) 7""" - , """Prelude.(/=) 4""" - , """Prelude.(<) 4""" - , """Prelude.(<#>) 1""" - , """Prelude.(<$) 4""" - , """Prelude.(<$>) 4""" - , """Prelude.(<*) 4""" - , """Prelude.(<*>) 4""" - , """Prelude.(<<<) 9""" - , """Prelude.(<=) 4""" - , """Prelude.(<=<) 1""" - , """Prelude.(<>) 5""" - , """Prelude.(<@>) 4""" - , """Prelude.(=<<) 1""" - , """Prelude.(==) 4""" - , """Prelude.(>) 4""" - , """Prelude.(>=) 4""" - , """Prelude.(>=>) 1""" - , """Prelude.(>>=) 1""" - , """Prelude.(>>>) 9""" - , """Prelude.(||) 2""" - , """StringParser.() 4""" - , """StringParser.Combinators.() 4""" - , """Test.QuickCheck.(/==) 2""" - , """Test.QuickCheck.(/=?) 2""" - , """Test.QuickCheck.(<=?) 2""" - , """Test.QuickCheck.() 2""" - , """Test.QuickCheck.(===) 2""" - , """Test.QuickCheck.(==?) 2""" - , """Test.QuickCheck.(>=?) 2""" - , """Test.QuickCheck.(>?) 2""" - , """Type.Function.(#) type 1""" - , """Type.Function.($) type 0""" - , """Type.Prelude.(+) type 0""" - , """Type.Row.(+) type 0""" - ] diff --git a/test/spago.dhall b/test/spago.dhall deleted file mode 100644 index c6a4546..0000000 --- a/test/spago.dhall +++ /dev/null @@ -1,41 +0,0 @@ -{ name = "tidy-test" -, dependencies = - [ "aff" - , "ansi" - , "argonaut-codecs" - , "argonaut-core" - , "argparse-basic" - , "arrays" - , "bifunctors" - , "console" - , "control" - , "datetime" - , "dodo-printer" - , "effect" - , "either" - , "exceptions" - , "foldable-traversable" - , "foreign-object" - , "lazy" - , "lists" - , "maybe" - , "newtype" - , "node-buffer" - , "node-child-process" - , "node-fs-aff" - , "node-path" - , "node-process" - , "node-workerbees" - , "ordered-collections" - , "partial" - , "posix-types" - , "prelude" - , "language-cst-parser" - , "node-glob-basic" - , "strings" - , "transformers" - , "tuples" - ] -, packages = ../packages.dhall -, sources = [ "src/**/*.purs", "test/*.purs", "bin/Bin/*.purs" ] -}