New answers tagged

4 votes
Accepted

Rendering a cross in ASCII art

Yes, you could use the Reader monad to get a pointfree version of renderCross', like this: ...
user avatar
  • 156
2 votes
Accepted

Hangman game in Haskell, written using a state monad

The below is pretty casual, sorry it's not better organized or cited. You're not using the bound attribute values in instance Show GameVars. Instead of ...
user avatar
3 votes
Accepted

A simple hangman game in Haskell

looks really good! Here are some suggestions, in rough order of significance The game essentially can be described by the three values word, ...
user avatar
  • 535
5 votes

Simple number-guessing game in Haskell

Aside from what @ShapeOfMatter have already said. I'd suggest to force yourself into pure functions as much as you can. This is the way functional is design for. Notice that when you make a guess you ...
user avatar
  • 151
6 votes
Accepted

Simple number-guessing game in Haskell

This is pretty good for your first project! And it mostly works! Wall Using the option -Wall will get the compiler to complain more about little ambiguities in your ...
user avatar
1 vote

Simple Manual Lexer in Haskell

I would have wanted to do something that looks like this parse s = tryParseInteger s OR tryParseString s OR tryParseNil ...
user avatar

Top 50 recent answers are included