News for hackers. Stuff that matters.
Re:Developing Web Applications with Haskell by 15155 on Saturday July 04, 2015 @06:03PM (#9831743)
I'd like to see something like this, but with JSON-based APIs instead of HTML templating.
Re:Developing Web Applications with Haskell by codygman on Saturday July 04, 2015 @06:25PM (#9831792)
Re:Developing Web Applications with Haskell by serras on Sunday July 05, 2015 @03:39AM (#9832846)
(Author here) There is a set of exercises that come with the slides at https://github.com/serras/lambdaconf-2015-web In particular, they introduce the Aeson library for both producing and consuming JSON.
Re:Developing Web Applications with Haskell by framp on Saturday July 04, 2015 @07:59PM (#9831998)
You should check out PostgREST, a tool to expose Postres tables through a JSON APIs: https://github.com/begriffs/postgrest
Re:Developing Web Applications with Haskell by dllthomas on Sunday July 05, 2015 @01:14PM (#9834157)
I believe the HTML templating stuff is pretty optional in all the major Haskell web platforms. I know in Yesod it is trivial to serve JSON rather than HTML from an end-point, and pretty easy to serve multiple representations of the same resource.
Re:Developing Web Applications with Haskell by danidiaz on Saturday July 04, 2015 @06:17PM (#9831777)
"aeson" is the go-to library for producing and parsing JSON in Haskell.
Re:Developing Web Applications with Haskell by akurilin on Saturday July 04, 2015 @08:00PM (#9832004)
thoughtbot's carnival is a good example of a JSON API written with Yesod: https://github.com/thoughtbot/carnival