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 ‘[Char]’ with ‘Distribution.Simple.PreProcess.Types.Suffix’ #2

Open
Kleidukos opened this issue Jul 26, 2024 · 1 comment · May be fixed by #4
Open

Couldn't match type ‘[Char]’ with ‘Distribution.Simple.PreProcess.Types.Suffix’ #2

Kleidukos opened this issue Jul 26, 2024 · 1 comment · May be fixed by #4

Comments

@Kleidukos
Copy link

With GHC 9.6.6 I get the following error message:

Failed to build hsqml-0.3.6.0 (which is required by exe:hsqml-manic from hsqml-demo-manic-0.3.4.0). The failure occurred during the configure step. The exception was:
  /home/tchoutri/.cabal/logs/ghc-9.6.6/hsqml-0.3.6.0-bbf364fa739e65c12065e8b96c8d7bdcf0cf552fac6fd82f4a04eb906d508f21.log: withFile: user error (Error: cabal: '/home/tchoutri/.ghcup/bin/ghc' exited with an error:

dist/setup/setup.hs:184:36: error: [GHC-83865]
• Couldn't match type ‘[Char]’
with ‘Distribution.Simple.PreProcess.Types.Suffix’
Expected: Distribution.Simple.PreProcess.Types.Suffix
Actual: String
• In the expression: "o"
In the first argument of ‘findFileWithExtension’, namely ‘["o"]’
In the first argument of ‘mapM’, namely
‘(findFileWithExtension ["o"] [bDir])’
|
184 | mapM (findFileWithExtension ["o"] [bDir]) $ map (++ "_stub") ms
| ^^^
@prolic
Copy link
Owner

prolic commented Jul 26, 2024

Feel free to submit a pull request. If you don't know how to solve this issue, I might be able to look into it.

@Kleidukos Kleidukos linked a pull request Jul 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants