DanielG / ghc-mod

Happy Haskell Hacking for editors. DEPRECATED
Other
677 stars 175 forks source link

ghc-mod fails if project's cabal file contains both a library and an executable that depends on that library #501

Closed beala closed 9 years ago

beala commented 9 years ago

Here is the cabal file in question: https://github.com/beala/twitter-markov/blob/5cbb3ee7bab7b87882110fe808ddce9582a5bded/twitter-markov.cabal

What's important is that it declares an executable called twitter-markov, and, in the same file, a library that the executable depends on. I can successfully build and install this project with a sandbox using cabal sandbox init && cabal install. When I try to run ghc-mod I get:

$ ghc-mod boot
ghc-mod: <command line>: cannot satisfy -package-id twitter-markov-0.1.0.0-inplace
    (use -v for more information)

I get the same error if I run it with cabal exec -- ghc-mod boot.

Version info: ghc-mod: Built from master (bfa0b965ee3497f5f41d261072dc6bae0af00a06) ghc: 7.10.1 (installed from https://ghcformacosx.github.io/) cabal: 1.22 OS X: 10.10.3

DanielG commented 9 years ago

Please upgrade cabal-helper to at least 0.3.6.0 and recompile ghc-mod.

beala commented 9 years ago

I tried installing cabal-helper 0.3.6.0 into my ghc-mod sandbox, but that triggered a ghc-mod-5.2.1.2 install and I got the following error:

Language/Haskell/GhcMod/Gap.hs:256:18:
    Not in scope: data constructor ‘ExposePackageId’
    Perhaps you meant ‘ExposePackage’ (imported from DynFlags)
cabal: Error: some packages failed to install:
ghc-mod-5.2.1.2 failed during the building phase. The exception was:
ExitFailure 1

Full output: https://gist.github.com/beala/c8303e4c4be73004b55a

Then I instead went into the ghc-mod.cabal file and set the cabal-helper dep to cabal-helper >= 0.3.6.0.

This successfully compiled, but I'm still getting the same error when I run ghc-mod boot.

This is what's currently installed in my ghc-mod sandbox:

$ cabal exec -- ghc-pkg list
/Applications/ghc-7.10.1.app/Contents/lib/ghc-7.10.1/package.conf.d
   Cabal-1.22.2.0
   array-0.5.1.0
   base-4.8.0.0
   bin-package-db-0.0.0.0
   binary-0.7.3.0
   bytestring-0.10.6.0
   containers-0.5.6.2
   deepseq-1.4.1.1
   directory-1.2.2.0
   filepath-1.4.0.0
   ghc-7.10.1
   ghc-prim-0.4.0.0
   haskeline-0.7.2.1
   hoopl-3.10.0.2
   hpc-0.6.0.2
   integer-gmp-1.0.0.0
   pretty-1.1.2.0
   process-1.2.3.0
   rts-1.0
   template-haskell-2.10.0.0
   terminfo-0.4.0.1
   time-1.5.0.1
   transformers-0.4.2.0
   unix-2.7.1.0
   xhtml-3000.2.1
/private/tmp/ghc-mod/.cabal-sandbox/x86_64-osx-ghc-7.10.1-packages.conf.d
   MonadRandom-0.4
   StateVar-1.1.0.0
   ansi-terminal-0.6.2.1
   async-2.0.2
   base-orphans-0.3.3
   bifunctors-5
   cabal-helper-0.3.6.0
   cereal-0.4.1.1
   cmdargs-0.10.13
   comonad-4.2.6
   contravariant-1.3.1.1
   cpphs-1.19
   data-default-0.5.3
   data-default-class-0.0.1
   data-default-instances-base-0.0.1
   data-default-instances-containers-0.0.1
   data-default-instances-dlist-0.0.1
   data-default-instances-old-locale-0.0.1
   distributive-0.4.4
   djinn-ghc-0.0.2.3
   djinn-lib-0.0.1.2
   dlist-0.7.1.1
   either-4.4.1
   exceptions-0.8.0.2
   extra-1.3
   free-4.12.1
   ghc-mod-0
   ghc-paths-0.1.0.9
   ghc-syb-utils-0.2.3
   hashable-1.2.3.3
   haskell-src-exts-1.16.0.1
   hlint-1.9.21
   hscolour-1.23
   mmorph-1.0.4
   monad-control-1.0.0.4
   monad-journal-0.7.1
   mtl-2.2.1
   nats-1
   old-locale-1.0.0.7
   old-time-1.1.0.3
   polyparse-1.11
   prelude-extras-0.4
   profunctors-5.1.1
   random-1.1
   semigroupoids-5.0.0.2
   semigroups-0.16.2.2
   split-0.2.2
   stm-2.4.4
   syb-0.5.1
   tagged-0.8.0.1
   temporary-1.2.0.3
   text-1.2.1.1
   transformers-base-0.4.4
   transformers-compat-0.4.0.4
   uniplate-1.6.12
   unordered-containers-0.2.5.1
   utf8-string-1
   void-0.7
DanielG commented 9 years ago

rm -r dist/ in your project directory maybe the caches aren't playing along.

beala commented 9 years ago

Blew away my project's dist/ and sandbox and re-ran cabal install . Still getting the same error. I can see with ghc-pkg list that the project lib is installed in the sandbox:

$ cabal exec -- ghc-pkg list
/Applications/ghc-7.10.1.app/Contents/lib/ghc-7.10.1/package.conf.d
   Cabal-1.22.2.0
   array-0.5.1.0
   base-4.8.0.0
   bin-package-db-0.0.0.0
   binary-0.7.3.0
   bytestring-0.10.6.0
   containers-0.5.6.2
   deepseq-1.4.1.1
   directory-1.2.2.0
   filepath-1.4.0.0
   ghc-7.10.1
   ghc-prim-0.4.0.0
   haskeline-0.7.2.1
   hoopl-3.10.0.2
   hpc-0.6.0.2
   integer-gmp-1.0.0.0
   pretty-1.1.2.0
   process-1.2.3.0
   rts-1.0
   template-haskell-2.10.0.0
   terminfo-0.4.0.1
   time-1.5.0.1
   transformers-0.4.2.0
   unix-2.7.1.0
   xhtml-3000.2.1
/Users/beala/workspace_local/twitter_markov/.cabal-sandbox/x86_64-osx-ghc-7.10.1-packages.conf.d
   aeson-0.8.1.1
   attoparsec-0.13.0.0
   dlist-0.7.1.1
   hashable-1.2.3.3
   mtl-2.2.1
   nats-1
   primitive-0.6
   random-1.1
   safe-0.3.9
   scientific-0.3.3.8
   semigroups-0.16.2.2
   syb-0.5.1
   text-1.2.1.1
   twitter-markov-0.1.0.0              <---------------
   unordered-containers-0.2.5.1
   vector-0.10.12.3
$ cabal exec -- ghc-mod boot
ghc-mod: <command line>: cannot satisfy -package-id twitter-markov-0.1.0.0-inplace
    (use -v for more information)

It is possible this has something to do with the -inplace at the end of the package id that ghc-mod is looking for? ghc-pkg list doesn't have that at the end of twitter-markov-0.1.0.0.

DanielG commented 9 years ago

I'm pretty sure your installation still hasn't picked up the updated cabal-helper, the -inplace dep shouldn't be there at all.

beala commented 9 years ago

I tried building ghc-mod from master again with a brand new local clone:

rm -rf ghc-mod
git clone git@github.com:kazu-yamamoto/ghc-mod.git
cd ghc-mod
cabal sandbox init && cabal install happy cabal-helper-0.3.6.0 .

Then I copy the binaries from dist/ into my path. And I'm still getting the same error.

I'm able to reproduce the issue with this simple repo containing one executable target and one lib: https://github.com/beala/test

git clone git@github.com:beala/test.git && cd test && cabal install
$ ghc-mod boot
ghc-mod: <command line>: cannot satisfy -package-id test-0.1.0.0-inplace
    (use -v for more information)

Is there any other info I can provide? Here is ghc-mod's debug output in my test project:

$ ghc-mod debug
Root directory:       /Users/beala/workspace_local/test
Current directory:    /Users/beala/workspace_local/test
GHC Package flags:
    -hide-all-packages -package-id
    base-4.8.0.0-9015e10d2b2b0f71f570c3f2bbe09c8a -package-id
    test-0.1.0.0-inplace
GHC System libraries: /Applications/ghc-7.10.1.app/Contents/lib/ghc-7.10.1
GHC user options:

Cabal file:           Just "/Users/beala/workspace_local/test/test.cabal"
Cabal entrypoints:
    Setup.hs
        Main (/Users/beala/workspace_local/test/Setup.hs)
    library
        Test.HelloWorld (/Users/beala/workspace_local/test/src/lib/Test/HelloWorld.hs)
    exe:test
        Main (/Users/beala/workspace_local/test/src/main/Main.hs)
Cabal components:
    Setup.hs
        Main (/Users/beala/workspace_local/test/Setup.hs)
    library
        Test.HelloWorld (/Users/beala/workspace_local/test/src/lib/Test/HelloWorld.hs)
    exe:test
        Main (/Users/beala/workspace_local/test/src/main/Main.hs)
GHC Cabal options:
    Setup.hs
    library
        -fbuilding-cabal-package -O -outputdir dist/build -odir dist/build
        -hidir dist/build -stubdir dist/build -i -idist/build -isrc/lib
        -idist/build/autogen -Idist/build/autogen -Idist/build
        -optP-include -optPdist/build/autogen/cabal_macros.h
        -hide-all-packages -package-id
        base-4.8.0.0-9015e10d2b2b0f71f570c3f2bbe09c8a -XHaskell98
    exe:test
        -fbuilding-cabal-package -O -outputdir dist/build -odir dist/build
        -hidir dist/build -stubdir dist/build -i -idist/build/test
        -isrc/main -idist/build -isrc/lib -idist/build/autogen
        -Idist/build/test -Idist/build/autogen -Idist/build -optP-include
        -optPdist/build/autogen/cabal_macros.h -hide-all-packages
        -package-id base-4.8.0.0-9015e10d2b2b0f71f570c3f2bbe09c8a
        -XHaskell98
GHC search path options:
    Setup.hs
    library
        -i -idist/build -isrc/lib -idist/build/autogen -Idist/build/autogen
        -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h
    exe:test
        -i -idist/build/test -isrc/main -idist/build/autogen
        -Idist/build/autogen -Idist/build/test -optP-include
        -optPdist/build/autogen/cabal_macros.h
buckie commented 9 years ago

@DanielG I'm hitting the exact same -inplace issue as well, though on GHC 7.8.4. I replicated the issue with @beala 's test repo though I needed to change base to [4.7,4.9) to get it to compile.

As of earlier today, I've tried:

Also, I'll run debug on it's own dir to verify if the correct version of cabal-helper was picked up. Let me know if/how I can lend a hand with this.

4.1.6

➜  test git:(master) ✗ ghc-mod version
ghc-mod version 4.1.6 compiled by GHC 7.8.4
➜  test git:(master) ✗ ghc-mod boot | head -5
Annotations
Array
AsmCodeGen
Avail
Bag
➜  test git:(master) ✗ ghc-mod debug
Root directory:      /Users/n631802/repos/test
Current directory:   /Users/n631802/repos/test
Cabal file:          /Users/n631802/repos/test/test.cabal
GHC options:         -global-package-db -no-user-package-db -package-db /Users/n631802/repos/test/.cabal-sandbox/x86_64-osx-ghc-7.8.4-packages.conf.d -XHaskell98 -optP-include -optP/Users/n631802/repos/test/dist/build/autogen/cabal_macros.h
Include directories: /Users/n631802/repos/test /Users/n631802/repos/test/dist/build /Users/n631802/repos/test/dist/build/autogen /Users/n631802/repos/test/src/lib /Users/n631802/repos/test/src/main
Dependent packages:  base-4.7.0.2
System libraries:    /opt/ghc/ghc-7.8.4/lib/ghc-7.8.4

master

➜  test git:(master) ✗ ../ghc-mod/dist/build/ghc-mod/ghc-mod --version
ghc-mod version 0 compiled by GHC 7.8.4
➜  test git:(master) ✗ ../ghc-mod/dist/build/ghc-mod/ghc-mod boot
ghc-mod: <command line>: cannot satisfy -package-id test-0.1.0.0-inplace
    (use -v for more information)
➜  test git:(master) ✗ ../ghc-mod/dist/build/ghc-mod/ghc-mod debug
Root directory:       /Users/n631802/repos/test
Current directory:    /Users/n631802/repos/test
GHC Package flags:
    -hide-all-packages -no-user-package-db -package-db
    /Users/n631802/repos/test/.cabal-sandbox/x86_64-osx-ghc-7.8.4-packages.conf.d
    -package-id base-4.7.0.2-4f35612901a9535771ffe3b1f71eb66b
    -package-id test-0.1.0.0-inplace
GHC System libraries: /opt/ghc/ghc-7.8.4/lib/ghc-7.8.4
GHC user options:

Cabal file:           Just "/Users/n631802/repos/test/test.cabal"
Cabal entrypoints:
    Setup.hs
        Main (/Users/n631802/repos/test/Setup.hs)
    library
        Test.HelloWorld (/Users/n631802/repos/test/src/lib/Test/HelloWorld.hs)
    exe:test
        Main (/Users/n631802/repos/test/src/main/Main.hs)
Cabal components:
    Setup.hs
        Main (/Users/n631802/repos/test/Setup.hs)
    library
        Test.HelloWorld (/Users/n631802/repos/test/src/lib/Test/HelloWorld.hs)
    exe:test
        Main (/Users/n631802/repos/test/src/main/Main.hs)
GHC Cabal options:
    Setup.hs
    library
        -fbuilding-cabal-package -O -outputdir dist/build -odir dist/build
        -hidir dist/build -stubdir dist/build -i -idist/build -isrc/lib
        -idist/build/autogen -Idist/build/autogen -Idist/build
        -optP-include -optPdist/build/autogen/cabal_macros.h
        -hide-all-packages -no-user-package-db -package-db
        /Users/n631802/repos/test/.cabal-sandbox/x86_64-osx-ghc-7.8.4-packages.conf.d
        -package-id base-4.7.0.2-4f35612901a9535771ffe3b1f71eb66b
        -XHaskell98
    exe:test
        -fbuilding-cabal-package -O -outputdir dist/build -odir dist/build
        -hidir dist/build -stubdir dist/build -i -idist/build/test
        -isrc/main -idist/build -isrc/lib -idist/build/autogen
        -Idist/build/test -Idist/build/autogen -Idist/build -optP-include
        -optPdist/build/autogen/cabal_macros.h -hide-all-packages
        -no-user-package-db -package-db
        /Users/n631802/repos/test/.cabal-sandbox/x86_64-osx-ghc-7.8.4-packages.conf.d
        -package-id base-4.7.0.2-4f35612901a9535771ffe3b1f71eb66b
        -XHaskell98
GHC search path options:
    Setup.hs
    library
        -i -idist/build -isrc/lib -idist/build/autogen -Idist/build/autogen
        -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h
    exe:test
        -i -idist/build/test -isrc/main -idist/build/autogen
        -Idist/build/autogen -Idist/build/test -optP-include
        -optPdist/build/autogen/cabal_macros.h

ghc-mod debug on ghc-mod

➜  ghc-mod git:(master) ✗ ./dist/build/ghc-mod/ghc-mod --version
ghc-mod version 0 compiled by GHC 7.8.4
➜  ghc-mod git:(master) ✗ ./dist/build/ghc-mod/ghc-mod boot
ghc-mod: <command line>: cannot satisfy -package-id ghc-mod-0-inplace
    (use -v for more information)
➜  ghc-mod git:(master) ✗ ./dist/build/ghc-mod/ghc-mod debug
Root directory:       /Users/n631802/repos/ghc-mod
Current directory:    /Users/n631802/repos/ghc-mod
GHC Package flags:
    -hide-all-packages -no-user-package-db -package-db
    /Users/n631802/repos/ghc-mod/.cabal-sandbox/x86_64-osx-ghc-7.8.4-packages.conf.d
    -package-id bytestring-0.10.4.0-78bc8f2c724c765c78c004a84acf6cc3
    -package-id cabal-helper-0.3.6.0-af2fe5d43a37ae96f60022bca25e5276
    -package-id cereal-0.4.1.1-8cbe8d1359b9c0bb650d672b89a8b853
    -package-id containers-0.5.5.1-d7910f1cd81272c1f31ca9f71d0f206e
    -package-id deepseq-1.3.0.2-0ddc77716bd2515426e1ba39f6788a4f
    -package-id djinn-ghc-0.0.2.3-3b1332cf3d4a085896b4cf19286a08a5
    -package-id ghc-paths-0.1.0.9-903cc650a2397fdb8089af1fa72448b6
    -package-id ghc-syb-utils-0.2.3-595bc834e388ce7fda7713147c0c8691
    -package-id
    haskell-src-exts-1.16.0.1-c3cd43d7b57b9c5c43d4bdc902455b0b
    -package-id hlint-1.9.21-5079f22851dc3fa2e016eca059b3ee7e
    -package-id monad-control-1.0.0.4-6c1f8e5fbca10f10e897dd10e058dbee
    -package-id monad-journal-0.7.1-4c9e2d0a47d18705e3fb1e8046f76b24
    -package-id old-time-1.1.0.2-6a49465fde7e2f22f1853f35389d2e35
    -package-id syb-0.5.1-4392c4b3556d14c7f8cb011d3c1b4e3b -package-id
    temporary-1.2.0.3-5b53ea2199fa93fa7f0f6c26b242c96e -package-id
    text-1.2.1.1-8ef0a2f3c6eb30c72fb494410dc2efe1 -package-id
    time-1.4.2-192d26f44a2c945780bbb921626c3399 -package-id
    transformers-0.3.0.0-6458c21515cab7c1cf21e53141557a1c -package-id
    transformers-base-0.4.4-df53c5608746be30e79e15ec5b62cb7c
    -package-id async-2.0.2-8eeaa974e7375a529dd6320cf5f8ab24
    -package-id ghc-7.8.4-4f5395903596576e008e8ac571b42e66 -package-id
    ghc-mod-0-inplace -package-id
    mtl-2.1.3.1-96f1a7910a7553352339ed05fb61c269 -package-id
    pretty-1.1.1.1-0984f47ffe93ef3983c80b96280f1c3a -package-id
    split-0.2.2-34cfb851cc3784e22bfae7a7bddda9c5 -package-id
    base-4.7.0.2-4f35612901a9535771ffe3b1f71eb66b -package-id
    directory-1.2.1.0-a1010605adfb15e559cc8afe5aa719f7 -package-id
    filepath-1.3.0.2-25a474a9272ae6260626ce0d70ad1cab -package-id
    process-1.2.0.0-48b0e35689f85b654fce0b96da436ac1
GHC System libraries: /opt/ghc/ghc-7.8.4/lib/ghc-7.8.4
GHC user options:

Cabal file:           Just "/Users/n631802/repos/ghc-mod/ghc-mod.cabal"
Cabal entrypoints:
    Setup.hs
        Main (/Users/n631802/repos/ghc-mod/Setup.hs)
    library
        Language.Haskell.GhcMod (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod.hs)
        Language.Haskell.GhcMod.Internal (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Internal.hs)
        Paths_ghc_mod (/Users/n631802/repos/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Utils (/Users/n631802/repos/ghc-mod/Utils.hs)
        Language.Haskell.GhcMod.Boot (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Boot.hs)
        Language.Haskell.GhcMod.Browse (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Browse.hs)
        Language.Haskell.GhcMod.CabalHelper (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/CabalHelper.hs)
        Language.Haskell.GhcMod.Caching (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Caching.hs)
        Language.Haskell.GhcMod.CaseSplit (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/CaseSplit.hs)
        Language.Haskell.GhcMod.Check (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Check.hs)
        Language.Haskell.GhcMod.Convert (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Convert.hs)
        Language.Haskell.GhcMod.Cradle (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Cradle.hs)
        Language.Haskell.GhcMod.Debug (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Debug.hs)
        Language.Haskell.GhcMod.Doc (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Doc.hs)
        Language.Haskell.GhcMod.DynFlags (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/DynFlags.hs)
        Language.Haskell.GhcMod.Error (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Error.hs)
        Language.Haskell.GhcMod.FillSig (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/FillSig.hs)
        Language.Haskell.GhcMod.Find (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Find.hs)
        Language.Haskell.GhcMod.Flag (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Flag.hs)
        Language.Haskell.GhcMod.Gap (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Gap.hs)
        Language.Haskell.GhcMod.GhcPkg (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/GhcPkg.hs)
        Language.Haskell.GhcMod.HomeModuleGraph (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/HomeModuleGraph.hs)
        Language.Haskell.GhcMod.Info (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Info.hs)
        Language.Haskell.GhcMod.Lang (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Lang.hs)
        Language.Haskell.GhcMod.Lint (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Lint.hs)
        Language.Haskell.GhcMod.Logger (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Logger.hs)
        Language.Haskell.GhcMod.Logging (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Logging.hs)
        Language.Haskell.GhcMod.Modules (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Modules.hs)
        Language.Haskell.GhcMod.Monad (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Monad.hs)
        Language.Haskell.GhcMod.Monad.Types (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Monad/Types.hs)
        Language.Haskell.GhcMod.PathsAndFiles (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/PathsAndFiles.hs)
        Language.Haskell.GhcMod.PkgDoc (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/PkgDoc.hs)
        Language.Haskell.GhcMod.Pretty (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Pretty.hs)
        Language.Haskell.GhcMod.Read (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Read.hs)
        Language.Haskell.GhcMod.SrcUtils (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/SrcUtils.hs)
        Language.Haskell.GhcMod.Target (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Target.hs)
        Language.Haskell.GhcMod.Types (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Types.hs)
        Language.Haskell.GhcMod.Utils (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Utils.hs)
        Language.Haskell.GhcMod.World (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/World.hs)
    exe:ghc-mod
        Paths_ghc_mod (/Users/n631802/repos/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Main (/Users/n631802/repos/ghc-mod/src/GHCMod.hs)
    exe:ghc-modi
        Paths_ghc_mod (/Users/n631802/repos/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Main (/Users/n631802/repos/ghc-mod/src/GHCModi.hs)
        Misc (/Users/n631802/repos/ghc-mod/src/Misc.hs)
Cabal components:
    Setup.hs
        Main (/Users/n631802/repos/ghc-mod/Setup.hs)
            SetupCompat
        SetupCompat (/Users/n631802/repos/ghc-mod/SetupCompat.hs)
            NotCPP.Declarations
        NotCPP.Declarations (/Users/n631802/repos/ghc-mod/NotCPP/Declarations.hs)
            NotCPP.LookupValueName
        NotCPP.LookupValueName (/Users/n631802/repos/ghc-mod/NotCPP/LookupValueName.hs)
            NotCPP.Utils
        NotCPP.Utils (/Users/n631802/repos/ghc-mod/NotCPP/Utils.hs)
    library
        Language.Haskell.GhcMod (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod.hs)
            Language.Haskell.GhcMod.Boot
            Language.Haskell.GhcMod.Browse
            Language.Haskell.GhcMod.CaseSplit
            Language.Haskell.GhcMod.Check
            Language.Haskell.GhcMod.Cradle
            Language.Haskell.GhcMod.Debug
            Language.Haskell.GhcMod.FillSig
            Language.Haskell.GhcMod.Find
            Language.Haskell.GhcMod.Flag
            Language.Haskell.GhcMod.Info
            Language.Haskell.GhcMod.Lang
            Language.Haskell.GhcMod.Lint
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Modules
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.PkgDoc
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Internal (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Internal.hs)
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.Logger
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
            Language.Haskell.GhcMod.World
        Paths_ghc_mod (/Users/n631802/repos/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Utils (/Users/n631802/repos/ghc-mod/Utils.hs)
        Language.Haskell.GhcMod.Boot (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Boot.hs)
            Language.Haskell.GhcMod.Browse
            Language.Haskell.GhcMod.Flag
            Language.Haskell.GhcMod.Lang
            Language.Haskell.GhcMod.Modules
            Language.Haskell.GhcMod.Monad
        Language.Haskell.GhcMod.Browse (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Browse.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.CabalHelper (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/CabalHelper.hs)
            Paths_ghc_mod
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.PathsAndFiles
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
            Language.Haskell.GhcMod.World
        Language.Haskell.GhcMod.Caching (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Caching.hs)
            Utils
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad.Types
        Language.Haskell.GhcMod.CaseSplit (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/CaseSplit.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.SrcUtils
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Check (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Check.hs)
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Logger
            Language.Haskell.GhcMod.Monad
        Language.Haskell.GhcMod.Convert (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Convert.hs)
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Cradle (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Cradle.hs)
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.PathsAndFiles
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
        Language.Haskell.GhcMod.Debug (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Debug.hs)
            Language.Haskell.GhcMod.Internal
            Language.Haskell.GhcMod.CabalHelper
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Pretty
            Language.Haskell.GhcMod.Target
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
        Language.Haskell.GhcMod.Doc (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Doc.hs)
            Language.Haskell.GhcMod.Gap
        Language.Haskell.GhcMod.DynFlags (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/DynFlags.hs)
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Error (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Error.hs)
            Paths_ghc_mod
            Language.Haskell.GhcMod.Pretty
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.FillSig (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/FillSig.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.SrcUtils
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Find (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Find.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.PathsAndFiles
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
            Language.Haskell.GhcMod.World
        Language.Haskell.GhcMod.Flag (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Flag.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad
        Language.Haskell.GhcMod.Gap (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Gap.hs)
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.GhcPkg (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/GhcPkg.hs)
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.HomeModuleGraph (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/HomeModuleGraph.hs)
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Logger
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Info (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Info.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.SrcUtils
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Lang (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Lang.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Monad
        Language.Haskell.GhcMod.Lint (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Lint.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Logger
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Logger (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Logger.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad.Types
        Language.Haskell.GhcMod.Logging (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Logging.hs)
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.Pretty
        Language.Haskell.GhcMod.Modules (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Modules.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Monad (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Monad.hs)
            Language.Haskell.GhcMod.Cradle
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.Target
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Monad.Types (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Monad/Types.hs)
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.PathsAndFiles (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/PathsAndFiles.hs)
            Utils
            Language.Haskell.GhcMod.Caching
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
        Language.Haskell.GhcMod.PkgDoc (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/PkgDoc.hs)
            Language.Haskell.GhcMod.GhcPkg
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
        Language.Haskell.GhcMod.Pretty (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Pretty.hs)
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Read (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Read.hs)
        Language.Haskell.GhcMod.SrcUtils (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/SrcUtils.hs)
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.Gap
        Language.Haskell.GhcMod.Target (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Target.hs)
            Language.Haskell.GhcMod.CabalHelper
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.GhcPkg
            Language.Haskell.GhcMod.HomeModuleGraph
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.PathsAndFiles
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
        Language.Haskell.GhcMod.Types (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Types.hs)
        Language.Haskell.GhcMod.Utils (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/Utils.hs)
            Paths_ghc_mod
            Utils
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.Monad.Types
        Language.Haskell.GhcMod.World (/Users/n631802/repos/ghc-mod/Language/Haskell/GhcMod/World.hs)
            Language.Haskell.GhcMod.GhcPkg
            Language.Haskell.GhcMod.PathsAndFiles
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
    exe:ghc-mod
        Paths_ghc_mod (/Users/n631802/repos/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Main (/Users/n631802/repos/ghc-mod/src/GHCMod.hs)
            Paths_ghc_mod
            Misc
        Misc (/Users/n631802/repos/ghc-mod/src/Misc.hs)
    exe:ghc-modi
        Paths_ghc_mod (/Users/n631802/repos/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Main (/Users/n631802/repos/ghc-mod/src/GHCModi.hs)
            Paths_ghc_mod
        Misc (/Users/n631802/repos/ghc-mod/src/Misc.hs)
GHC Cabal options:
    Setup.hs
    library
        -fbuilding-cabal-package -O -outputdir dist/build -odir dist/build
        -hidir dist/build -stubdir dist/build -i -idist/build -i.
        -idist/build/autogen -Idist/build/autogen -Idist/build
        -optP-include -optPdist/build/autogen/cabal_macros.h
        -hide-all-packages -no-user-package-db -package-db
        /Users/n631802/repos/ghc-mod/.cabal-sandbox/x86_64-osx-ghc-7.8.4-packages.conf.d
        -package-id base-4.7.0.2-4f35612901a9535771ffe3b1f71eb66b
        -package-id bytestring-0.10.4.0-78bc8f2c724c765c78c004a84acf6cc3
        -package-id cabal-helper-0.3.6.0-af2fe5d43a37ae96f60022bca25e5276
        -package-id cereal-0.4.1.1-8cbe8d1359b9c0bb650d672b89a8b853
        -package-id containers-0.5.5.1-d7910f1cd81272c1f31ca9f71d0f206e
        -package-id deepseq-1.3.0.2-0ddc77716bd2515426e1ba39f6788a4f
        -package-id directory-1.2.1.0-a1010605adfb15e559cc8afe5aa719f7
        -package-id djinn-ghc-0.0.2.3-3b1332cf3d4a085896b4cf19286a08a5
        -package-id filepath-1.3.0.2-25a474a9272ae6260626ce0d70ad1cab
        -package-id ghc-7.8.4-4f5395903596576e008e8ac571b42e66 -package-id
        ghc-paths-0.1.0.9-903cc650a2397fdb8089af1fa72448b6 -package-id
        ghc-syb-utils-0.2.3-595bc834e388ce7fda7713147c0c8691 -package-id
        haskell-src-exts-1.16.0.1-c3cd43d7b57b9c5c43d4bdc902455b0b
        -package-id hlint-1.9.21-5079f22851dc3fa2e016eca059b3ee7e
        -package-id monad-control-1.0.0.4-6c1f8e5fbca10f10e897dd10e058dbee
        -package-id monad-journal-0.7.1-4c9e2d0a47d18705e3fb1e8046f76b24
        -package-id mtl-2.1.3.1-96f1a7910a7553352339ed05fb61c269
        -package-id old-time-1.1.0.2-6a49465fde7e2f22f1853f35389d2e35
        -package-id pretty-1.1.1.1-0984f47ffe93ef3983c80b96280f1c3a
        -package-id process-1.2.0.0-48b0e35689f85b654fce0b96da436ac1
        -package-id split-0.2.2-34cfb851cc3784e22bfae7a7bddda9c5
        -package-id syb-0.5.1-4392c4b3556d14c7f8cb011d3c1b4e3b -package-id
        temporary-1.2.0.3-5b53ea2199fa93fa7f0f6c26b242c96e -package-id
        text-1.2.1.1-8ef0a2f3c6eb30c72fb494410dc2efe1 -package-id
        time-1.4.2-192d26f44a2c945780bbb921626c3399 -package-id
        transformers-0.3.0.0-6458c21515cab7c1cf21e53141557a1c -package-id
        transformers-base-0.4.4-df53c5608746be30e79e15ec5b62cb7c
        -XHaskell2010 -XScopedTypeVariables -XRecordWildCards
        -XNamedFieldPuns -XConstraintKinds -XFlexibleContexts -XDataKinds
        -XKindSignatures -Wall -fno-warn-deprecations
    exe:ghc-mod
        -fbuilding-cabal-package -O -outputdir dist/build -odir dist/build
        -hidir dist/build -stubdir dist/build -i -idist/build/ghc-mod -isrc
        -idist/build -i. -idist/build/autogen -Idist/build/ghc-mod
        -Idist/build/autogen -Idist/build -optP-include
        -optPdist/build/autogen/cabal_macros.h -hide-all-packages
        -no-user-package-db -package-db
        /Users/n631802/repos/ghc-mod/.cabal-sandbox/x86_64-osx-ghc-7.8.4-packages.conf.d
        -package-id async-2.0.2-8eeaa974e7375a529dd6320cf5f8ab24
        -package-id base-4.7.0.2-4f35612901a9535771ffe3b1f71eb66b
        -package-id bytestring-0.10.4.0-78bc8f2c724c765c78c004a84acf6cc3
        -package-id cabal-helper-0.3.6.0-af2fe5d43a37ae96f60022bca25e5276
        -package-id cereal-0.4.1.1-8cbe8d1359b9c0bb650d672b89a8b853
        -package-id containers-0.5.5.1-d7910f1cd81272c1f31ca9f71d0f206e
        -package-id deepseq-1.3.0.2-0ddc77716bd2515426e1ba39f6788a4f
        -package-id directory-1.2.1.0-a1010605adfb15e559cc8afe5aa719f7
        -package-id djinn-ghc-0.0.2.3-3b1332cf3d4a085896b4cf19286a08a5
        -package-id filepath-1.3.0.2-25a474a9272ae6260626ce0d70ad1cab
        -package-id ghc-7.8.4-4f5395903596576e008e8ac571b42e66 -package-id
        ghc-paths-0.1.0.9-903cc650a2397fdb8089af1fa72448b6 -package-id
        ghc-syb-utils-0.2.3-595bc834e388ce7fda7713147c0c8691 -package-id
        haskell-src-exts-1.16.0.1-c3cd43d7b57b9c5c43d4bdc902455b0b
        -package-id hlint-1.9.21-5079f22851dc3fa2e016eca059b3ee7e
        -package-id monad-control-1.0.0.4-6c1f8e5fbca10f10e897dd10e058dbee
        -package-id monad-journal-0.7.1-4c9e2d0a47d18705e3fb1e8046f76b24
        -package-id mtl-2.1.3.1-96f1a7910a7553352339ed05fb61c269
        -package-id old-time-1.1.0.2-6a49465fde7e2f22f1853f35389d2e35
        -package-id pretty-1.1.1.1-0984f47ffe93ef3983c80b96280f1c3a
        -package-id process-1.2.0.0-48b0e35689f85b654fce0b96da436ac1
        -package-id split-0.2.2-34cfb851cc3784e22bfae7a7bddda9c5
        -package-id syb-0.5.1-4392c4b3556d14c7f8cb011d3c1b4e3b -package-id
        temporary-1.2.0.3-5b53ea2199fa93fa7f0f6c26b242c96e -package-id
        text-1.2.1.1-8ef0a2f3c6eb30c72fb494410dc2efe1 -package-id
        time-1.4.2-192d26f44a2c945780bbb921626c3399 -package-id
        transformers-0.3.0.0-6458c21515cab7c1cf21e53141557a1c -package-id
        transformers-base-0.4.4-df53c5608746be30e79e15ec5b62cb7c
        -XHaskell2010 -XScopedTypeVariables -XRecordWildCards
        -XNamedFieldPuns -XConstraintKinds -XFlexibleContexts -XDataKinds
        -XKindSignatures -Wall -fno-warn-deprecations
    exe:ghc-modi
        -fbuilding-cabal-package -O -outputdir dist/build/ghc-modi -odir
        dist/build/ghc-modi -hidir dist/build/ghc-modi -stubdir
        dist/build/ghc-modi -i -idist/build/ghc-modi -isrc
        -idist/build/autogen -Idist/build/autogen -Idist/build/ghc-modi
        -optP-include -optPdist/build/autogen/cabal_macros.h
        -hide-all-packages -no-user-package-db -package-db
        /Users/n631802/repos/ghc-mod/.cabal-sandbox/x86_64-osx-ghc-7.8.4-packages.conf.d
        -package-id base-4.7.0.2-4f35612901a9535771ffe3b1f71eb66b
        -package-id directory-1.2.1.0-a1010605adfb15e559cc8afe5aa719f7
        -package-id filepath-1.3.0.2-25a474a9272ae6260626ce0d70ad1cab
        -package-id process-1.2.0.0-48b0e35689f85b654fce0b96da436ac1
        -XHaskell2010 -XConstraintKinds -XFlexibleContexts -Wall -threaded
        -fno-warn-deprecations
GHC search path options:
    Setup.hs
    library
        -i -idist/build -i. -idist/build/autogen -Idist/build/autogen
        -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h
    exe:ghc-mod
        -i -idist/build/ghc-mod -isrc -idist/build/autogen
        -Idist/build/autogen -Idist/build/ghc-mod -optP-include
        -optPdist/build/autogen/cabal_macros.h
    exe:ghc-modi
        -i -idist/build/ghc-modi -isrc -idist/build/autogen
        -Idist/build/autogen -Idist/build/ghc-modi -optP-include
        -optPdist/build/autogen/cabal_macros.h
rzlourenco commented 9 years ago

I can also reproduce this error on a clean Arch Linux install. Steps to reproduce, from a fresh, working install:

$ sudo pacman -Syu ghc cabal-install happy
$ cd /tmp
$ cabal update
$ cabal get -s ghc-mod
$ cd ghc-mod
$ cabal sandbox init
$ cabal install
$ cabal exec -- ghc-mod boot
ghc-mod: <command line>: cannot satisfy -package-id ghc-mod-0-inplace
    (use -v for more information)

Package versions: ghc-7.10.1-1, cabal-install-1.22.2.0-1, happy-1.19.5-1 Commit: 4b2be9c9edbd377c3d95b6685ab53e7c5270edea

Output from cabal exec -- ghc-mod debug:

Root directory:       /tmp/ghc-mod
Current directory:    /tmp/ghc-mod
GHC Package flags:
    -hide-all-packages -no-user-package-db -package-db
    /tmp/ghc-mod/.cabal-sandbox/x86_64-linux-ghc-7.10.1-packages.conf.d
    -package-id bytestring-0.10.6.0-0909f8f31271f3d75749190bf2ee35db
    -package-id cabal-helper-0.3.6.0-a74ccc3d7f8638d311d5a25ce643aa7a
    -package-id cereal-0.4.1.1-5d439dbd29b39aed30a218d05c91ced3
    -package-id containers-0.5.6.2-2114032c163425cc264e6e1169dc2f6d
    -package-id deepseq-1.4.1.1-c1376f846fa170f2cc2cb2e57b203339
    -package-id djinn-ghc-0.0.2.3-73cc38fce8ef3870aabace1bb5419745
    -package-id ghc-paths-0.1.0.9-235af04ca2282a50914999666bb54dae
    -package-id ghc-syb-utils-0.2.3-3c9d9d32e1887ccd8a4c7b7689749298
    -package-id
    haskell-src-exts-1.16.0.1-f5b1e07c4a8bd1c8b941700d95ef5938
    -package-id hlint-1.9.21-f52c01017e9c0d613bfa7b7dfe855094
    -package-id monad-control-1.0.0.4-e5c47ade6db4e1bf3268dc1cdc5fdb1e
    -package-id monad-journal-0.7.1-70180f0e1e820c51f623ce237ea5af00
    -package-id old-time-1.1.0.3-c6c471a5ec61ff049468f265b077486d
    -package-id syb-0.5.1-9c22b124c53290dc8251e48995b9698d -package-id
    temporary-1.2.0.3-fd886a36634356eab61b23bbf4da6323 -package-id
    text-1.2.1.3-6162dc2585c3db95d57ac014d2171e07 -package-id
    time-1.5.0.1-e17a9220d438435579d2914e90774246 -package-id
    transformers-0.4.2.0-c1a7bb855a176fe475d7b665301cd48f -package-id
    transformers-base-0.4.4-4b825a6c679f990eb0bb2084035235b2
    -package-id async-2.0.2-25dc0384c5957be4c22226fa0531c18d
    -package-id ghc-7.10.1-325809317787a897b7a97d646ceaa3a3 -package-id
    ghc-mod-0-inplace -package-id
    mtl-2.2.1-9986828fc95bc8459870303efaabd81e -package-id
    pretty-1.1.2.0-0d4e1eca3b0cfcebe20b9405f7bdaca9 -package-id
    split-0.2.2-204e96694e892969ddc6c0f253af01bd -package-id
    base-4.8.0.0-1b689eb8d72c4d4cc88f445839c1f01a -package-id
    directory-1.2.2.0-b4959b472d9eee380c6b32291ade29e0 -package-id
    filepath-1.4.0.0-40d643aa87258c186441a1f8f3e13ca6 -package-id
    process-1.2.3.0-3b1e9bca6ac38225806ff7bbf3f845b1
GHC System libraries: /usr/lib/ghc-7.10.1
GHC user options:

Cabal file:           Just "/tmp/ghc-mod/ghc-mod.cabal"
Cabal entrypoints:
    Setup.hs
        Main (/tmp/ghc-mod/Setup.hs)
    library
        Language.Haskell.GhcMod (/tmp/ghc-mod/Language/Haskell/GhcMod.hs)
        Language.Haskell.GhcMod.Internal (/tmp/ghc-mod/Language/Haskell/GhcMod/Internal.hs)
        Paths_ghc_mod (/tmp/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Utils (/tmp/ghc-mod/Utils.hs)
        Language.Haskell.GhcMod.Boot (/tmp/ghc-mod/Language/Haskell/GhcMod/Boot.hs)
        Language.Haskell.GhcMod.Browse (/tmp/ghc-mod/Language/Haskell/GhcMod/Browse.hs)
        Language.Haskell.GhcMod.CabalHelper (/tmp/ghc-mod/Language/Haskell/GhcMod/CabalHelper.hs)
        Language.Haskell.GhcMod.Caching (/tmp/ghc-mod/Language/Haskell/GhcMod/Caching.hs)
        Language.Haskell.GhcMod.CaseSplit (/tmp/ghc-mod/Language/Haskell/GhcMod/CaseSplit.hs)
        Language.Haskell.GhcMod.Check (/tmp/ghc-mod/Language/Haskell/GhcMod/Check.hs)
        Language.Haskell.GhcMod.Convert (/tmp/ghc-mod/Language/Haskell/GhcMod/Convert.hs)
        Language.Haskell.GhcMod.Cradle (/tmp/ghc-mod/Language/Haskell/GhcMod/Cradle.hs)
        Language.Haskell.GhcMod.Debug (/tmp/ghc-mod/Language/Haskell/GhcMod/Debug.hs)
        Language.Haskell.GhcMod.Doc (/tmp/ghc-mod/Language/Haskell/GhcMod/Doc.hs)
        Language.Haskell.GhcMod.DynFlags (/tmp/ghc-mod/Language/Haskell/GhcMod/DynFlags.hs)
        Language.Haskell.GhcMod.Error (/tmp/ghc-mod/Language/Haskell/GhcMod/Error.hs)
        Language.Haskell.GhcMod.FillSig (/tmp/ghc-mod/Language/Haskell/GhcMod/FillSig.hs)
        Language.Haskell.GhcMod.Find (/tmp/ghc-mod/Language/Haskell/GhcMod/Find.hs)
        Language.Haskell.GhcMod.Flag (/tmp/ghc-mod/Language/Haskell/GhcMod/Flag.hs)
        Language.Haskell.GhcMod.Gap (/tmp/ghc-mod/Language/Haskell/GhcMod/Gap.hs)
        Language.Haskell.GhcMod.GhcPkg (/tmp/ghc-mod/Language/Haskell/GhcMod/GhcPkg.hs)
        Language.Haskell.GhcMod.HomeModuleGraph (/tmp/ghc-mod/Language/Haskell/GhcMod/HomeModuleGraph.hs)
        Language.Haskell.GhcMod.Info (/tmp/ghc-mod/Language/Haskell/GhcMod/Info.hs)
        Language.Haskell.GhcMod.Lang (/tmp/ghc-mod/Language/Haskell/GhcMod/Lang.hs)
        Language.Haskell.GhcMod.Lint (/tmp/ghc-mod/Language/Haskell/GhcMod/Lint.hs)
        Language.Haskell.GhcMod.Logger (/tmp/ghc-mod/Language/Haskell/GhcMod/Logger.hs)
        Language.Haskell.GhcMod.Logging (/tmp/ghc-mod/Language/Haskell/GhcMod/Logging.hs)
        Language.Haskell.GhcMod.Modules (/tmp/ghc-mod/Language/Haskell/GhcMod/Modules.hs)
        Language.Haskell.GhcMod.Monad (/tmp/ghc-mod/Language/Haskell/GhcMod/Monad.hs)
        Language.Haskell.GhcMod.Monad.Types (/tmp/ghc-mod/Language/Haskell/GhcMod/Monad/Types.hs)
        Language.Haskell.GhcMod.PathsAndFiles (/tmp/ghc-mod/Language/Haskell/GhcMod/PathsAndFiles.hs)
        Language.Haskell.GhcMod.PkgDoc (/tmp/ghc-mod/Language/Haskell/GhcMod/PkgDoc.hs)
        Language.Haskell.GhcMod.Pretty (/tmp/ghc-mod/Language/Haskell/GhcMod/Pretty.hs)
        Language.Haskell.GhcMod.Read (/tmp/ghc-mod/Language/Haskell/GhcMod/Read.hs)
        Language.Haskell.GhcMod.SrcUtils (/tmp/ghc-mod/Language/Haskell/GhcMod/SrcUtils.hs)
        Language.Haskell.GhcMod.Target (/tmp/ghc-mod/Language/Haskell/GhcMod/Target.hs)
        Language.Haskell.GhcMod.Types (/tmp/ghc-mod/Language/Haskell/GhcMod/Types.hs)
        Language.Haskell.GhcMod.Utils (/tmp/ghc-mod/Language/Haskell/GhcMod/Utils.hs)
        Language.Haskell.GhcMod.World (/tmp/ghc-mod/Language/Haskell/GhcMod/World.hs)
    exe:ghc-mod
        Paths_ghc_mod (/tmp/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Main (/tmp/ghc-mod/src/GHCMod.hs)
    exe:ghc-modi
        Paths_ghc_mod (/tmp/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Main (/tmp/ghc-mod/src/GHCModi.hs)
        Misc (/tmp/ghc-mod/src/Misc.hs)
Cabal components:
    Setup.hs
        Main (/tmp/ghc-mod/Setup.hs)
            SetupCompat
        SetupCompat (/tmp/ghc-mod/SetupCompat.hs)
            NotCPP.Declarations
        NotCPP.Declarations (/tmp/ghc-mod/NotCPP/Declarations.hs)
            NotCPP.LookupValueName
        NotCPP.LookupValueName (/tmp/ghc-mod/NotCPP/LookupValueName.hs)
            NotCPP.Utils
        NotCPP.Utils (/tmp/ghc-mod/NotCPP/Utils.hs)
    library
        Language.Haskell.GhcMod (/tmp/ghc-mod/Language/Haskell/GhcMod.hs)
            Language.Haskell.GhcMod.Boot
            Language.Haskell.GhcMod.Browse
            Language.Haskell.GhcMod.CaseSplit
            Language.Haskell.GhcMod.Check
            Language.Haskell.GhcMod.Cradle
            Language.Haskell.GhcMod.Debug
            Language.Haskell.GhcMod.FillSig
            Language.Haskell.GhcMod.Find
            Language.Haskell.GhcMod.Flag
            Language.Haskell.GhcMod.Info
            Language.Haskell.GhcMod.Lang
            Language.Haskell.GhcMod.Lint
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Modules
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.PkgDoc
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Internal (/tmp/ghc-mod/Language/Haskell/GhcMod/Internal.hs)
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.Logger
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
            Language.Haskell.GhcMod.World
        Paths_ghc_mod (/tmp/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Utils (/tmp/ghc-mod/Utils.hs)
        Language.Haskell.GhcMod.Boot (/tmp/ghc-mod/Language/Haskell/GhcMod/Boot.hs)
            Language.Haskell.GhcMod.Browse
            Language.Haskell.GhcMod.Flag
            Language.Haskell.GhcMod.Lang
            Language.Haskell.GhcMod.Modules
            Language.Haskell.GhcMod.Monad
        Language.Haskell.GhcMod.Browse (/tmp/ghc-mod/Language/Haskell/GhcMod/Browse.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.CabalHelper (/tmp/ghc-mod/Language/Haskell/GhcMod/CabalHelper.hs)
            Paths_ghc_mod
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.PathsAndFiles
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
            Language.Haskell.GhcMod.World
        Language.Haskell.GhcMod.Caching (/tmp/ghc-mod/Language/Haskell/GhcMod/Caching.hs)
            Utils
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad.Types
        Language.Haskell.GhcMod.CaseSplit (/tmp/ghc-mod/Language/Haskell/GhcMod/CaseSplit.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.SrcUtils
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Check (/tmp/ghc-mod/Language/Haskell/GhcMod/Check.hs)
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Logger
            Language.Haskell.GhcMod.Monad
        Language.Haskell.GhcMod.Convert (/tmp/ghc-mod/Language/Haskell/GhcMod/Convert.hs)
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Cradle (/tmp/ghc-mod/Language/Haskell/GhcMod/Cradle.hs)
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.PathsAndFiles
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
        Language.Haskell.GhcMod.Debug (/tmp/ghc-mod/Language/Haskell/GhcMod/Debug.hs)
            Language.Haskell.GhcMod.Internal
            Language.Haskell.GhcMod.CabalHelper
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Pretty
            Language.Haskell.GhcMod.Target
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
        Language.Haskell.GhcMod.Doc (/tmp/ghc-mod/Language/Haskell/GhcMod/Doc.hs)
            Language.Haskell.GhcMod.Gap
        Language.Haskell.GhcMod.DynFlags (/tmp/ghc-mod/Language/Haskell/GhcMod/DynFlags.hs)
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Error (/tmp/ghc-mod/Language/Haskell/GhcMod/Error.hs)
            Paths_ghc_mod
            Language.Haskell.GhcMod.Pretty
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.FillSig (/tmp/ghc-mod/Language/Haskell/GhcMod/FillSig.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.SrcUtils
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Find (/tmp/ghc-mod/Language/Haskell/GhcMod/Find.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.PathsAndFiles
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
            Language.Haskell.GhcMod.World
        Language.Haskell.GhcMod.Flag (/tmp/ghc-mod/Language/Haskell/GhcMod/Flag.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad
        Language.Haskell.GhcMod.Gap (/tmp/ghc-mod/Language/Haskell/GhcMod/Gap.hs)
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.GhcPkg (/tmp/ghc-mod/Language/Haskell/GhcMod/GhcPkg.hs)
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.HomeModuleGraph (/tmp/ghc-mod/Language/Haskell/GhcMod/HomeModuleGraph.hs)
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Logger
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Info (/tmp/ghc-mod/Language/Haskell/GhcMod/Info.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.SrcUtils
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Lang (/tmp/ghc-mod/Language/Haskell/GhcMod/Lang.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Monad
        Language.Haskell.GhcMod.Lint (/tmp/ghc-mod/Language/Haskell/GhcMod/Lint.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Logger
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Logger (/tmp/ghc-mod/Language/Haskell/GhcMod/Logger.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad.Types
        Language.Haskell.GhcMod.Logging (/tmp/ghc-mod/Language/Haskell/GhcMod/Logging.hs)
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.Pretty
        Language.Haskell.GhcMod.Modules (/tmp/ghc-mod/Language/Haskell/GhcMod/Modules.hs)
            Language.Haskell.GhcMod.Convert
            Language.Haskell.GhcMod.Gap
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Monad (/tmp/ghc-mod/Language/Haskell/GhcMod/Monad.hs)
            Language.Haskell.GhcMod.Cradle
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.Target
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Monad.Types (/tmp/ghc-mod/Language/Haskell/GhcMod/Monad/Types.hs)
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.PathsAndFiles (/tmp/ghc-mod/Language/Haskell/GhcMod/PathsAndFiles.hs)
            Utils
            Language.Haskell.GhcMod.Caching
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
        Language.Haskell.GhcMod.PkgDoc (/tmp/ghc-mod/Language/Haskell/GhcMod/PkgDoc.hs)
            Language.Haskell.GhcMod.GhcPkg
            Language.Haskell.GhcMod.Monad
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
        Language.Haskell.GhcMod.Pretty (/tmp/ghc-mod/Language/Haskell/GhcMod/Pretty.hs)
            Language.Haskell.GhcMod.Types
        Language.Haskell.GhcMod.Read (/tmp/ghc-mod/Language/Haskell/GhcMod/Read.hs)
        Language.Haskell.GhcMod.SrcUtils (/tmp/ghc-mod/Language/Haskell/GhcMod/SrcUtils.hs)
            Language.Haskell.GhcMod.Doc
            Language.Haskell.GhcMod.Gap
        Language.Haskell.GhcMod.Target (/tmp/ghc-mod/Language/Haskell/GhcMod/Target.hs)
            Language.Haskell.GhcMod.CabalHelper
            Language.Haskell.GhcMod.DynFlags
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.GhcPkg
            Language.Haskell.GhcMod.HomeModuleGraph
            Language.Haskell.GhcMod.Logging
            Language.Haskell.GhcMod.Monad.Types
            Language.Haskell.GhcMod.PathsAndFiles
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
        Language.Haskell.GhcMod.Types (/tmp/ghc-mod/Language/Haskell/GhcMod/Types.hs)
        Language.Haskell.GhcMod.Utils (/tmp/ghc-mod/Language/Haskell/GhcMod/Utils.hs)
            Paths_ghc_mod
            Utils
            Language.Haskell.GhcMod.Error
            Language.Haskell.GhcMod.Monad.Types
        Language.Haskell.GhcMod.World (/tmp/ghc-mod/Language/Haskell/GhcMod/World.hs)
            Language.Haskell.GhcMod.GhcPkg
            Language.Haskell.GhcMod.PathsAndFiles
            Language.Haskell.GhcMod.Types
            Language.Haskell.GhcMod.Utils
    exe:ghc-mod
        Paths_ghc_mod (/tmp/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Main (/tmp/ghc-mod/src/GHCMod.hs)
            Paths_ghc_mod
            Misc
        Misc (/tmp/ghc-mod/src/Misc.hs)
    exe:ghc-modi
        Paths_ghc_mod (/tmp/ghc-mod/dist/build/autogen/Paths_ghc_mod.hs)
        Main (/tmp/ghc-mod/src/GHCModi.hs)
            Paths_ghc_mod
        Misc (/tmp/ghc-mod/src/Misc.hs)
GHC Cabal options:
    Setup.hs
    library
        -fbuilding-cabal-package -O -outputdir dist/build -odir dist/build
        -hidir dist/build -stubdir dist/build -i -idist/build -i.
        -idist/build/autogen -Idist/build/autogen -Idist/build
        -optP-include -optPdist/build/autogen/cabal_macros.h
        -hide-all-packages -no-user-package-db -package-db
        /tmp/ghc-mod/.cabal-sandbox/x86_64-linux-ghc-7.10.1-packages.conf.d
        -package-id base-4.8.0.0-1b689eb8d72c4d4cc88f445839c1f01a
        -package-id bytestring-0.10.6.0-0909f8f31271f3d75749190bf2ee35db
        -package-id cabal-helper-0.3.6.0-a74ccc3d7f8638d311d5a25ce643aa7a
        -package-id cereal-0.4.1.1-5d439dbd29b39aed30a218d05c91ced3
        -package-id containers-0.5.6.2-2114032c163425cc264e6e1169dc2f6d
        -package-id deepseq-1.4.1.1-c1376f846fa170f2cc2cb2e57b203339
        -package-id directory-1.2.2.0-b4959b472d9eee380c6b32291ade29e0
        -package-id djinn-ghc-0.0.2.3-73cc38fce8ef3870aabace1bb5419745
        -package-id filepath-1.4.0.0-40d643aa87258c186441a1f8f3e13ca6
        -package-id ghc-7.10.1-325809317787a897b7a97d646ceaa3a3 -package-id
        ghc-paths-0.1.0.9-235af04ca2282a50914999666bb54dae -package-id
        ghc-syb-utils-0.2.3-3c9d9d32e1887ccd8a4c7b7689749298 -package-id
        haskell-src-exts-1.16.0.1-f5b1e07c4a8bd1c8b941700d95ef5938
        -package-id hlint-1.9.21-f52c01017e9c0d613bfa7b7dfe855094
        -package-id monad-control-1.0.0.4-e5c47ade6db4e1bf3268dc1cdc5fdb1e
        -package-id monad-journal-0.7.1-70180f0e1e820c51f623ce237ea5af00
        -package-id mtl-2.2.1-9986828fc95bc8459870303efaabd81e -package-id
        old-time-1.1.0.3-c6c471a5ec61ff049468f265b077486d -package-id
        pretty-1.1.2.0-0d4e1eca3b0cfcebe20b9405f7bdaca9 -package-id
        process-1.2.3.0-3b1e9bca6ac38225806ff7bbf3f845b1 -package-id
        split-0.2.2-204e96694e892969ddc6c0f253af01bd -package-id
        syb-0.5.1-9c22b124c53290dc8251e48995b9698d -package-id
        temporary-1.2.0.3-fd886a36634356eab61b23bbf4da6323 -package-id
        text-1.2.1.3-6162dc2585c3db95d57ac014d2171e07 -package-id
        time-1.5.0.1-e17a9220d438435579d2914e90774246 -package-id
        transformers-0.4.2.0-c1a7bb855a176fe475d7b665301cd48f -package-id
        transformers-base-0.4.4-4b825a6c679f990eb0bb2084035235b2
        -XHaskell2010 -XScopedTypeVariables -XRecordWildCards
        -XNamedFieldPuns -XConstraintKinds -XFlexibleContexts -XDataKinds
        -XKindSignatures -Wall -fno-warn-deprecations
    exe:ghc-mod
        -fbuilding-cabal-package -O -outputdir dist/build -odir dist/build
        -hidir dist/build -stubdir dist/build -i -idist/build/ghc-mod -isrc
        -idist/build -i. -idist/build/autogen -Idist/build/ghc-mod
        -Idist/build/autogen -Idist/build -optP-include
        -optPdist/build/autogen/cabal_macros.h -hide-all-packages
        -no-user-package-db -package-db
        /tmp/ghc-mod/.cabal-sandbox/x86_64-linux-ghc-7.10.1-packages.conf.d
        -package-id async-2.0.2-25dc0384c5957be4c22226fa0531c18d
        -package-id base-4.8.0.0-1b689eb8d72c4d4cc88f445839c1f01a
        -package-id bytestring-0.10.6.0-0909f8f31271f3d75749190bf2ee35db
        -package-id cabal-helper-0.3.6.0-a74ccc3d7f8638d311d5a25ce643aa7a
        -package-id cereal-0.4.1.1-5d439dbd29b39aed30a218d05c91ced3
        -package-id containers-0.5.6.2-2114032c163425cc264e6e1169dc2f6d
        -package-id deepseq-1.4.1.1-c1376f846fa170f2cc2cb2e57b203339
        -package-id directory-1.2.2.0-b4959b472d9eee380c6b32291ade29e0
        -package-id djinn-ghc-0.0.2.3-73cc38fce8ef3870aabace1bb5419745
        -package-id filepath-1.4.0.0-40d643aa87258c186441a1f8f3e13ca6
        -package-id ghc-7.10.1-325809317787a897b7a97d646ceaa3a3 -package-id
        ghc-paths-0.1.0.9-235af04ca2282a50914999666bb54dae -package-id
        ghc-syb-utils-0.2.3-3c9d9d32e1887ccd8a4c7b7689749298 -package-id
        haskell-src-exts-1.16.0.1-f5b1e07c4a8bd1c8b941700d95ef5938
        -package-id hlint-1.9.21-f52c01017e9c0d613bfa7b7dfe855094
        -package-id monad-control-1.0.0.4-e5c47ade6db4e1bf3268dc1cdc5fdb1e
        -package-id monad-journal-0.7.1-70180f0e1e820c51f623ce237ea5af00
        -package-id mtl-2.2.1-9986828fc95bc8459870303efaabd81e -package-id
        old-time-1.1.0.3-c6c471a5ec61ff049468f265b077486d -package-id
        pretty-1.1.2.0-0d4e1eca3b0cfcebe20b9405f7bdaca9 -package-id
        process-1.2.3.0-3b1e9bca6ac38225806ff7bbf3f845b1 -package-id
        split-0.2.2-204e96694e892969ddc6c0f253af01bd -package-id
        syb-0.5.1-9c22b124c53290dc8251e48995b9698d -package-id
        temporary-1.2.0.3-fd886a36634356eab61b23bbf4da6323 -package-id
        text-1.2.1.3-6162dc2585c3db95d57ac014d2171e07 -package-id
        time-1.5.0.1-e17a9220d438435579d2914e90774246 -package-id
        transformers-0.4.2.0-c1a7bb855a176fe475d7b665301cd48f -package-id
        transformers-base-0.4.4-4b825a6c679f990eb0bb2084035235b2
        -XHaskell2010 -XScopedTypeVariables -XRecordWildCards
        -XNamedFieldPuns -XConstraintKinds -XFlexibleContexts -XDataKinds
        -XKindSignatures -Wall -fno-warn-deprecations
    exe:ghc-modi
        -fbuilding-cabal-package -O -outputdir dist/build/ghc-modi -odir
        dist/build/ghc-modi -hidir dist/build/ghc-modi -stubdir
        dist/build/ghc-modi -i -idist/build/ghc-modi -isrc
        -idist/build/autogen -Idist/build/autogen -Idist/build/ghc-modi
        -optP-include -optPdist/build/autogen/cabal_macros.h
        -hide-all-packages -no-user-package-db -package-db
        /tmp/ghc-mod/.cabal-sandbox/x86_64-linux-ghc-7.10.1-packages.conf.d
        -package-id base-4.8.0.0-1b689eb8d72c4d4cc88f445839c1f01a
        -package-id directory-1.2.2.0-b4959b472d9eee380c6b32291ade29e0
        -package-id filepath-1.4.0.0-40d643aa87258c186441a1f8f3e13ca6
        -package-id process-1.2.3.0-3b1e9bca6ac38225806ff7bbf3f845b1
        -XHaskell2010 -XConstraintKinds -XFlexibleContexts -Wall -threaded
        -fno-warn-deprecations
GHC search path options:
    Setup.hs
    library
        -i -idist/build -i. -idist/build/autogen -Idist/build/autogen
        -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h
    exe:ghc-mod
        -i -idist/build/ghc-mod -isrc -idist/build/autogen
        -Idist/build/autogen -Idist/build/ghc-mod -optP-include
        -optPdist/build/autogen/cabal_macros.h
    exe:ghc-modi
        -i -idist/build/ghc-modi -isrc -idist/build/autogen
        -Idist/build/autogen -Idist/build/ghc-modi -optP-include
        -optPdist/build/autogen/cabal_macros.h
DanielG commented 9 years ago

Should be fixed now: https://github.com/DanielG/cabal-helper/commit/c80fc646ccb4e1f19cc40ebbb319de2211c21a2a

Just pull the latest version from master.

Can you confirm?

buckie commented 9 years ago

@DanielG that fixed it & the ghc-mod based company-mode backend now works as well! Thanks so much!

DanielG commented 9 years ago

Awesome :3