Please include module names in error message. Also use Cabal's standard `die` function instead of calling `error`.