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 #28

Closed legrostdg closed 7 years ago

legrostdg commented 7 years ago

Fixes #27

legrostdg commented 7 years ago

Next error:

Error found:
in module ServerAPI
at src/ServerAPI.purs line 10, column 1 - line 10, column 41

  Module Data.Argonaut.Printer was not found.
  Make sure the source file exists, and that it has been provided as an input to psc.
themoritz commented 7 years ago

@legrostdg it seems the Data.Argonaut.Printer module along with the printJson function was removed from purescript-argonaut-core. I think you can instead use stringify from Data.Argonaut.Core (see https://github.com/eskimor/servant-purescript/blob/0ee0700c6313cd3c2f93ce993ac33fac4c9d2656/src/Servant/PureScript/MakeRequests.hs#L111)

legrostdg commented 7 years ago

@themoritz Thanks, that was also my guess for an easy fix :-).

It compiles with my last commits.

themoritz commented 7 years ago

Awesome, thanks for making these changes!

legrostdg commented 7 years ago

also, partially fixes #18