News for hackers. Stuff that matters.
Re:Haskell tutorial for C programmers by wraithm112 on Saturday May 10, 2014 @07:16AM (#7725073)
There are helpful tutorials for all of the things you've mentioned. I think that part of the problem is that people don't go looking for these things. If you want to write a backend for a web-app, there are three frameworks that are all mature: Snap, Yesod, and Happstack. There are tutorials, books, and documentation for all of these frameworks. If you want to do 3D graphics, there are some pretty straightforward bindings to OpenGL, again with tutorials and documentation. If you want to talk to a USB peripheral, there's the usb-safe. For databases, there are a myriad of options and tutorials for those.

The tutorials are all out there, but one is going to have to have a pretty solid grasp on Haskell before one can understand them, just like with any other language.

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.