{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/2099","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2099/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2099/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2099/events","html_url":"https://github.com/commercialhaskell/stack/issues/2099","id":153148270,"number":2099,"title":"installation failure of ghc-mod","user":{"login":"shengc","id":940628,"avatar_url":"https://avatars.githubusercontent.com/u/940628?v=3","gravatar_id":"","url":"https://api.github.com/users/shengc","html_url":"https://github.com/shengc","followers_url":"https://api.github.com/users/shengc/followers","following_url":"https://api.github.com/users/shengc/following{/other_user}","gists_url":"https://api.github.com/users/shengc/gists{/gist_id}","starred_url":"https://api.github.com/users/shengc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shengc/subscriptions","organizations_url":"https://api.github.com/users/shengc/orgs","repos_url":"https://api.github.com/users/shengc/repos","events_url":"https://api.github.com/users/shengc/events{/privacy}","received_events_url":"https://api.github.com/users/shengc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/component:%20os%20x","name":"component: os x","color":"bfdadc"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/need%20repro","name":"need repro","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-05T00:58:09Z","updated_at":"2016-05-05T14:11:51Z","closed_at":null,"body":"This might duplicate (or partially) other existing issues. I tried to install ghc-mod through `stack install` in OSX 10.11.4. The process ended with error when building `ghc-mod`,\r\n\r\n    Couldn't match type ‘containers-0.5.6.2:Data.IntSet.Base.IntSet’\r\n                   with ‘containers-0.5.7.1:Data.IntSet.Base.IntSet’\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/217164887","html_url":"https://github.com/commercialhaskell/stack/issues/2099#issuecomment-217164887","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2099","id":217164887,"user":{"login":"sjakobi","id":3664523,"avatar_url":"https://avatars.githubusercontent.com/u/3664523?v=3","gravatar_id":"","url":"https://api.github.com/users/sjakobi","html_url":"https://github.com/sjakobi","followers_url":"https://api.github.com/users/sjakobi/followers","following_url":"https://api.github.com/users/sjakobi/following{/other_user}","gists_url":"https://api.github.com/users/sjakobi/gists{/gist_id}","starred_url":"https://api.github.com/users/sjakobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjakobi/subscriptions","organizations_url":"https://api.github.com/users/sjakobi/orgs","repos_url":"https://api.github.com/users/sjakobi/repos","events_url":"https://api.github.com/users/sjakobi/events{/privacy}","received_events_url":"https://api.github.com/users/sjakobi/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T14:11:51Z","updated_at":"2016-05-05T14:11:51Z","body":"> turns out it is because I had container-0.5.7.1 in stack.yml in one of my projects, which sort of \"polluted\" the system dependency space. Once I removed it from the yaml file, installed ghc-mod again, and it succeeded.\r\n\r\nI can reproduce the issue when I modify my global stack.yaml to contain an extra-dep on `containers-0.5.7.1`:\r\n\r\n```\r\n$ stack install ghc-mod\r\nRun from outside a project, using implicit global project config\r\nUsing resolver: lts-5.11 from implicit global project's config file: /home/simon/.stack/global-project/stack.yaml\r\nNo packages found in snapshot which provide a \"happy\" executable, which is a build-tool dependency of \"haskell-src-exts\"\r\nMissing build-tools may be caused by dependencies of the build-tool being overridden by extra-deps.\r\nThis should be fixed soon - see this issue https://github.com/commercialhaskell/stack/issues/595\r\n\r\nvoid-0.7.1: configure\r\nvoid-0.7.1: build\r\nhaskell-src-exts-1.17.1: configure\r\ncabal-helper-0.6.3.1: download\r\nvoid-0.7.1: copy/register\r\nhaskell-src-exts-1.17.1: build\r\ncabal-helper-0.6.3.1: configure\r\ncabal-helper-0.6.3.1: build\r\ncontravariant-1.4: configure\r\ncontravariant-1.4: build\r\ncontravariant-1.4: copy/register\r\ncomonad-4.2.7.2: configure\r\ncomonad-4.2.7.2: build\r\ncomonad-4.2.7.2: copy/register\r\nbifunctors-5.2: configure\r\nbifunctors-5.2: build\r\ncabal-helper-0.6.3.1: copy/register\r\nbifunctors-5.2: copy/register\r\nprofunctors-5.2: configure\r\nprofunctors-5.2: build\r\nsemigroupoids-5.0.1: configure\r\nsemigroupoids-5.0.1: build\r\nprofunctors-5.2: copy/register\r\nsemigroupoids-5.0.1: copy/register\r\nfree-4.12.4: configure\r\nfree-4.12.4: build\r\nfree-4.12.4: copy/register\r\neither-4.4.1: configure\r\neither-4.4.1: build\r\neither-4.4.1: copy/register\r\nmonad-journal-0.7.1: download\r\nmonad-journal-0.7.1: configure\r\nmonad-journal-0.7.1: build\r\nmonad-journal-0.7.1: copy/register\r\nhaskell-src-exts-1.17.1: copy/register\r\nhlint-1.9.31: configure\r\nhlint-1.9.31: build\r\nhlint-1.9.31: copy/register\r\nghc-mod-5.5.0.0: download\r\nghc-mod-5.5.0.0: configure\r\nghc-mod-5.5.0.0: build\r\nCompleted 13 action(s).\r\n\r\n--  While building package ghc-mod-5.5.0.0 using:\r\n      /tmp/stack9313/ghc-mod-5.5.0.0/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.0.0 build --ghc-options \" -ddump-hi -ddump-to-file\"\r\n    Process exited with code: ExitFailure 1\r\n    Logs have been written to: /home/simon/.stack/global-project/.stack-work/logs/ghc-mod-5.5.0.0.log\r\n\r\n    [1 of 5] Compiling NotCPP.Utils     ( NotCPP/Utils.hs, /tmp/stack9313/ghc-mod-5.5.0.0/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/NotCPP/Utils.o )\r\n    [2 of 5] Compiling NotCPP.LookupValueName ( NotCPP/LookupValueName.hs, /tmp/stack9313/ghc-mod-5.5.0.0/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/NotCPP/LookupValueName.o )\r\n    [3 of 5] Compiling NotCPP.Declarations ( NotCPP/Declarations.hs, /tmp/stack9313/ghc-mod-5.5.0.0/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/NotCPP/Declarations.o )\r\n    [4 of 5] Compiling SetupCompat      ( SetupCompat.hs, /tmp/stack9313/ghc-mod-5.5.0.0/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/SetupCompat.o )\r\n    \r\n    /tmp/stack9313/ghc-mod-5.5.0.0/SetupCompat.hs:144:38: Warning:\r\n        In the use of type constructor or class ‘InstalledPackageId’\r\n        (imported from Distribution.Simple, but defined in Distribution.Package):\r\n        Deprecated: \"Use UnitId instead\"\r\n    \r\n    /tmp/stack9313/ghc-mod-5.5.0.0/SetupCompat.hs:180:36: Warning:\r\n        In the use of type constructor or class ‘InstalledPackageId’\r\n        (imported from Distribution.Simple, but defined in Distribution.Package):\r\n        Deprecated: \"Use UnitId instead\"\r\n    [5 of 5] Compiling Main             ( /tmp/stack9313/ghc-mod-5.5.0.0/Setup.hs, /tmp/stack9313/ghc-mod-5.5.0.0/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/Main.o )\r\n    Linking /tmp/stack9313/ghc-mod-5.5.0.0/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/setup ...\r\n    Configuring ghc-mod-5.5.0.0...\r\n    Warning: This package indirectly depends on multiple versions of the same\r\n    package. This is highly likely to cause a compile failure.\r\n    package bin-package-db-0.0.0.0 requires binary-0.7.5.0\r\n    package text-1.2.2.1 requires binary-0.7.5.0\r\n    package semigroups-0.18.1 requires binary-0.7.5.0\r\n    package ghc-mod-5.5.0.0 requires binary-0.7.5.0\r\n    package Cabal-1.22.8.0 requires binary-0.7.5.0\r\n    package hpc-0.6.0.2 requires containers-0.5.6.2\r\n    package hoopl-3.10.0.2 requires containers-0.5.6.2\r\n    package ghc-7.10.3 requires containers-0.5.6.2\r\n    package binary-0.7.5.0 requires containers-0.5.6.2\r\n    package uniplate-1.6.12 requires containers-0.5.7.1\r\n    package semigroups-0.18.1 requires containers-0.5.7.1\r\n    package semigroupoids-5.0.1 requires containers-0.5.7.1\r\n    package hscolour-1.23 requires containers-0.5.7.1\r\n    package hlint-1.9.31 requires containers-0.5.7.1\r\n    package ghc-mod-5.5.0.0 requires containers-0.5.7.1\r\n    package free-4.12.4 requires containers-0.5.7.1\r\n    package djinn-lib-0.0.1.2 requires containers-0.5.7.1\r\n    package djinn-ghc-0.0.2.3 requires containers-0.5.7.1\r\n    package comonad-4.2.7.2 requires containers-0.5.7.1\r\n    package binary-0.7.5.0 requires containers-0.5.7.1\r\n    package bifunctors-5.2 requires containers-0.5.7.1\r\n    package Cabal-1.22.8.0 requires containers-0.5.7.1\r\n    Building ghc-mod-5.5.0.0...\r\n    Preprocessing library ghc-mod-5.5.0.0...\r\n    [ 1 of 55] Compiling Data.Binary.Generic ( Data/Binary/Generic.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Data/Binary/Generic.o )\r\n    [ 2 of 55] Compiling Language.Haskell.GhcMod.Read ( Language/Haskell/GhcMod/Read.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Language/Haskell/GhcMod/Read.o )\r\n    [ 3 of 55] Compiling System.Directory.ModTime ( System/Directory/ModTime.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/System/Directory/ModTime.o )\r\n    [ 4 of 55] Compiling Paths_ghc_mod    ( .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/autogen/Paths_ghc_mod.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Paths_ghc_mod.o )\r\n    [ 5 of 55] Compiling Utils            ( Utils.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Utils.o )\r\n    [ 6 of 55] Compiling Language.Haskell.GhcMod.Caching.Types ( Language/Haskell/GhcMod/Caching/Types.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Language/Haskell/GhcMod/Caching/Types.o )\r\n    [ 7 of 55] Compiling Language.Haskell.GhcMod.Types ( Language/Haskell/GhcMod/Types.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Language/Haskell/GhcMod/Types.o )\r\n    [ 8 of 55] Compiling Language.Haskell.GhcMod.Gap ( Language/Haskell/GhcMod/Gap.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Language/Haskell/GhcMod/Gap.o )\r\n    [ 9 of 55] Compiling Language.Haskell.GhcMod.Doc ( Language/Haskell/GhcMod/Doc.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Language/Haskell/GhcMod/Doc.o )\r\n    [10 of 55] Compiling Language.Haskell.GhcMod.SrcUtils ( Language/Haskell/GhcMod/SrcUtils.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Language/Haskell/GhcMod/SrcUtils.o )\r\n    [11 of 55] Compiling Language.Haskell.GhcMod.Pretty ( Language/Haskell/GhcMod/Pretty.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Language/Haskell/GhcMod/Pretty.o )\r\n    [12 of 55] Compiling Language.Haskell.GhcMod.Error ( Language/Haskell/GhcMod/Error.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Language/Haskell/GhcMod/Error.o )\r\n    [13 of 55] Compiling Language.Haskell.GhcMod.DebugLogger ( Language/Haskell/GhcMod/DebugLogger.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Language/Haskell/GhcMod/DebugLogger.o )\r\n    [14 of 55] Compiling Language.Haskell.GhcMod.DynFlags ( Language/Haskell/GhcMod/DynFlags.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Language/Haskell/GhcMod/DynFlags.o )\r\n    \r\n    /tmp/stack9313/ghc-mod-5.5.0.0/Language/Haskell/GhcMod/DynFlags.hs:82:44:\r\n        Couldn't match type ‘containers-0.5.7.1:Data.IntSet.Base.IntSet’\r\n                       with ‘containers-0.5.6.2:Data.IntSet.Base.IntSet’\r\n        NB: ‘containers-0.5.7.1:Data.IntSet.Base.IntSet’\r\n              is defined in ‘Data.IntSet.Base’ in package ‘containers-0.5.7.1’\r\n            ‘containers-0.5.6.2:Data.IntSet.Base.IntSet’\r\n              is defined in ‘Data.IntSet.Base’ in package ‘containers-0.5.6.2’\r\n        Expected type: containers-0.5.6.2:Data.IntSet.Base.IntSet\r\n          Actual type: Gap.WarnFlags\r\n        In the ‘warningFlags’ field of a record\r\n        In the expression: df {warningFlags = Gap.emptyWarnFlags}\r\n    \r\n    /tmp/stack9313/ghc-mod-5.5.0.0/Language/Haskell/GhcMod/DynFlags.hs:86:45:\r\n        Couldn't match type ‘containers-0.5.7.1:Data.IntSet.Base.IntSet’\r\n                       with ‘containers-0.5.6.2:Data.IntSet.Base.IntSet’\r\n        NB: ‘containers-0.5.7.1:Data.IntSet.Base.IntSet’\r\n              is defined in ‘Data.IntSet.Base’ in package ‘containers-0.5.7.1’\r\n            ‘containers-0.5.6.2:Data.IntSet.Base.IntSet’\r\n              is defined in ‘Data.IntSet.Base’ in package ‘containers-0.5.6.2’\r\n        Expected type: containers-0.5.6.2:Data.IntSet.Base.IntSet\r\n          Actual type: Gap.WarnFlags\r\n        In the ‘warningFlags’ field of a record\r\n        In the expression: df {warningFlags = allWarningFlags}\r\n    \r\n    /tmp/stack9313/ghc-mod-5.5.0.0/Language/Haskell/GhcMod/DynFlags.hs:89:19:\r\n        Couldn't match type ‘containers-0.5.6.2:Data.IntSet.Base.IntSet’\r\n                       with ‘containers-0.5.7.1:Data.IntSet.Base.IntSet’\r\n        NB: ‘containers-0.5.6.2:Data.IntSet.Base.IntSet’\r\n              is defined in ‘Data.IntSet.Base’ in package ‘containers-0.5.6.2’\r\n            ‘containers-0.5.7.1:Data.IntSet.Base.IntSet’\r\n              is defined in ‘Data.IntSet.Base’ in package ‘containers-0.5.7.1’\r\n        Expected type: Gap.WarnFlags\r\n          Actual type: containers-0.5.6.2:Data.IntSet.Base.IntSet\r\n        In the expression:\r\n          unsafePerformIO\r\n          $ runGhc (Just libdir)\r\n            $ do { df <- getSessionDynFlags;\r\n                   df' <- addCmdOpts [\"-Wall\"] df;\r\n                   return $ warningFlags df' }\r\n        In an equation for ‘allWarningFlags’:\r\n            allWarningFlags\r\n              = unsafePerformIO\r\n                $ runGhc (Just libdir)\r\n                  $ do { df <- getSessionDynFlags;\r\n                         df' <- addCmdOpts [\"-Wall\"] df;\r\n                         return $ warningFlags df' }\r\n```"}}