Closed int-index closed 4 years ago
We discussed this with @simonmar elsewhere and concluded that a better solution (for now) would be to check in Happy-generated files.
Could we do it both ways, using compiler flags or something to switch between the too? Beyond bootstrapping, I think this is useful to test happy.
@simonmar Maybe see:
It is nice to have the submodule so we can have GHC branches using alex/happy branches, whether to demonstrate new features, or as in the recent case, that a branch changing the primops works at all.
Before this patch, building
happy
required a pre-built binary ofhappy
. This was elegant in the same way a self-hosting compiler is elegant. But it also made building purely from source more complicated than needed.This patch introduces a small, bespoke parsing library, and applies it for parsing
.y
and.ly
files.Now
happy
doesn't depend on itself, and can be built using just GHC.Closes #169