how to find where and why cabal fails - could not resolve dependencies










6















I tried to install few modules this morning to get Eclipse FP to work, scion-browser and buildwrapper failed.



[root@localhost ghc-mod]# cabal install scion-browser
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: scion-browser-0.3.0

[root@localhost ghc-mod]# cabal install buildwrapper
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: buildwrapper-0.8.0


I briefly went on #haskell IRC but couldn't get an answer but I didn't hang around long in IRC. Then I gave up on EclipseFP and went on merry path with vim. I've used vim before for other languages and I thought I will be fine even though I might not have a debugger. But curiosity took me to install few plugins that can enhance my coding experience in haskell, however one of the plugins require ghc-mod so I thought I'll give cabal install a go again. I ended up with following error.



[root@localhost ghc-mod]# cabal install ghc-mod
Resolving dependencies...
Configuring ghc-mod-0.3.0...
Building ghc-mod-0.3.0...
Preprocessing executable 'ghc-mod' for ghc-mod-0.3.0...
[1 of 6] Compiling Param ( Param.hs, dist/build/ghc-mod/ghc-mod-tmp/Param.o )
[2 of 6] Compiling Lang ( Lang.hs, dist/build/ghc-mod/ghc-mod-tmp/Lang.o )
[3 of 6] Compiling List ( List.hs, dist/build/ghc-mod/ghc-mod-tmp/List.o )
[4 of 6] Compiling Check ( Check.hs, dist/build/ghc-mod/ghc-mod-tmp/Check.o )
[5 of 6] Compiling Browse ( Browse.hs, dist/build/ghc-mod/ghc-mod-tmp/Browse.o )

Browse.hs:41:72:
Not in scope: data constructor `ExplicitForall'
Perhaps you meant `ExplicitForAll' (imported from Language.Haskell.Exts.Extension)
Failed to install ghc-mod-0.3.0
cabal: Error: some packages failed to install:
ghc-mod-0.3.0 failed during the building phase. The exception was:
ExitFailure 1


I tried cloning the project then running cabal install and I end up with following result.



[root@localhost ghc-mod]# cabal install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: ghc-mod-4.1.0


I'd really like to get to the bottom of this issue. I don't know exactly where cabal is failing so it is really hard to find out what dependency it is complaining about exactly. By the way following are the versions of cabal and ghc.



[root@localhost ghc-mod]# cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library

[root@localhost ghc-mod]#
[root@localhost ghc-mod]# ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3


Could anyone help me understand the error message from cabal please? I'm relatively new to haskell so apologies if I've missed a trivial point.










share|improve this question



















  • 3





    This is an error in the library, ExplicitForAll was mis-spelt as ExplicitForall (lowercase a). The strange thing is that cabal install ghc-mod tries to install 0.3.0 - a version that is god knows how old. Try cabal install ghc-mod-4.0.2.

    – user2407038
    Apr 24 '14 at 19:59











  • Also, if you are getting Could not resolve dependencies a lot you are likely lost in the depths of dependency hell. I would just delete everything and install all of these packages from scratch.

    – user2407038
    Apr 24 '14 at 20:01











  • I get the same error for cabal install ghc-mod-4.0.2, cannot resolve dependencies. What do you mean by delete everything? I tried removing ~/.cabal directory in one of my laptops few months back and tried installing haskell-platform and everything again, but I always got the package already installed message . Since I use haskell as my hobby language and not for work I left it at that point like a coward and never got to bottom of that issue!

    – opensourcegeek
    Apr 24 '14 at 20:11











  • @opensourcegeek Sounds like you're definitely lost in cabal hell. Try fully uninstalling GHC and reinstalling, you seem to have some packages installed system-wide which are messing things up. You can also try building ghc-mod in a cabal sandbox, then just copy the binary from the sandbox directory to your ~/.cabal/bin directory.

    – bheklilr
    Apr 24 '14 at 20:31











  • I don't mind deleting things and reinstalling but is there any details of it on line that I could follow. The last time I tried deleting it didn't work. Also if there is an intro to usual development work flow with haskell using cabal hsenv sandbox and other tools, I'd be happy to follow that too.

    – opensourcegeek
    Apr 24 '14 at 20:39















