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

[WIP] Add Elm 0.18 and update misc Haskell packages. #59335

Closed
wants to merge 1 commit into from

Conversation

dhruvio
Copy link
Contributor

@dhruvio dhruvio commented Apr 11, 2019

Do not merge. Work in-progress.

Motivation for this change

Add Elm 0.18 (as elm_0_18) to the package library. In the past, I used package pinning to use an old commit of this repo to install Elm 0.18. However, upgrading to macOS Mojave caused some regressions in nixpkgs. While the necessary fixes were implemented recently in nixpkgs, it is no longer possible to pin an older version of nixpkgs to use Elm 0.18 on macOS Mojave.

In addition, I ended up encountering several issues with Haskell modules during the build process. This PR includes those fixes as well:

  • Update QuickCheck dependency for the Diff Haskell package, as Diff's tests break given an API change beginning with QuickCheck 2.12 (not working as expected, so I updated haskell-modules/configuration-common.nix to ignore Diff's tests).
    • See my inline comment under the "Files Changed" tab.
  • Added contravariant dependency to aeson as this is required when compiling with GHC < 8.6.
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date.
    • Note: I adapted the existing Elm 0.19 Nix code for Elm 0.18. Since it involved modifying script-generated Nix files, I removed the relevant documentation and scripts from the elm_0_18 directory to avoid confusion and ensure this documentation didn't need to be maintained in two places.
  • Fits CONTRIBUTING.md.

- Add Elm 0.18;
- Update QuickCheck dependency for the Diff Haskell package, as Diff's tests break given an API change beginning with QuickCheck 2.12 (not working as expected, so I updated haskell-modules/configuration-common.nix to ignore Diff's tests;
- Added contravariant dependency to aeson as this is required when compiling with GHC < 8.6.
@dhruvio dhruvio changed the title Add Elm 0.18 and update misc Haskell packages. [WIP] Add Elm 0.18 and update misc Haskell packages. Apr 11, 2019
@dhruvio
Copy link
Contributor Author

dhruvio commented Apr 12, 2019

Putting this on hold, as I've run into haskell package dependency issues since master no longer has GHC 8.0.2. I've proposed an alternate solution in #59341. Waiting to see the outcome of that ticket before proceeding with this PR.

@dhruvio
Copy link
Contributor Author

dhruvio commented May 24, 2019

No longer required, as Darwin fixes have been backported to nixos-18.03. Elm 0.18 works by pinning nixpkgs to commit c8c521f0c03189fd604247e2b2bbe4ab7081968f.

@dhruvio dhruvio closed this May 24, 2019
@dhruvio dhruvio deleted the elm_0_18 branch May 24, 2019 20:16
@dhruvio dhruvio restored the elm_0_18 branch May 24, 2019 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants