NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.39k stars 14.34k forks source link

hpack-convert 1.0.1 build fails (Haskell tooling) #53715

Open bbarker opened 5 years ago

bbarker commented 5 years ago

Issue description

On nixpkgs unstable:

Building executable 'hpack-convert' for hpack-convert-1.0.1..

on the commandline: warning:
    -fcontext-stack=100 is deprecated: use -freduction-depth=100 instead

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: 
        Paths_hpack_convert
[ 1 of 13] Compiling Hpack.GenericsUtil ( src/Hpack/GenericsUtil.hs, dist/build/hpack-convert/hpack-convert-tmp/Hpack/GenericsUtil.o )
[ 2 of 13] Compiling Hpack.Haskell    ( src/Hpack/Haskell.hs, dist/build/hpack-convert/hpack-convert-tmp/Hpack/Haskell.o )
[ 3 of 13] Compiling Hpack.Render     ( src/Hpack/Render.hs, dist/build/hpack-convert/hpack-convert-tmp/Hpack/Render.o )
[ 4 of 13] Compiling Hpack.FormattingHints ( src/Hpack/FormattingHints.hs, dist/build/hpack-convert/hpack-convert-tmp/Hpack/FormattingHints.o )
[ 5 of 13] Compiling Hpack.Util       ( src/Hpack/Util.hs, dist/build/hpack-convert/hpack-convert-tmp/Hpack/Util.o )

src/Hpack/Util.hs:106:21: error:
    • Couldn't match type ‘[[FilePath]]’ with ‘([[FilePath]], b0)’
      Expected type: IO ([[FilePath]], b0)
        Actual type: IO [[FilePath]]
    • In the second argument of ‘(<$>)’, namely
        ‘globDir compiledPatterns dir’
      In the first argument of ‘(>>=)’, namely
        ‘(fst <$> globDir compiledPatterns dir)’
      In a stmt of a 'do' block:
        files <- (fst <$> globDir compiledPatterns dir)
                   >>= mapM removeDirectories
    |
106 |   files <- (fst <$> globDir compiledPatterns dir) >>= mapM removeDirectories
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 6 of 13] Compiling Hpack.Yaml       ( src/Hpack/Yaml.hs, dist/build/hpack-convert/hpack-convert-tmp/Hpack/Yaml.o )
[11 of 13] Compiling Paths_hpack_convert ( dist/build/hpack-convert/autogen/Paths_hpack_convert.hs, dist/build/hpack-convert/hpack-convert-tmp/Paths_hpack_convert.o )
builder for '/nix/store/i273dd28hc9gfx63h2r9bvnw2g16szhy-hpack-convert-1.0.1.drv' failed with exit code 1
error: build of '/nix/store/i273dd28hc9gfx63h2r9bvnw2g16szhy-hpack-convert-1.0.1.drv' failed

Steps to reproduce

nix-env -iA nixos.haskellPackages.hpack-convert

Technical details

bbarker commented 5 years ago

Possibly related upstream issue: https://github.com/yamadapc/hpack-convert/issues/15

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.