Title: Effective Haskell (Page 31)

Hey, sorry you’re having a problem! Here’s a working version of the example you can copy and paste:

module Main where

makeGreeting salutation person =
  let messageWithTrailingSpace = salutation <> " "
  in messageWithTrailingSpace <> person

extendedGreeting person =
  let hello = makeGreeting "Hello" person
      goodDay = makeGreeting "I hope you have a nice afternoon" person
      goodBye = makeGreeting "see you later" person
  in hello <> "\n" <> goodDay <> "\n" <> goodBye

main = print $ extendedGreeting "George"

If you can paste your code and the output of the errors I’d be happy to help you spot what’s going on!