6















I tried to install few modules this morning to get Eclipse FP to work, scion-browser and buildwrapper failed.



[root@localhost ghc-mod]# cabal install scion-browser
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: scion-browser-0.3.0

[root@localhost ghc-mod]# cabal install buildwrapper
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: buildwrapper-0.8.0


I briefly went on #haskell IRC but couldn't get an answer but I didn't hang around long in IRC. Then I gave up on EclipseFP and went on merry path with vim. I've used vim before for other languages and I thought I will be fine even though I might not have a debugger. But curiosity took me to install few plugins that can enhance my coding experience in haskell, however one of the plugins require ghc-mod so I thought I'll give cabal install a go again. I ended up with following error.



[root@localhost ghc-mod]# cabal install ghc-mod
Resolving dependencies...
Configuring ghc-mod-0.3.0...
Building ghc-mod-0.3.0...
Preprocessing executable 'ghc-mod' for ghc-mod-0.3.0...
[1 of 6] Compiling Param ( Param.hs, dist/build/ghc-mod/ghc-mod-tmp/Param.o )
[2 of 6] Compiling Lang ( Lang.hs, dist/build/ghc-mod/ghc-mod-tmp/Lang.o )
[3 of 6] Compiling List ( List.hs, dist/build/ghc-mod/ghc-mod-tmp/List.o )
[4 of 6] Compiling Check ( Check.hs, dist/build/ghc-mod/ghc-mod-tmp/Check.o )
[5 of 6] Compiling Browse ( Browse.hs, dist/build/ghc-mod/ghc-mod-tmp/Browse.o )

Browse.hs:41:72:
Not in scope: data constructor `ExplicitForall'
Perhaps you meant `ExplicitForAll' (imported from Language.Haskell.Exts.Extension)
Failed to install ghc-mod-0.3.0
cabal: Error: some packages failed to install:
ghc-mod-0.3.0 failed during the building phase. The exception was:
ExitFailure 1


I tried cloning the project then running cabal install and I end up with following result.



[root@localhost ghc-mod]# cabal install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: ghc-mod-4.1.0


I'd really like to get to the bottom of this issue. I don't know exactly where cabal is failing so it is really hard to find out what dependency it is complaining about exactly. By the way following are the versions of cabal and ghc.



[root@localhost ghc-mod]# cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library

[root@localhost ghc-mod]#
[root@localhost ghc-mod]# ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3


Could anyone help me understand the error message from cabal please? I'm relatively new to haskell so apologies if I've missed a trivial point.










share|improve this question



















  • 3





    This is an error in the library, ExplicitForAll was mis-spelt as ExplicitForall (lowercase a). The strange thing is that cabal install ghc-mod tries to install 0.3.0 - a version that is god knows how old. Try cabal install ghc-mod-4.0.2.

    – user2407038
    Apr 24 '14 at 19:59











  • Also, if you are getting Could not resolve dependencies a lot you are likely lost in the depths of dependency hell. I would just delete everything and install all of these packages from scratch.

    – user2407038
    Apr 24 '14 at 20:01











  • I get the same error for cabal install ghc-mod-4.0.2, cannot resolve dependencies. What do you mean by delete everything? I tried removing ~/.cabal directory in one of my laptops few months back and tried installing haskell-platform and everything again, but I always got the package already installed message . Since I use haskell as my hobby language and not for work I left it at that point like a coward and never got to bottom of that issue!

    – opensourcegeek
    Apr 24 '14 at 20:11











  • @opensourcegeek Sounds like you're definitely lost in cabal hell. Try fully uninstalling GHC and reinstalling, you seem to have some packages installed system-wide which are messing things up. You can also try building ghc-mod in a cabal sandbox, then just copy the binary from the sandbox directory to your ~/.cabal/bin directory.

    – bheklilr
    Apr 24 '14 at 20:31











  • I don't mind deleting things and reinstalling but is there any details of it on line that I could follow. The last time I tried deleting it didn't work. Also if there is an intro to usual development work flow with haskell using cabal hsenv sandbox and other tools, I'd be happy to follow that too.

    – opensourcegeek
    Apr 24 '14 at 20:39













6












6








6


1






I tried to install few modules this morning to get Eclipse FP to work, scion-browser and buildwrapper failed.



[root@localhost ghc-mod]# cabal install scion-browser
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: scion-browser-0.3.0

[root@localhost ghc-mod]# cabal install buildwrapper
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: buildwrapper-0.8.0


I briefly went on #haskell IRC but couldn't get an answer but I didn't hang around long in IRC. Then I gave up on EclipseFP and went on merry path with vim. I've used vim before for other languages and I thought I will be fine even though I might not have a debugger. But curiosity took me to install few plugins that can enhance my coding experience in haskell, however one of the plugins require ghc-mod so I thought I'll give cabal install a go again. I ended up with following error.



[root@localhost ghc-mod]# cabal install ghc-mod
Resolving dependencies...
Configuring ghc-mod-0.3.0...
Building ghc-mod-0.3.0...
Preprocessing executable 'ghc-mod' for ghc-mod-0.3.0...
[1 of 6] Compiling Param ( Param.hs, dist/build/ghc-mod/ghc-mod-tmp/Param.o )
[2 of 6] Compiling Lang ( Lang.hs, dist/build/ghc-mod/ghc-mod-tmp/Lang.o )
[3 of 6] Compiling List ( List.hs, dist/build/ghc-mod/ghc-mod-tmp/List.o )
[4 of 6] Compiling Check ( Check.hs, dist/build/ghc-mod/ghc-mod-tmp/Check.o )
[5 of 6] Compiling Browse ( Browse.hs, dist/build/ghc-mod/ghc-mod-tmp/Browse.o )

Browse.hs:41:72:
Not in scope: data constructor `ExplicitForall'
Perhaps you meant `ExplicitForAll' (imported from Language.Haskell.Exts.Extension)
Failed to install ghc-mod-0.3.0
cabal: Error: some packages failed to install:
ghc-mod-0.3.0 failed during the building phase. The exception was:
ExitFailure 1


I tried cloning the project then running cabal install and I end up with following result.



[root@localhost ghc-mod]# cabal install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: ghc-mod-4.1.0


I'd really like to get to the bottom of this issue. I don't know exactly where cabal is failing so it is really hard to find out what dependency it is complaining about exactly. By the way following are the versions of cabal and ghc.



[root@localhost ghc-mod]# cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library

[root@localhost ghc-mod]#
[root@localhost ghc-mod]# ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3


Could anyone help me understand the error message from cabal please? I'm relatively new to haskell so apologies if I've missed a trivial point.










share|improve this question
















I tried to install few modules this morning to get Eclipse FP to work, scion-browser and buildwrapper failed.



[root@localhost ghc-mod]# cabal install scion-browser
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: scion-browser-0.3.0

[root@localhost ghc-mod]# cabal install buildwrapper
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: buildwrapper-0.8.0


I briefly went on #haskell IRC but couldn't get an answer but I didn't hang around long in IRC. Then I gave up on EclipseFP and went on merry path with vim. I've used vim before for other languages and I thought I will be fine even though I might not have a debugger. But curiosity took me to install few plugins that can enhance my coding experience in haskell, however one of the plugins require ghc-mod so I thought I'll give cabal install a go again. I ended up with following error.



[root@localhost ghc-mod]# cabal install ghc-mod
Resolving dependencies...
Configuring ghc-mod-0.3.0...
Building ghc-mod-0.3.0...
Preprocessing executable 'ghc-mod' for ghc-mod-0.3.0...
[1 of 6] Compiling Param ( Param.hs, dist/build/ghc-mod/ghc-mod-tmp/Param.o )
[2 of 6] Compiling Lang ( Lang.hs, dist/build/ghc-mod/ghc-mod-tmp/Lang.o )
[3 of 6] Compiling List ( List.hs, dist/build/ghc-mod/ghc-mod-tmp/List.o )
[4 of 6] Compiling Check ( Check.hs, dist/build/ghc-mod/ghc-mod-tmp/Check.o )
[5 of 6] Compiling Browse ( Browse.hs, dist/build/ghc-mod/ghc-mod-tmp/Browse.o )

