Skip to content
  • Herbert Valerio Riedel's avatar
    Fix install of packages bundling generated source in dist/ (#4012) · a7fb9b9a
    Herbert Valerio Riedel authored
    Packages like `alex` include pre-generated lexer/parser source
    in their source tarball as e.g.
    
        dist/build/alex/alex-tmp/Scan.hs
        dist/build/alex/alex-tmp/Parser.hs
    
    to avoid having to have `alex` already installed before building
    `alex`...
    
    Unfortunately, 8dc39db7 broke
    packages relying on this accidental feature by changing where the
    distdir points to. This patch partly reverts that commit and
    therefore addresses the regression aspect of #4009.
    
    This fix was suggested by @dcoutts
    a7fb9b9a