Questions tagged [spago]

spago is a PureScript package manager and a build tool powered by Dhall and package-sets. Use this tag when you have questions regarding this particular utility or projects managed by it. In most cases should be used along with [purescript] tag.

spago

spago is a PureScript package manager and a build tool powered by Dhall and package-sets. It is used to create, manage and build projects written in PureScript (see ).

More information

  • Documentation and installation instructions can be found on github
8 questions
4
votes
1 answer

How do you install a specific package version with Spago?

With tools like npm we can install a specific version npm install foo@1.2.0 How do you install a specific version using spago install?
3
votes
1 answer

Sourcemaps doesn't work with spago (purescript)

Spago doesn't use source maps to refer to the source code location of an error in the stack trace. Here is my Main.purs: f :: Unit -> Unit f _ = unsafeCrashWith "error" main :: Effect Unit main = do pure $ f unit I ran these commands to build…
3
votes
1 answer

How to change the node stack limit for spago?

I am working on a project in PureScript which runs lots of huge and stack-extensive tests via spago test feature. In most cases the recursion is so deep that I reach the limit and the tests fail with RangeError: Maximum call stack size…
radrow
  • 6,419
  • 4
  • 26
  • 53
2
votes
1 answer

What is the difference between packages.dhall and spago.dhall files?

spago docs state: packages.dhall: this file is meant to contain the totality of the packages available to your project (that is, any package you might want to import). In practice it pulls in the official package-set as a base, and you are then…
bela53
  • 3,040
  • 12
  • 27
1
vote
1 answer

How to uninstall packages with spago?

What is the spago equivalent of yarn remove or npm uninstall? Is there no way to remove packages as with Haskell stack? If so, what are the steps to remove a package manually?
Coding Edgar
  • 1,285
  • 1
  • 8
  • 22
0
votes
1 answer

Purescript: How to read a string from stdin and save it?

I'm quite new to Purescript and I am trying to process some user input (received from stdin) but my best approach is this one: processInput :: String -> Effect Unit processInput input = do let arr = split (Pattern " ") input player1 =…
0
votes
2 answers

Running spago build returns error installing dependencies

I just started with purescript. Running spago build always return an error which says - Failed to install dependency "effect" Git output: fatal: destination path '.' already exists and is not an empty directory. Aborting installation [error]…
0
votes
1 answer

Does purescript spago has package scopes?

npm has scopes like @somescope/somepackagename which is nice for avoiding package name collision, does spago has the same? (maybe is not spago what should have them but package-sets?)
Coding Edgar
  • 1,285
  • 1
  • 8
  • 22