Browse.hs:41:72:
Not in scope: data constructor `ExplicitForall'
Perhaps you meant `ExplicitForAll' (imported from Language.Haskell.Exts.Extension)
Failed to install ghc-mod-0.3.0
cabal: Error: some packages failed to install:
ghc-mod-0.3.0 failed during the building phase. The exception was:
ExitFailure 1


I tried cloning the project then running cabal install and I end up with following result.



[root@localhost ghc-mod]# cabal install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: ghc-mod-4.1.0


I'd really like to get to the bottom of this issue. I don't know exactly where cabal is failing so it is really hard to find out what dependency it is complaining about exactly. By the way following are the versions of cabal and ghc.



[root@localhost ghc-mod]# cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library

[root@localhost ghc-mod]#
[root@localhost ghc-mod]# ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3


Could anyone help me understand the error message from cabal please? I'm relatively new to haskell so apologies if I've missed a trivial point.







haskell cabal cabal-install eclipse-fp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 '18 at 10:49









GiftZwergrapper

6461928




6461928










asked Apr 24 '14 at 19:22









opensourcegeekopensourcegeek

1,93242542




1,93242542







  • 3





    This is an error in the library, ExplicitForAll was mis-spelt as ExplicitForall (lowercase a). The strange thing is that cabal install ghc-mod tries to install 0.3.0 - a version that is god knows how old. Try cabal install ghc-mod-4.0.2.

    – user2407038
    Apr 24 '14 at 19:59











  • Also, if you are getting Could not resolve dependencies a lot you are likely lost in the depths of dependency hell. I would just delete everything and install all of these packages from scratch.

    – user2407038
    Apr 24 '14 at 20:01











  • I get the same error for cabal install ghc-mod-4.0.2, cannot resolve dependencies. What do you mean by delete everything? I tried removing ~/.cabal directory in one of my laptops few months back and tried installing haskell-platform and everything again, but I always got the package already installed message . Since I use haskell as my hobby language and not for work I left it at that point like a coward and never got to bottom of that issue!

    – opensourcegeek
    Apr 24 '14 at 20:11











  • @opensourcegeek Sounds like you're definitely lost in cabal hell. Try fully uninstalling GHC and reinstalling, you seem to have some packages installed system-wide which are messing things up. You can also try building ghc-mod in a cabal sandbox, then just copy the binary from the sandbox directory to your ~/.cabal/bin directory.

    – bheklilr
    Apr 24 '14 at 20:31











  • I don't mind deleting things and reinstalling but is there any details of it on line that I could follow. The last time I tried deleting it didn't work. Also if there is an intro to usual development work flow with haskell using cabal hsenv sandbox and other tools, I'd be happy to follow that too.

    – opensourcegeek
    Apr 24 '14 at 20:39












  • 3





    This is an error in the library, ExplicitForAll was mis-spelt as ExplicitForall (lowercase a). The strange thing is that cabal install ghc-mod tries to install 0.3.0 - a version that is god knows how old. Try cabal install ghc-mod-4.0.2.

    – user2407038
    Apr 24 '14 at 19:59











  • Also, if you are getting Could not resolve dependencies a lot you are likely lost in the depths of dependency hell. I would just delete everything and install all of these packages from scratch.

    – user2407038
    Apr 24 '14 at 20:01











  • I get the same error for cabal install ghc-mod-4.0.2, cannot resolve dependencies. What do you mean by delete everything? I tried removing ~/.cabal directory in one of my laptops few months back and tried installing haskell-platform and everything again, but I always got the package already installed message . Since I use haskell as my hobby language and not for work I left it at that point like a coward and never got to bottom of that issue!

    – opensourcegeek
    Apr 24 '14 at 20:11











  • @opensourcegeek Sounds like you're definitely lost in cabal hell. Try fully uninstalling GHC and reinstalling, you seem to have some packages installed system-wide which are messing things up. You can also try building ghc-mod in a cabal sandbox, then just copy the binary from the sandbox directory to your ~/.cabal/bin directory.

    – bheklilr
    Apr 24 '14 at 20:31











  • I don't mind deleting things and reinstalling but is there any details of it on line that I could follow. The last time I tried deleting it didn't work. Also if there is an intro to usual development work flow with haskell using cabal hsenv sandbox and other tools, I'd be happy to follow that too.

    – opensourcegeek
    Apr 24 '14 at 20:39







3




3





This is an error in the library, ExplicitForAll was mis-spelt as ExplicitForall (lowercase a). The strange thing is that cabal install ghc-mod tries to install 0.3.0 - a version that is god knows how old. Try cabal install ghc-mod-4.0.2.

– user2407038
Apr 24 '14 at 19:59





This is an error in the library, ExplicitForAll was mis-spelt as ExplicitForall (lowercase a). The strange thing is that cabal install ghc-mod tries to install 0.3.0 - a version that is god knows how old. Try cabal install ghc-mod-4.0.2.

– user2407038
Apr 24 '14 at 19:59













Also, if you are getting Could not resolve dependencies a lot you are likely lost in the depths of dependency hell. I would just delete everything and install all of these packages from scratch.

– user2407038
Apr 24 '14 at 20:01





Also, if you are getting Could not resolve dependencies a lot you are likely lost in the depths of dependency hell. I would just delete everything and install all of these packages from scratch.

– user2407038
Apr 24 '14 at 20:01













I get the same error for cabal install ghc-mod-4.0.2, cannot resolve dependencies. What do you mean by delete everything? I tried removing ~/.cabal directory in one of my laptops few months back and tried installing haskell-platform and everything again, but I always got the package already installed message . Since I use haskell as my hobby language and not for work I left it at that point like a coward and never got to bottom of that issue!

– opensourcegeek
Apr 24 '14 at 20:11





I get the same error for cabal install ghc-mod-4.0.2, cannot resolve dependencies. What do you mean by delete everything? I tried removing ~/.cabal directory in one of my laptops few months back and tried installing haskell-platform and everything again, but I always got the package already installed message . Since I use haskell as my hobby language and not for work I left it at that point like a coward and never got to bottom of that issue!

– opensourcegeek
Apr 24 '14 at 20:11













@opensourcegeek Sounds like you're definitely lost in cabal hell. Try fully uninstalling GHC and reinstalling, you seem to have some packages installed system-wide which are messing things up. You can also try building ghc-mod in a cabal sandbox, then just copy the binary from the sandbox directory to your ~/.cabal/bin directory.

– bheklilr
Apr 24 '14 at 20:31





@opensourcegeek Sounds like you're definitely lost in cabal hell. Try fully uninstalling GHC and reinstalling, you seem to have some packages installed system-wide which are messing things up. You can also try building ghc-mod in a cabal sandbox, then just copy the binary from the sandbox directory to your ~/.cabal/bin directory.

– bheklilr
Apr 24 '14 at 20:31













I don't mind deleting things and reinstalling but is there any details of it on line that I could follow. The last time I tried deleting it didn't work. Also if there is an intro to usual development work flow with haskell using cabal hsenv sandbox and other tools, I'd be happy to follow that too.

– opensourcegeek
Apr 24 '14 at 20:39





I don't mind deleting things and reinstalling but is there any details of it on line that I could follow. The last time I tried deleting it didn't work. Also if there is an intro to usual development work flow with haskell using cabal hsenv sandbox and other tools, I'd be happy to follow that too.

– opensourcegeek
Apr 24 '14 at 20:39












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f23277995%2fhow-to-find-where-and-why-cabal-fails-could-not-resolve-dependencies%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f23277995%2fhow-to-find-where-and-why-cabal-fails-could-not-resolve-dependencies%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kleinkühnau

Makov (Slowakei)

Deutsches Schauspielhaus