eskimor / servant-purescript

Translate servant API to purescript code, with the help of purescript-bridge.
BSD 3-Clause "New" or "Revised" License
105 stars 44 forks source link

example won't compile #21

Open ashgaliyev opened 7 years ago

ashgaliyev commented 7 years ago
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.

eskimor commented 7 years ago

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