lucy_idk, (edited ) to programmerhumor
@lucy_idk@mastodon.world avatar
jaror, (edited ) to haskell
@jaror@kbin.social avatar

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

JustCodeCulture, to histodons
@JustCodeCulture@mastodon.social avatar

CBI Image o' Day. A 1969 note from Grace Hopper to Jack Jones, US Air Force on their CODASYL work & COBOL’s creation by her, Jean Sammet, Jones, +others. Hopper is suggesting important contributors to CODASYL who were at the '59 demo, to invite for the '69 COBOL 10th Anniversary Celebration including Alan Taylor who had become Editor of then new magazine Computerworld.

@histodons

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines