-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Hal 2017 #33
WIP: Hal 2017 #33
Conversation
|
The general idea here is to find a not-so-painful path to make pandoc use Text instead of String everywhere. There should be a conversion function
which could be used in Text.Pandoc.App, enabling conversion of modules one-by-one. Switching to Text would no longer be one huge, herculean task, but consist of many managable and beginner-friendly steps. This will also allow us to experiment with and benchmark lazy vs strict text. |
Obsoleted by switch to Text. |
See jgm/pandoc#1852. This is work in the context of http://nfa.imn.htwk-leipzig.de/HAL2017/.
Make most types polymoprhic in the string type, and use the convertible-strings package to use lazy text internally. This is a non-breaking change; the new type is
Inline' string
, and there is an aliasInline = Inline' String
.The polymorphism can be rolled back later if everybody uses the new pandoc string type, but it's possible that there is no performance penalty as ghc can compile all the
id
conversions away.