Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a huge refactor of
ucd2haskell
, motivated by similar work inghc-internal
. This will prevent this tool from further bit-rotting.streamly
. This package is overkilled here and hasan instable API. The version we use is not supported by recent GHCs
and non-trivial migration seems to be required at each new version.
Furthermore we currently process
String
s, so there is no much benefit.Fold
type fromstreamly
for basic features. Although notmandatory, this avoid changing all the logic.
ByteString
parsers fromunicode-data-parser
. These parsersare shared with the corresponding
ucd2haskell
tool inbase
(nowghc-internal
). We now have a clear separation between parsers andgenerators. The Unicode files being very stable, this package should be
very stable as well.
and add more structure to the code base.
The files generated by this tool remain identical, although I left some
comments to further improve them.