servant-purescript icon indicating copy to clipboard operation
servant-purescript copied to clipboard

example won't compile

Open ashgaliyev opened this issue 9 years ago • 1 comments

andreyash@MacBook-Pro-Andrey frontend (master) $ rm -rf bower_components/purescript-functors
andreyash@MacBook-Pro-Andrey frontend (master) $ rm -rf bower_components/purescript-newtype
andreyash@MacBook-Pro-Andrey frontend (master) $ pulp browserify --to dist/app.js
* Browserifying project in /Users/andreyash/Development/purescript/servant-purescript/examples/central-counter/frontend
* Building project in /Users/andreyash/Development/purescript/servant-purescript/examples/central-counter/frontend
Compiling Counter.WebAPI
Error found:
in module Counter.WebAPI
at /Users/andreyash/Development/purescript/servant-purescript/examples/central-counter/frontend/src/Counter/WebAPI.purs line 8, column 41 - line 8, column 55

  Cannot import type class MonadAsk from module Control.Monad.Reader.Class
  It either does not exist or the module does not export it.


See https://github.com/purescript/purescript/wiki/Error-Code-UnknownImport for more information,
or to contribute content related to this error.


* ERROR: Subcommand terminated with exit code 1

andreyash@MacBook-Pro-Andrey frontend (master) $ node --version
v6.9.5
andreyash@MacBook-Pro-Andrey frontend (master) $ psc --version
0.9.3

MonadAsk exists starting from v2.0.0 of purescript-transformers. But in resolutions sections it is v1.0.0. If I try to change version to 2, a lot of other errors appears.

ashgaliyev avatar Feb 08 '17 12:02 ashgaliyev

Thanks! I was afraid that this is a new feature, that's why I made no release yet.

eskimor avatar Feb 08 '17 12:02 eskimor