import Debug.Trace
myPureThing :: Bool -> Int
myPureThing b = if b
then traceShow "yay True" 42
else traceShow "oh noes False" 13
… λ> myPureThing True
"yay True"
42
λ> myPureThing False
"oh noes False"
13
I don't know if they're good for others, but I read Real World Haskell[1] and Learn You a Haskell[2]. There's also Graham Hutton's book which people like and which is free to read this month or something[3].[1] http://book.realworldhaskell.org/ – see also the in-progress updated version at https://github.com/tssm/up-to-date-real-world-haskell
[2] http://learnyouahaskell.com/
[3] https://www.cambridge.org/core/books/programming-in-haskell/...