Skip to content

sdist puts Happy-generated .hs files in the wrong place #159

bos opened this Issue May 24, 2012 · 1 comment

1 participant

Haskell member
bos commented May 24, 2012

(Imported from Trac #166, reported by guest on 2007-10-23)

I want to use sdist to generate source distributions of Happy that don't depend on Happy, and hence come with the Happy-generated .hs files for the parsers. When I try this, the source files are included, but in the root of the tree, whereas Cabal seems to look for them in dist/build. I can move them by hand and re-generate the tarball, and that works.

I'm fairly sure this worked with older versions of Cabal.

Haskell member
bos commented May 24, 2012

(Imported comment by @dcoutts on 2007-10-23)

Sun Mar 23 14:54:52 GMT 2008  Andrea Vezzosi <>

  • FIX #166 by setting the right buildDir when preprocessing in sdist
This fixes the immediate problem. The rest of the problem is that tarballs that have pre-generated files in dist/ will get cleaned. They should really go in another dir that is checked but not cleaned. I'll open a separate bug on that issue.
@bos bos closed this May 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.