I have changed my local version, so it can compile all project files. Maybe you can use something from it. https://github.com/user471/flycheck-purescript/commit/d4a336fb8b00f3a5713f102945e52076f9b75844#diff-ca203a4689d06e88e33800e09f0d3a4b