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

Support for default-extensions #31

Open
benjaminweb opened this issue Nov 26, 2019 · 2 comments
Open

Support for default-extensions #31

benjaminweb opened this issue Nov 26, 2019 · 2 comments

Comments

@benjaminweb
Copy link

sol/doctest#248

How can we get the package description from cabal?
Would it make sense to get the .hs files to parse from cabal, too?

@karun012
Copy link
Owner

I haven't had the time to maintain this project in a while. Sorry, I won't be able to help you out here.

@debug-ito
Copy link

To workaround this problem, I use -optF config.json option. The config.json has the following content to enable the extension you want.

{
    "doctestOptions": ["-XOverloadedStrings", "-XStrictData", "-XGeneralizedNewtypeDeriving", "-XDeriveGeneric"]
}

There are two issues on this approach.

  • The "doctestOptions" config field is not documented.
  • You have to synchronize config.json and your cabal file manually.

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

No branches or pull requests

3 participants