Warnings as Errors

spago
#1

I am using spago build but cannot find the option to treat warnings as errors.

There is --purs-args but with purs compile I do not see this option either.

Is there a way to build with warnings treated as errors?

#2

You can use psa for this, with the --strict flag. Spago will just try to use it once you have it installed, and you can pass the flag with --purs-args '--strict'

1 Like