Make files TH friendly for use with cabal repl

I was unable to load Main.hs up in `cabal repl` until I made these changes. It was interpreting the `$foo`s as splices, I guess because Template Haskell is on by default.