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

purescript 0.11 support #27

Closed legrostdg closed 7 years ago

legrostdg commented 7 years ago

servant-purescript seems to be incompatible with purescript 0.11.

When building servant-purescript generated project, I get this error:

Error found:
at src/ServerAPI.purs line 28, column 1 - line 28, column 1

  Unable to parse module:
  unexpected comma in constraints.

Class constraints in type annotations can no longer be grouped in parentheses.
Each constraint should now be separated by `=>`, for example:
    `(Applicative f, Semigroup a) => a -> f a -> f a`
  would now be written as:
    `Applicative f => Semigroup a => a -> f a -> f a`.

  expecting indentation past column 1, (, qualifier, proper name, operator or ->

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

* ERROR: Subcommand terminated with exit code 1

And line 28 contains

postMovieSearch :: forall eff m.
                   (MonadAsk (SPSettings_ SPParams_) m, MonadError AjaxError m, MonadAff ( ajax :: AJAX | eff) m)
                   => MovieSearch -> m (Array ResponseSimpleMovie)
eskimor commented 7 years ago

Ok the fix seems obvious. Unfortunately, I am pretty busy right now, so I would be happy about a PR.