Re:Haste language
by BadassFractal on Wednesday April 02, 2014 @12:45AM
(#7513618)
What exactly is the use-case for this? Can't quite get it from the site.
[ Parent
| on HN ]
Re:Haste language
by gamegoblin on Wednesday April 02, 2014 @12:52AM
(#7513631)
Making a JavaScript app with type safety guarantees. Also the pleasure of haskell in general. Same reason people use CoffeeScript. It compiles to JS, but you get several advantages of not using JS directly. Either syntactical, or abstraction of idioms.
Haste of course goes WAY further than CoffeeScript. But the rationale is the same. I enjoy writing Haskell much more than JS. If I can write Haskell and convert it to JS, I'll do it every time.
It compiles a sizable portion of GHC Haskell to Javascript. Since it's a general purpose language, the use-cases are basically anything that requires some custom logic to run and interact in the browser.
See here for the general Haskeller's attitude to this: http://www.haskell.org/haskellwiki/The_JavaScript_Problem