Getting Started with PureScript - spago test

Hi, I’m following the getting started guide.

However, when I reached the spago test section, I encountered the following error:

[error] Some of your project files import modules from packages that are not in the direct dependencies of your project.
To fix this error add the following packages to the list of dependencies in your config:
- foldable-traversable

I had to spago install foldable-traversable before proceeding. Hope this helps someone.


This functionality was introduced in Spago 0.20.0; basically, if you depend on package A which depends on package B, you can’t import any modules from package B unless you add a direct dependency on it. This release was fairly recent, so the guide still hasn’t been updated.

Edit: I opened an issue.