Skip to content
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

Use haskell-src-exts instead of generating strings #4

Merged
merged 3 commits into from
Oct 22, 2020
Merged

Conversation

UlfNorell
Copy link
Member

Also fixes putting LANGUAGE pragmas before the module header.

The code still isn't very nice but at least now we don't have to worry about precedences.

Generates some conflicts for #3.

Also fixes putting LANGUAGE pragmas before the module header
@UlfNorell UlfNorell merged commit 36c9342 into master Oct 22, 2020
Copy link
Contributor

@jmchapman jmchapman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On first glance this is great.

A couple of questions:

  1. If you wanted to further beautify the haskell source would you then run it through something else?
  2. haskell-src-exts has this ominous message on hackage:
Maintenance
Dan Burton is currently keeping haskell-src-exts on life support. If you are interested in more actively making improvements to this package, please make your interests known.

You might want to try ghc-lib-parser instead.

Is ghc-lib-parser similar or is the current version of haskell-src-exts exactly what we want?

@UlfNorell
Copy link
Member Author

Ooh, that's slightly worrying. Merging anyway since it should be a lot easier to switch from haskell-src-exts to something else than from the horrible string hack we had before.

I haven't looked at ghc-lib-parser.

@UlfNorell UlfNorell deleted the hs-src-exts branch November 2, 2020 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants