[Haskell-cafe] Cabal and autogenerated files

Jeremy O'Donoghue jeremy.odonoghue at gmail.com
Thu Nov 12 12:54:48 EST 2009

Hi all,

Another, probably simple, question regarding cabalization.

Part of wxcore, the low level abstraction in wxHaskell, consists of
haskell modules which are generated automatically by parsing C headers
using another tool, wxdirect.

When trying to create an sdist package, we run into the problem that
because we export modules which are automatically generated, after a
'clean', they do not exist, so the sdist package generation fails.

We have tried using 'extra-tmp-files' to list the modules which are
autogenerated, but this isn't working.

Is this because we are generating the autogen modules in an autogen
directory, or is this approach likely to fail wherever we put the
autogenerated files? Our use case seems a reasonable one, as it could
reasonably exist for any project which relies on automatically
generated code.

Thanks for any suggestions.

More information about the Haskell-Cafe mailing list