Skip to content

Build failure with hpack 0.29 #359

Closed

Description

@jkachmar

cabal2nix fails to build with hpack-0.29 with the following error:

src/Distribution/Nixpkgs/Haskell/PackageSourceSpec.hs:205:12: error:
    • The constructor ‘Hpack.DecodeResult’ should have 4 arguments, but has been given 3
    • In the pattern: Hpack.DecodeResult pkg' _ _
      In the pattern: Right (Hpack.DecodeResult pkg' _ _)
      In a case alternative:
          Right (Hpack.DecodeResult pkg' _ _)
            -> do let hpackOutput = ...
                      ....
                  case
                      runParseGenericPackageDescription "<hpack output>" hpackOutput
                  of
                    Left msg -> liftIO $ ...
                    Right pkg
                      -> MaybeT $ return $ Just $ (,) True $ setCabalFileHash hash pkg
    |
205 |     Right (Hpack.DecodeResult pkg' _ _) -> do
    |   

Activity

  1. added a commit that references this issue on Jul 12, 2018
  2. added a commit that references this issue on Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions