Stack2cabal install
Inside our nix-shell: cabal v2-install stack2cabal-1.0.14
giveds that error: lib/StackageToHackage/Stackage.hs:144:24: warning: [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a lambda abstraction: Patterns of type ‘Dep’ not matched: Hackage _ LocalDep _ | 144 | gitsLhs = ((SourceDep dep) -> dep) <$> filter isGitDep lhs | ^^^^^^^^^^^^^^^^^^^^^^^
lib/StackageToHackage/Stackage.hs:145:24: warning: [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a lambda abstraction: Patterns of type ‘Dep’ not matched: Hackage _ LocalDep _ | 145 | gitsRhs = ((SourceDep dep) -> dep) <$> filter isGitDep rhs | ^^^^^^^^^^^^^^^^^^^^^^^ [7 of 7] Compiling StackageToHackage.Hackage ( lib/StackageToHackage/Hackage.hs, dist/build/StackageToHackage/Hackage.o, dist/build/StackageToHackage/Hackage.dyn_o )
lib/StackageToHackage/Hackage.hs:42:48: error: Module ‘Distribution.PackageDescription.Parsec’ does not export ‘readGenericPackageDescription’ | 42 | import Distribution.PackageDescription.Parsec (readGenericPackageDescription) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Error: cabal: Failed to build stack2cabal-1.0.14 (which is required by exe:stack2cabal from stack2cabal-1.0.14). See the build log above for details.