Skip to content

Commit

Permalink
Add more useful comments in spago.dhall (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMartinez authored Apr 21, 2021
1 parent 41ad739 commit 1d247ba
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 14 deletions.
8 changes: 1 addition & 7 deletions templates/packages.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ 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:
Expand Down Expand Up @@ -49,6 +42,7 @@ in upstream
with halogen.repo = "https://example.com/path/to/git/repo.git"
with halogen-vdom.version = "v4.0.0"
with halogen-vdom.dependencies = [ "extra-dependency" ] # halogen-vdom.dependencies
-------------------------------
### Additions
Expand Down
8 changes: 8 additions & 0 deletions templates/spago.dhall
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{-
Welcome to a Spago project!
You can edit this file as you like.
Need help? See the following resources:
- Spago documentation: https://github.com/purescript/spago
- Dhall language tour: https://docs.dhall-lang.org/tutorials/Language-Tour.html
When creating a new Spago project, you can use
`spago init --no-comments` or `spago init -C`
to generate this file without the comments in this block.
-}
{ name = "my-project"
, dependencies = [ "console", "effect", "prelude", "psci-support" ]
Expand Down
8 changes: 1 addition & 7 deletions test/fixtures/packages-older-tag.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ 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:
Expand Down Expand Up @@ -49,6 +42,7 @@ in upstream
with halogen.repo = "https://example.com/path/to/git/repo.git"
with halogen-vdom.version = "v4.0.0"
with halogen-vdom.dependencies = [ "extra-dependency" ] # halogen-vdom.dependencies
-------------------------------
### Additions
Expand Down
8 changes: 8 additions & 0 deletions test/fixtures/spago-bower-import.dhall
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{-
Welcome to a Spago project!
You can edit this file as you like.
Need help? See the following resources:
- Spago documentation: https://github.com/purescript/spago
- Dhall language tour: https://docs.dhall-lang.org/tutorials/Language-Tour.html
When creating a new Spago project, you can use
`spago init --no-comments` or `spago init -C`
to generate this file without the comments in this block.
-}
{ name = "simple-json"
, dependencies =
Expand Down
8 changes: 8 additions & 0 deletions test/fixtures/spago-install-failure.dhall
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{-
Welcome to a Spago project!
You can edit this file as you like.
Need help? See the following resources:
- Spago documentation: https://github.com/purescript/spago
- Dhall language tour: https://docs.dhall-lang.org/tutorials/Language-Tour.html
When creating a new Spago project, you can use
`spago init --no-comments` or `spago init -C`
to generate this file without the comments in this block.
-}
{ name = "aaa"
, dependencies = [ "console", "effect", "prelude", "psci-support" ]
Expand Down
8 changes: 8 additions & 0 deletions test/fixtures/spago-install-success.dhall
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{-
Welcome to a Spago project!
You can edit this file as you like.
Need help? See the following resources:
- Spago documentation: https://github.com/purescript/spago
- Dhall language tour: https://docs.dhall-lang.org/tutorials/Language-Tour.html
When creating a new Spago project, you can use
`spago init --no-comments` or `spago init -C`
to generate this file without the comments in this block.
-}
{ name = "aaa"
, dependencies =
Expand Down
8 changes: 8 additions & 0 deletions test/fixtures/spago-psc-failure.dhall
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{-
Welcome to a Spago project!
You can edit this file as you like.
Need help? See the following resources:
- Spago documentation: https://github.com/purescript/spago
- Dhall language tour: https://docs.dhall-lang.org/tutorials/Language-Tour.html
When creating a new Spago project, you can use
`spago init --no-comments` or `spago init -C`
to generate this file without the comments in this block.
-}
{ name = "aaa"
, dependencies = [ "console", "effect", "prelude", "psci-support" ]
Expand Down
8 changes: 8 additions & 0 deletions test/fixtures/spago-psc-success.dhall
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{-
Welcome to a Spago project!
You can edit this file as you like.
Need help? See the following resources:
- Spago documentation: https://github.com/purescript/spago
- Dhall language tour: https://docs.dhall-lang.org/tutorials/Language-Tour.html
When creating a new Spago project, you can use
`spago init --no-comments` or `spago init -C`
to generate this file without the comments in this block.
-}
{ name = "aaa"
, dependencies = [ "console", "effect", "prelude", "psci-support" ]
Expand Down

0 comments on commit 1d247ba

Please sign in to comment.