Skip to content

Commit

Permalink
fix Purescript LSP server in example
Browse files Browse the repository at this point in the history
In Emacs with Projectile the `purescript-language-server` was not finding `example/spago.dhall`. The solution is to
duplicate `spago.dhall` purescript/spago#692 (comment) so it is found at the root
of the project.
  • Loading branch information
peterbecich committed Sep 24, 2023
1 parent dd66145 commit e67cebe
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 11 deletions.
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,16 @@ stack.yaml
example/**/*.js

.direnv
result
result


bower_components/
node_modules/
.pulp-cache/
output/
generated-docs/
.psc-package/
.psc*
.purs*
.psa*
.spago
10 changes: 0 additions & 10 deletions example/.gitignore

This file was deleted.

23 changes: 23 additions & 0 deletions spago.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ name = "purescript-bridge-example"
, dependencies =
[ "console"
, "effect"
, "foreign-generic"
, "profunctor-lenses"
, "aff"
, "affjax"
, "affjax-web"
, "argonaut-aeson-generic"
, "ordered-collections"
, "argonaut-codecs"
, "argonaut-generic"
, "either"
, "foldable-traversable"
, "foreign-object"
, "maybe"
, "newtype"
, "prelude"
]
, packages = ./example/packages.dhall
, sources = [ "example/src/**/*.purs", "example/test/**/*.purs" ]
}

0 comments on commit e67cebe

Please sign in to comment.