blaze-html, reform and web-routes in Yesod

34 views
Skip to first unread message

Corentin Dupont

unread,
Sep 7, 2015, 9:43:53 PM9/7/15
to Yesod Web Framework
Hi guys,
I wondered if it would be difficult to translate an application from Happstack to Yesod.
My app uses blaze-html, reform and web-routes. Are these compatible with Yesod?
I also use happstack-authenticate, is there an equivavlent?
Thanks,
Corentin

Michael Snoyman

unread,
Sep 7, 2015, 10:24:00 PM9/7/15
to yeso...@googlegroups.com
Hopefully someone with more experience here can provide more insight, but:

* blaze-html: absolutely, it's what Yesod itself is using (with Hamlet as an alternative syntax, but the same datatypes)
* reform: it should probably work, but I've never used it myself
* web-routes: possible, but tricky, and you'd end up missing out on a lot of the features of Yesod when it comes to routing
* happstack-authenticate: yesod-auth (https://www.stackage.org/package/yesod-auth)? The book also has a chapter on auth (http://www.yesodweb.com/book/authentication-and-authorization)

--
You received this message because you are subscribed to the Google Groups "Yesod Web Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yesodweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Greg Weber

unread,
Sep 8, 2015, 10:01:25 AM9/8/15
to Yesod Web Framework
It would be great to see a blog post on using reform with yesod since I am under the impression it is nicer than yesod-forms.
You should be able to convert web-routes to yesod style routing manually without issue.
Reply all
Reply to author
Forward
0 new messages