darcs patch: make Alex only occupy {alex, Alex, ALEX}* names (still assuming Prelude)

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Fri Jan 18 05:23:34 EST 2008

On Thu, 2008-01-17 at 18:26 -0500, Isaac Dupree wrote:
> Isaac Dupree wrote:
> > Duncan Coutts wrote:
> >> I've had code break by changing -agc options to happy because it started
> >> importing Haskell98 modules and my package did not depend on the
> >> haskell98 package.
> > 
> > in that case, should we switch to importing the hierarchical names in 
> > Happy/Alex-generated code, since everyone uses those these days?  I 
> > could make a patch to do that too.
> a better design IMHO, though more work, would be to make alex also 
> provide a haskell-library that its generated code uses and depends upon; 
> then it wouldn't have to be quite as ugly in a few ways

I disagree. One of the great advantages of alex and happy is that they
generate (mostly) self contained modules. If you had to have alex
installed to use a alex-generated module that'd be a step back and could
cause tricky bootstrapping problems.


More information about the Libraries mailing list