$HOME/.cabal/binwhich confused me for a few minutes.
A quick run over my code showed many improvements that I could make. For example. I don't make as much use of eta reduction as I could and HLint not only tells me this, but suggests a solution.
./randomText.hs:15:1: Warning: Eta reduce
= foldl' updateMap Map.empty (wordPairs (words s))
createTrainingSet = foldl' updateMap Map.empty . wordPairs . words
I also use far too many brackets in my code. That's a combination of not knowing the precedence rules and switching over from Clojure! Again, a warning is provided and the minimum brackets required shown.
HLint also finds common patterns in code and suggests rewriting them in terms of fold or map. For example when I was trying to write my own
./myfunctions.hs:11:1: Error: Use map
mymap f  = 
mymap f (x : xs) = f x : mymap f xs
mymap f xs = map f xs
And similarly for written my version of length:
./myfunctions.hs:3:1: Warning: Use foldl
mylength  count = count
mylength (x : xs) count = mylength xs (1 + count)
mylength xs count = foldl (\ count x -> 1 + count) count xs
I'll definitely be making use of this before I post any more Haskell code!