Skip to content

Update generate default operators script to spago next #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
226 changes: 113 additions & 113 deletions script/src/GenerateDefaultOperatorsModule.purs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ main = do
let opts = _ { 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, "spago.yaml" ]) defaultSpagoYaml
writeTextFile UTF8 (Path.concat [ tmpPath, "package.json" ]) defaultPackageJson
_ <- ChildProcess.execSync' "npm install" opts
output <- Buffer.toString UTF8 =<< catchException
Expand Down Expand Up @@ -76,124 +76,124 @@ defaultPackageJson =
"private": true,
"type": "module",
"dependencies": {
"purescript": "^0.15.0",
"spago": "^0.20.8"
"purescript": "^0.15.15",
"spago": "next"
},
"scripts": {
"postinstall": "spago install"
}
}
"""

defaultSpagoDhall :: String
defaultSpagoDhall =
defaultSpagoYaml :: String
defaultSpagoYaml =
"""
{ 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
}
package:
name: 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
- 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
workspace:
packageSet:
registry: 63.1.2
extraPackages: {}
"""