diff --git a/.gitignore b/.gitignore index eaaa90f..ea82087 100644 --- a/.gitignore +++ b/.gitignore @@ -12,5 +12,7 @@ bin/configlet.exe **/output **/.psc* **/.psa* +**/.spago +**/.purs* .work diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index 3a36081..0cb2833 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -3,8 +3,8 @@ The simplest way to install PureScript is via Node.js and NPM. If you don't already have Node.js installed on your computer, you can download it from the [Node.js website](https://nodejs.org/). Once you have Node.js up and running, enter this command into the terminal to install the PureScript -compiler, the Pulp build tool and the Bower package manager. +compiler and the spago package manager and build tool. - npm install --global purescript pulp bower + npm install --global purescript spago More information can be found in the [PureScript repository](https://github.com/purescript/purescript/blob/master/INSTALL.md). diff --git a/docs/TESTS.md b/docs/TESTS.md index 0579c27..1ae9078 100644 --- a/docs/TESTS.md +++ b/docs/TESTS.md @@ -1,6 +1,5 @@ The Purescript exercise test suites may be run from the exercise directory -using the pulp tool. +using spago. cd exercism/project/directory/purescript/hello-world - bower install - pulp test + spago test diff --git a/exercises/accumulate/bower.json b/exercises/accumulate/bower.json deleted file mode 100644 index 1a28f88..0000000 --- a/exercises/accumulate/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "accumulate", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/accumulate/packages.dhall b/exercises/accumulate/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/accumulate/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/accumulate/spago.dhall b/exercises/accumulate/spago.dhall new file mode 100644 index 0000000..afde030 --- /dev/null +++ b/exercises/accumulate/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "accumulate" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/acronym/bower.json b/exercises/acronym/bower.json deleted file mode 100644 index 38aef1c..0000000 --- a/exercises/acronym/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "acronym", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/acronym/packages.dhall b/exercises/acronym/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/acronym/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/acronym/spago.dhall b/exercises/acronym/spago.dhall new file mode 100644 index 0000000..40dd1ea --- /dev/null +++ b/exercises/acronym/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "acronym" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/all-your-base/bower.json b/exercises/all-your-base/bower.json deleted file mode 100644 index a2ff86a..0000000 --- a/exercises/all-your-base/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "all-your-base", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/all-your-base/packages.dhall b/exercises/all-your-base/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/all-your-base/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/all-your-base/spago.dhall b/exercises/all-your-base/spago.dhall new file mode 100644 index 0000000..c89df1a --- /dev/null +++ b/exercises/all-your-base/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "all-your-base" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/allergies/bower.json b/exercises/allergies/bower.json deleted file mode 100644 index ab86ff3..0000000 --- a/exercises/allergies/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "allergies", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/allergies/packages.dhall b/exercises/allergies/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/allergies/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/allergies/spago.dhall b/exercises/allergies/spago.dhall new file mode 100644 index 0000000..9965f5f --- /dev/null +++ b/exercises/allergies/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "allergies" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/atbash-cipher/bower.json b/exercises/atbash-cipher/bower.json deleted file mode 100644 index 1492081..0000000 --- a/exercises/atbash-cipher/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "atbash-cipher", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/atbash-cipher/packages.dhall b/exercises/atbash-cipher/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/atbash-cipher/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/atbash-cipher/spago.dhall b/exercises/atbash-cipher/spago.dhall new file mode 100644 index 0000000..0873427 --- /dev/null +++ b/exercises/atbash-cipher/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "atbash-cipher" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/binary-search/bower.json b/exercises/binary-search/bower.json deleted file mode 100644 index b1a6140..0000000 --- a/exercises/binary-search/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "binary-search", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/binary-search/packages.dhall b/exercises/binary-search/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/binary-search/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/binary-search/spago.dhall b/exercises/binary-search/spago.dhall new file mode 100644 index 0000000..cdeb485 --- /dev/null +++ b/exercises/binary-search/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "binary-search" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/bob/bower.json b/exercises/bob/bower.json deleted file mode 100644 index dd05345..0000000 --- a/exercises/bob/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "bob", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/bob/packages.dhall b/exercises/bob/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/bob/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/bob/spago.dhall b/exercises/bob/spago.dhall new file mode 100644 index 0000000..a3846d4 --- /dev/null +++ b/exercises/bob/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "bob" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/bracket-push/bower.json b/exercises/bracket-push/bower.json deleted file mode 100644 index f41b446..0000000 --- a/exercises/bracket-push/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "bracket-push", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/bracket-push/packages.dhall b/exercises/bracket-push/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/bracket-push/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/bracket-push/spago.dhall b/exercises/bracket-push/spago.dhall new file mode 100644 index 0000000..8e90769 --- /dev/null +++ b/exercises/bracket-push/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "bracket-push" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/collatz-conjecture/bower.json b/exercises/collatz-conjecture/bower.json deleted file mode 100644 index 72d0595..0000000 --- a/exercises/collatz-conjecture/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "collatz-conjecture", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/collatz-conjecture/packages.dhall b/exercises/collatz-conjecture/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/collatz-conjecture/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/collatz-conjecture/spago.dhall b/exercises/collatz-conjecture/spago.dhall new file mode 100644 index 0000000..5058e45 --- /dev/null +++ b/exercises/collatz-conjecture/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "collatz-conjecture" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/crypto-square/bower.json b/exercises/crypto-square/bower.json deleted file mode 100644 index f361c62..0000000 --- a/exercises/crypto-square/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "crypto-square", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/crypto-square/packages.dhall b/exercises/crypto-square/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/crypto-square/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/crypto-square/spago.dhall b/exercises/crypto-square/spago.dhall new file mode 100644 index 0000000..ac6b326 --- /dev/null +++ b/exercises/crypto-square/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "crypto-square" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/diamond/bower.json b/exercises/diamond/bower.json deleted file mode 100644 index 057ae0e..0000000 --- a/exercises/diamond/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "diamond", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/diamond/packages.dhall b/exercises/diamond/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/diamond/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/diamond/spago.dhall b/exercises/diamond/spago.dhall new file mode 100644 index 0000000..f9038f5 --- /dev/null +++ b/exercises/diamond/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "diamond" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/difference-of-squares/bower.json b/exercises/difference-of-squares/bower.json deleted file mode 100644 index 5b1f512..0000000 --- a/exercises/difference-of-squares/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "difference-of-squares", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/difference-of-squares/packages.dhall b/exercises/difference-of-squares/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/difference-of-squares/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/difference-of-squares/spago.dhall b/exercises/difference-of-squares/spago.dhall new file mode 100644 index 0000000..68287a9 --- /dev/null +++ b/exercises/difference-of-squares/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "difference-of-squares" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/etl/bower.json b/exercises/etl/bower.json deleted file mode 100644 index b657c91..0000000 --- a/exercises/etl/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "etl", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/etl/packages.dhall b/exercises/etl/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/etl/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/etl/spago.dhall b/exercises/etl/spago.dhall new file mode 100644 index 0000000..3a22322 --- /dev/null +++ b/exercises/etl/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "etl" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/hamming/bower.json b/exercises/hamming/bower.json deleted file mode 100644 index 24f7fa2..0000000 --- a/exercises/hamming/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "hamming", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/hamming/packages.dhall b/exercises/hamming/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/hamming/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/hamming/spago.dhall b/exercises/hamming/spago.dhall new file mode 100644 index 0000000..ff125db --- /dev/null +++ b/exercises/hamming/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "hamming" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/hello-world/bower.json b/exercises/hello-world/bower.json deleted file mode 100644 index 5ac74b6..0000000 --- a/exercises/hello-world/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "hello-world", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/hello-world/packages.dhall b/exercises/hello-world/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/hello-world/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/hello-world/spago.dhall b/exercises/hello-world/spago.dhall new file mode 100644 index 0000000..a551fc4 --- /dev/null +++ b/exercises/hello-world/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "hello-world" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/isogram/bower.json b/exercises/isogram/bower.json deleted file mode 100644 index b07ba16..0000000 --- a/exercises/isogram/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "isogram", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/isogram/packages.dhall b/exercises/isogram/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/isogram/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/isogram/spago.dhall b/exercises/isogram/spago.dhall new file mode 100644 index 0000000..793f722 --- /dev/null +++ b/exercises/isogram/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "isogram" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/largest-series-product/bower.json b/exercises/largest-series-product/bower.json deleted file mode 100644 index 717fcc2..0000000 --- a/exercises/largest-series-product/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "largest-series-product", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/largest-series-product/packages.dhall b/exercises/largest-series-product/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/largest-series-product/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/largest-series-product/spago.dhall b/exercises/largest-series-product/spago.dhall new file mode 100644 index 0000000..a86fb8f --- /dev/null +++ b/exercises/largest-series-product/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "largest-series-product" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/leap/bower.json b/exercises/leap/bower.json deleted file mode 100644 index f23f07f..0000000 --- a/exercises/leap/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "leap", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/leap/packages.dhall b/exercises/leap/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/leap/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/leap/spago.dhall b/exercises/leap/spago.dhall new file mode 100644 index 0000000..deccbb2 --- /dev/null +++ b/exercises/leap/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "leap" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/meetup/bower.json b/exercises/meetup/bower.json deleted file mode 100644 index 227d8fa..0000000 --- a/exercises/meetup/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "meetup", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/meetup/packages.dhall b/exercises/meetup/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/meetup/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/meetup/spago.dhall b/exercises/meetup/spago.dhall new file mode 100644 index 0000000..e572d3e --- /dev/null +++ b/exercises/meetup/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "meetup" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/pangram/bower.json b/exercises/pangram/bower.json deleted file mode 100644 index 3e310bb..0000000 --- a/exercises/pangram/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "pangram", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/pangram/packages.dhall b/exercises/pangram/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/pangram/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/pangram/spago.dhall b/exercises/pangram/spago.dhall new file mode 100644 index 0000000..d7aad83 --- /dev/null +++ b/exercises/pangram/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "pangram" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/pascals-triangle/bower.json b/exercises/pascals-triangle/bower.json deleted file mode 100644 index e8de936..0000000 --- a/exercises/pascals-triangle/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "pascals-triangle", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/pascals-triangle/packages.dhall b/exercises/pascals-triangle/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/pascals-triangle/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/pascals-triangle/spago.dhall b/exercises/pascals-triangle/spago.dhall new file mode 100644 index 0000000..b2891ae --- /dev/null +++ b/exercises/pascals-triangle/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "pascals-triangle" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/phone-number/bower.json b/exercises/phone-number/bower.json deleted file mode 100644 index 5348e81..0000000 --- a/exercises/phone-number/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "phone-number", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/phone-number/packages.dhall b/exercises/phone-number/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/phone-number/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/phone-number/spago.dhall b/exercises/phone-number/spago.dhall new file mode 100644 index 0000000..cf377d7 --- /dev/null +++ b/exercises/phone-number/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "phone-number" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/raindrops/bower.json b/exercises/raindrops/bower.json deleted file mode 100644 index 836043d..0000000 --- a/exercises/raindrops/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "raindrops", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/raindrops/packages.dhall b/exercises/raindrops/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/raindrops/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/raindrops/spago.dhall b/exercises/raindrops/spago.dhall new file mode 100644 index 0000000..3fcda8e --- /dev/null +++ b/exercises/raindrops/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "raindrops" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/rna-transcription/bower.json b/exercises/rna-transcription/bower.json deleted file mode 100644 index 08f7c85..0000000 --- a/exercises/rna-transcription/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "rna-transcription", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/rna-transcription/packages.dhall b/exercises/rna-transcription/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/rna-transcription/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/rna-transcription/spago.dhall b/exercises/rna-transcription/spago.dhall new file mode 100644 index 0000000..36a3123 --- /dev/null +++ b/exercises/rna-transcription/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "rna-transcription" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/scrabble-score/bower.json b/exercises/scrabble-score/bower.json deleted file mode 100644 index 6baec01..0000000 --- a/exercises/scrabble-score/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "scrabble-score", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/scrabble-score/packages.dhall b/exercises/scrabble-score/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/scrabble-score/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/scrabble-score/spago.dhall b/exercises/scrabble-score/spago.dhall new file mode 100644 index 0000000..d2e99fd --- /dev/null +++ b/exercises/scrabble-score/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "scrabble-score" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/sum-of-multiples/bower.json b/exercises/sum-of-multiples/bower.json deleted file mode 100644 index 3b01da0..0000000 --- a/exercises/sum-of-multiples/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "sum-of-multiples", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/sum-of-multiples/packages.dhall b/exercises/sum-of-multiples/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/sum-of-multiples/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/sum-of-multiples/spago.dhall b/exercises/sum-of-multiples/spago.dhall new file mode 100644 index 0000000..1db4952 --- /dev/null +++ b/exercises/sum-of-multiples/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "sum-of-multiples" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/triangle/bower.json b/exercises/triangle/bower.json deleted file mode 100644 index ad3482f..0000000 --- a/exercises/triangle/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "triangle", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/triangle/packages.dhall b/exercises/triangle/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/triangle/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/triangle/spago.dhall b/exercises/triangle/spago.dhall new file mode 100644 index 0000000..f444018 --- /dev/null +++ b/exercises/triangle/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "triangle" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} diff --git a/exercises/word-count/bower.json b/exercises/word-count/bower.json deleted file mode 100644 index 0b53163..0000000 --- a/exercises/word-count/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "word-count", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "output" - ], - "dependencies": { - "purescript-console": "^4.1.0", - "purescript-datetime": "^4.0.0", - "purescript-either": "^4.0.0", - "purescript-enums": "^4.0.0", - "purescript-integers": "^4.0.0", - "purescript-lists": "^5.0.0", - "purescript-prelude": "^4.1.0", - "purescript-strings": "^4.0.0", - "purescript-unicode": "^4.0.1", - "purescript-ordered-collections": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^4.0.0", - "purescript-test-unit": "^15.0.0" - } -} diff --git a/exercises/word-count/packages.dhall b/exercises/word-count/packages.dhall new file mode 100644 index 0000000..edbc552 --- /dev/null +++ b/exercises/word-count/packages.dhall @@ -0,0 +1,110 @@ +{- +Welcome to your new Dhall package-set! + +Below are instructions for how to edit this file for most use +cases, so that you don't need to know Dhall to use it. + +## Warning: Don't Move This Top-Level Comment! + +Due to how `dhall format` currently works, this comment's +instructions cannot appear near corresponding sections below +because `dhall format` will delete the comment. However, +it will not delete a top-level comment like this one. + +## Use Cases + +Most will want to do one or both of these options: +1. Override/Patch a package's dependency +2. Add a package not already in the default package set + +This file will continue to work whether you use one or both options. +Instructions for each option are explained below. + +### Overriding/Patching a package + +Purpose: +- Change a package's dependency to a newer/older release than the + default package set's release +- Use your own modified version of some dependency that may + include new API, changed API, removed API by + using your custom git repo of the library rather than + the package set's repo + +Syntax: +where `entityName` is one of the following: +- dependencies +- repo +- version +------------------------------- +let upstream = -- +in upstream + with packageName.entityName = "new value" +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with halogen.version = "master" + with halogen.repo = "https://example.com/path/to/git/repo.git" + + with halogen-vdom.version = "v4.0.0" +------------------------------- + +### Additions + +Purpose: +- Add packages that aren't already included in the default package set + +Syntax: +where `` is: +- a tag (i.e. "v4.0.0") +- a branch (i.e. "master") +- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977") +------------------------------- +let upstream = -- +in upstream + with new-package-name = + { dependencies = + [ "dependency1" + , "dependency2" + ] + , repo = + "https://example.com/path/to/git/repo.git" + , version = + "" + } +------------------------------- + +Example: +------------------------------- +let upstream = -- +in upstream + with benchotron = + { dependencies = + [ "arrays" + , "exists" + , "profunctor" + , "strings" + , "quickcheck" + , "lcg" + , "transformers" + , "foldable-traversable" + , "exceptions" + , "node-fs" + , "node-buffer" + , "node-readline" + , "datetime" + , "now" + ] + , repo = + "https://github.com/hdgarrood/purescript-benchotron.git" + , version = + "v7.0.0" + } +------------------------------- +-} +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185 + +in upstream diff --git a/exercises/word-count/spago.dhall b/exercises/word-count/spago.dhall new file mode 100644 index 0000000..779b616 --- /dev/null +++ b/exercises/word-count/spago.dhall @@ -0,0 +1,23 @@ +{- +Welcome to a Spago project! +You can edit this file as you like. +-} +{ name = "word-count" +, dependencies = + [ "console" + , "datetime" + , "effect" + , "either" + , "enums" + , "integers" + , "lists" + , "ordered-collections" + , "prelude" + , "psci-support" + , "strings" + , "test-unit" + , "unicode" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +}