Create a temp file for ghc-mod.  This lets commands work with the actual contents of the buffer and not with a potentially stale on-disk copy of the file.