News for hackers. Stuff that matters.
Re:Haskell tutorial for C programmers by virtualwhys on Saturday May 10, 2014 @08:02AM (#7725122)
> For databases, there are a myriad of options and tutorials for those

Where? The only half appealing type safe query DSL that I've found for Haskell is Esqueleto, and that features a blank github readme[1] o_O

[1] https://github.com/meteficha/esqueleto

Re:Haskell tutorial for C programmers by wraithm112 on Saturday May 10, 2014 @09:11AM (#7725270)
Groundhog is pretty awesome[1]. Persistent also works, but it does some wonky stuff on SQL databases. Acid-state is really neat! Of course, there's stuff like postgresql-simple, but that's not very type safe.

[1]https://www.fpcomplete.com/school/to-infinity-and-beyond/pic...

Edit: Also, esqueleto has a pretty okay looking hackage page[2], but I've never used esqueleto, so I don't really know.

[2]http://hackage.haskell.org/package/esqueleto

Re:Haskell tutorial for C programmers by virtualwhys on Saturday May 10, 2014 @11:32AM (#7725739)
Did not know about Groundhog, thanks. Looking into the docs Groundhog does not support joins (same deal with Persistent), which I'd say is a deal breaker for most (non-trivial) applications.

Acid-state is a different beast entirely, seems to be similar to Clojure's Datomic.

That leaves us with Esqueleto for real world type safe database access (with no SQL Server or Oracle support).

I want to jump ship from Scala to Haskell but there are some gaps to be filled yet before leaving the batteries included Java ecosystem.

Re:Haskell tutorial for C programmers by cgag on Saturday May 10, 2014 @05:07PM (#7726854)
Does esqueleto not do it for you? Can you be explitit about whats missing for you? Is it just oracle or sql server support?
Re:Haskell tutorial for C programmers by carabolic on Saturday May 10, 2014 @11:26AM (#7725712)
Do you have any experience with Database Supported Haskell (DSH) [1]? I've just recently found it and it seems very nice. I didn't have the time to test it though.

[1] https://hackage.haskell.org/package/DSH

Re:Haskell tutorial for C programmers by wraithm112 on Sunday May 11, 2014 @04:02PM (#7729755)
No, I don't. That seems really cool though! Thanks for pointing that out.