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

Couldn't match type error when installing cabal-install #24

Open
daniel-shuy opened this issue Oct 12, 2022 · 0 comments
Open

Couldn't match type error when installing cabal-install #24

daniel-shuy opened this issue Oct 12, 2022 · 0 comments

Comments

@daniel-shuy
Copy link

When running stack install cabal-install with GHC 9.2.4, the installation fails with:

cabal-install> /tmp/stack-d8f2a9befd3f2b75/cabal-install-3.4.1.0/Distribution/Client/Init/FileCreators.hs:452:59: error:
cabal-install>     • Couldn't match type: [Char]
cabal-install>                      with: Distribution.Utils.Path.SymbolicPath
cabal-install>                              Distribution.Utils.Path.PackageDir
cabal-install>                              Distribution.Utils.Path.SourceDir
cabal-install>       Expected: Maybe
cabal-install>                   [Distribution.Utils.Path.SymbolicPath
cabal-install>                      Distribution.Utils.Path.PackageDir
cabal-install>                      Distribution.Utils.Path.SourceDir]
cabal-install>         Actual: Maybe [String]
cabal-install>     • In the expression: sourceDirs c
cabal-install>       In a case alternative: LibBuild -> sourceDirs c
cabal-install>       In the first argument of ‘maybeToFlag’, namely
cabal-install>         ‘(case buildType of
cabal-install>             LibBuild -> sourceDirs c
cabal-install>             ExecBuild -> applicationDirs c)’
cabal-install>     |
cabal-install> 452 |                                               LibBuild -> sourceDirs c
cabal-install>     |                                                           ^^^^^^^^^^^^
cabal-install>
cabal-install> /tmp/stack-d8f2a9befd3f2b75/cabal-install-3.4.1.0/Distribution/Client/Init/FileCreators.hs:453:60: error:
cabal-install>     • Couldn't match type: [Char]
cabal-install>                      with: Distribution.Utils.Path.SymbolicPath
cabal-install>                              Distribution.Utils.Path.PackageDir
cabal-install>                              Distribution.Utils.Path.SourceDir
cabal-install>       Expected: Maybe
cabal-install>                   [Distribution.Utils.Path.SymbolicPath
cabal-install>                      Distribution.Utils.Path.PackageDir
cabal-install>                      Distribution.Utils.Path.SourceDir]
cabal-install>         Actual: Maybe [String]
cabal-install>     • In the expression: applicationDirs c
cabal-install>       In a case alternative: ExecBuild -> applicationDirs c
cabal-install>       In the first argument of ‘maybeToFlag’, namely
cabal-install>         ‘(case buildType of
cabal-install>             LibBuild -> sourceDirs c
cabal-install>             ExecBuild -> applicationDirs c)’
cabal-install>     |
cabal-install> 453 |                                               ExecBuild -> applicationDirs c))
cabal-install>     |                                                            ^^^^^^^^^^^^^^^^^
cabal-install>
cabal-install> /tmp/stack-d8f2a9befd3f2b75/cabal-install-3.4.1.0/Distribution/Client/Init/FileCreators.hs:610:22: error:
cabal-install>     • Couldn't match type: [Char]
cabal-install>                      with: Distribution.Utils.Path.SymbolicPath
cabal-install>                              Distribution.Utils.Path.PackageDir
cabal-install>                              Distribution.Utils.Path.SourceDir
cabal-install>       Expected: Maybe
cabal-install>                   [Distribution.Utils.Path.SymbolicPath
cabal-install>                      Distribution.Utils.Path.PackageDir
cabal-install>                      Distribution.Utils.Path.SourceDir]
cabal-install>         Actual: Maybe [String]
cabal-install>     • In the first argument of ‘maybeToFlag’, namely ‘(testDirs c)’
cabal-install>       In the third argument of ‘fieldPAla’, namely
cabal-install>         ‘(maybeToFlag (testDirs c))’
cabal-install>       In the expression:
cabal-install>         fieldPAla
cabal-install>           "hs-source-dirs" formatHsSourceDirs (maybeToFlag (testDirs c))
cabal-install>           ["Directories containing source files."] True
cabal-install>     |
cabal-install> 610 |        (maybeToFlag (testDirs c))
cabal-install>     |                      ^^^^^^^^^^

I can't seem to find any information related to this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant