Which error message do you find easier to read?
GHC-style:
Hangman.hs:46:32: error:
* Couldn't match type '[Char]' with 'Char'
Expected type: Char
Actual type: String
* In the first argument of 'makeGuess', namely 'letterInput'
In the first argument of 'gameLoop', namely
'(makeGuess letterInput gs)'
In the expression: gameLoop (makeGuess letterInput gs)
|
46 | else gameLoop (makeGuess letterInput gs)
| ^^^^^^^^^^^
Elm-style:
-- Type mismatch ---------------------------------------------------- Hangman.hs
46 | else gameLoop (makeGuess letterInput gs)
^^^^^^^^^^^
Couldn't match type '[Char]' with 'Char'
Actual type:
String
Expected type:
Char
See https://github.com/haskell/error-messages/issues/541 for more discussion