Freezing cabal and compiling with hackage