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

Feature/cabal doctest and ghc 8.8.1 #267

Conversation

sevanspowell
Copy link
Contributor

@sevanspowell sevanspowell commented Oct 28, 2019

Just a WIP so I can hit the CI on behalf of @googleson78 and #258

- Haskell build tools run in slightly different environments (meaning different
  package databases are available).
- The nixpkgs build for polysemy-plugin is failing due to a missing package
  database, which causes the doctest to fail (more information here:
  NixOS/nixpkgs#71164).
- By using cabal-doctest we can expose the Haskell packages required to the
  doctests no matter the build tool we're using.
@sevanspowell sevanspowell mentioned this pull request Oct 28, 2019
- Use @googleson78 's changes to build polysemy on GHC 8.8.1, with slight
  modifications. The source distribution is now found in "dist-newstyle/sdist",
  so we've updated the command to point at that folder. Additionally, cabal
  v2-install doesn't support installing .tar.gz files in the same way v1-install
  did, so updated the command to use "cabal v1-install".
- Modified polysemy to use "cabal-doctest" and so overcome issues with the
  doctest tests (see issue polysemy-research#258, PR polysemy-research#265).
@sevanspowell sevanspowell force-pushed the feature/cabal-doctest-and-ghc-8.8.1 branch from d2af1d1 to a4fe8ef Compare October 28, 2019 10:03
@isovector
Copy link
Member

This is amazing, thanks so much!

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