dfithian / prune-juice

Prune unused Haskell dependencies.
MIT License
48 stars 4 forks source link

Couldn't match type Distribution.Utils.Path.SymbolicPath #13

Closed yaitskov closed 2 years ago

yaitskov commented 3 years ago

Trying to build prune-juice-0.6 from nixpkgs master with ghc 8.10.7:

[6 of 7] Compiling Data.Prune.Cabal ( src/Data/Prune/Cabal.hs, dist/build/Data/Prune/Cabal.o, dist/build/Data/Prune/Cabal.dyn_o )

src/Data/Prune/Cabal.hs:52:84: error:
    • Couldn't match type ‘Distribution.Utils.Path.SymbolicPath
                             Distribution.Utils.Path.PackageDir
                             Distribution.Utils.Path.SourceDir’
                     with ‘[Char]’
      Expected type: FilePath
        Actual type: Distribution.Utils.Path.SymbolicPath
                       Distribution.Utils.Path.PackageDir
                       Distribution.Utils.Path.SourceDir
    • In the second argument of ‘(</>)’, namely ‘dir’
      In the second argument of ‘($)’, namely ‘fp </> dir’
      In the expression: listFilesRecursive $ fp </> dir
   |
52 |     False -> fmap mconcat . for hsSourceDirs $ \dir -> listFilesRecursive $ fp </> dir
   |                                                                                    ^^^
yaitskov commented 3 years ago

https://github.com/dfithian/prune-juice/pull/14