I wonder if it is currently possible to write games in Haskell with Helm or any other engine that run on the browser through GHCJS?
Asked
Active
Viewed 1,086 times
10
-
3It would be awesome. – Lay González Feb 05 '15 at 23:44
-
1You should try it and publish your results! I'd be interested to know. – Alexander Vieth Feb 06 '15 at 00:17
-
I might. I guess my first step will be to learn Netwire. If I do something cool, I will share. For now, I think that maybe the WebKit binding could be the way to go. – Lay González Feb 06 '15 at 02:46
-
@AlexanderVieth I found someone who didn't use WebKit but WebGl. See my own answer below. – Lay González Feb 06 '15 at 21:10
2 Answers
7
Here's Pong in Elm.
And not a full game, but a turtle swimming
Mario walking around and jumping.
Here's a recent "Brief and Partial Review of Haskell in the Browser"

ja.
- 4,245
- 20
- 22
-
8But note that Elm is very much *not* Haskell (in my opinion, it is a vastly inferior *language* with a very nice *framework*). – Cactus Feb 06 '15 at 02:04
-
@Cactus, Elm's compiler is *written* in Haskell, so clearly the Elmers have a more positive view of Haskell than you do of Elm. – dfeuer Feb 06 '15 at 04:25
-
1I would agree that Elm is inferior to Haskell, but I would save the phrase 'vastly inferior' for describing JavaScript. :-D – Kris Jenkins Jun 18 '15 at 16:21
3
Well, I found this: A game in Haskell with Sodium FRP & GHCJS

Lay González
- 2,901
- 21
- 41
-
Still, I plan to write my own little game in Haskell + GHCJS + Netwire. When done, I'll publish the src. – Lay González Feb 06 '15 at 21:23
-