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

Error compiling keter #207

Open
fmarquez199 opened this issue Aug 31, 2020 · 1 comment
Open

Error compiling keter #207

fmarquez199 opened this issue Aug 31, 2020 · 1 comment

Comments

@fmarquez199
Copy link

I'm trying to install keter but I got an really weird error:

# cabal install keter
Warning: The install command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-install
command or the legacy v1-install alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

Resolving dependencies...
Starting     keter-1.4.3.2
Building     keter-1.4.3.2
Failed to install keter-1.4.3.2
Build log ( /root/.cabal/logs/ghc-8.6.5/keter-1.4.3.2-JnoPdqlN7qRAkZJQl30r6n.log ):
cabal: Entering directory '/tmp/cabal-tmp-106138/keter-1.4.3.2'
Configuring keter-1.4.3.2...
Preprocessing library for keter-1.4.3.2..
Building library for keter-1.4.3.2..
[ 1 of 18] Compiling Codec.Archive.TempTarball ( Codec/Archive/TempTarball.hs, dist/build/Codec/Archive/TempTarball.o )
[ 2 of 18] Compiling Data.Conduit.LogFile ( Data/Conduit/LogFile.hs, dist/build/Data/Conduit/LogFile.o )
[ 3 of 18] Compiling Data.Conduit.Process.Unix ( Data/Conduit/Process/Unix.hs, dist/build/Data/Conduit/Process/Unix.o )

Data/Conduit/Process/Unix.hs:65:20: error:
    • The constructor ‘ProcessHandle’ should have 3 arguments, but has been given 2
    • In the pattern: ProcessHandle m _
      In an equation for ‘processHandleMVar’:
          processHandleMVar (ProcessHandle m _) = m
   |
65 | processHandleMVar (ProcessHandle m _) = m
   |                    ^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-106138/keter-1.4.3.2'
cabal: Error: some packages failed to install:
keter-1.4.3.2-JnoPdqlN7qRAkZJQl30r6n failed during the building phase. The
exception was:
ExitFailure 1

I checked data type constructor ProcessHandle and this does not have 3 arguments, just 2, I don't know why compiler is throwing this error.

@mmzx
Copy link
Collaborator

mmzx commented Sep 12, 2020

Have you tried to use cabal new-* commands?

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

No branches or pull requests

2 participants