{"action":"created","issue":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/640","labels_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/640/labels{/name}","comments_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/640/comments","events_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/640/events","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/640","id":109637902,"number":640,"title":"stack and test-suite","user":{"login":"rikvdkleij","id":509315,"avatar_url":"https://avatars.githubusercontent.com/u/509315?v=3","gravatar_id":"","url":"https://api.github.com/users/rikvdkleij","html_url":"https://github.com/rikvdkleij","followers_url":"https://api.github.com/users/rikvdkleij/followers","following_url":"https://api.github.com/users/rikvdkleij/following{/other_user}","gists_url":"https://api.github.com/users/rikvdkleij/gists{/gist_id}","starred_url":"https://api.github.com/users/rikvdkleij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rikvdkleij/subscriptions","organizations_url":"https://api.github.com/users/rikvdkleij/orgs","repos_url":"https://api.github.com/users/rikvdkleij/repos","events_url":"https://api.github.com/users/rikvdkleij/events{/privacy}","received_events_url":"https://api.github.com/users/rikvdkleij/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-03T18:33:37Z","updated_at":"2015-10-06T19:34:40Z","closed_at":null,"body":"Build project with stack. Test dependencies in test-suite (for example hspec) are not recognized by ghc-mod. If I put same dependencies in library section, ghc-mod does not complain anymore.\r\n\r\nghc-mod debug\r\nWarning: resolveModule \"/home/rik/haskell/projects/quicksort/test/Spec.hs\":\r\n         could not execute: hspec-discover\r\nRoot directory:       /home/rik/haskell/projects/quicksort\r\nCurrent directory:    /home/rik/haskell/projects/quicksort\r\nGHC Package flags:\r\n    -hide-all-packages -no-user-package-db -package-db\r\n    /home/rik/.stack/snapshots/x86_64-linux/lts-3.4/7.10.2/pkgdb/\r\n    -package-db\r\n    /home/rik/haskell/projects/quicksort/.stack-work/install/x86_64-linux/lts-3.4/7.10.2/pkgdb/\r\n    -package-id QuickCheck-2.8.1-b8cde035baf86e10569b5c8f1da0c941\r\n    -package-id base-4.8.1.0-4f7206fd964c629946bb89db72c80011\r\n    -package-id hspec-2.1.10-d1430dd5c99e21ed2da59fe60fa379d9\r\nGHC System libraries: /opt/ghc/7.10.2/lib/ghc-7.10.2\r\nGHC user options:\r\n\r\nStack ghc executable:    Just \"/opt/ghc/7.10.2/bin/ghc\"\r\nStack ghc-pkg executable:Just \"/opt/ghc/7.10.2/bin/ghc-pkg\"\r\nCabal file:           Just \"/home/rik/haskell/projects/quicksort/quicksort.cabal\"\r\nProject:   StackProject (StackEnv {seDistDir = \".stack-work/dist/x86_64-linux/Cabal-1.22.4.0\", seBinPath = [\"/home/rik/.stack/snapshots/x86_64-linux/lts-3.4/7.10.2/bin\",\"/home/rik/bin\",\"/usr/local/sbin\",\"/usr/local/bin\",\"/usr/sbin\",\"/usr/bin\",\"/sbin\",\"/bin\",\"/usr/games\",\"/usr/local/games\",\"/home/rik/bin\",\"/home/rik/.local/bin/\",\"/home/rik/.cabal/bin\",\"/opt/ghc/7.10.2/bin\",\".\"], seSnapshotPkgDb = \"/home/rik/.stack/snapshots/x86_64-linux/lts-3.4/7.10.2/pkgdb\", seLocalPkgDb = \"/home/rik/haskell/projects/quicksort/.stack-work/install/x86_64-linux/lts-3.4/7.10.2/pkgdb\"})\r\nCabal entrypoints:\r\n    Setup.hs\r\n        Main (/home/rik/haskell/projects/quicksort/Setup.hs)\r\n    library\r\n        Quicksort (/home/rik/haskell/projects/quicksort/src/Quicksort.hs)\r\n    test:spec\r\nCabal components:\r\n    Setup.hs\r\n        Main (/home/rik/haskell/projects/quicksort/Setup.hs)\r\n    library\r\n        Quicksort (/home/rik/haskell/projects/quicksort/src/Quicksort.hs)\r\n    test:spec\r\nGHC Cabal options:\r\n    Setup.hs\r\n    library\r\n        -fbuilding-cabal-package -O -outputdir\r\n        .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build -odir\r\n        .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build -hidir\r\n        .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build -stubdir\r\n        .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build -i\r\n        -i.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build -isrc\r\n        -i.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen\r\n        -I.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen\r\n        -I.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build -optP-include\r\n        -optP.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen/cabal_macros.h\r\n        -hide-all-packages -no-user-package-db -package-db\r\n        /home/rik/.stack/snapshots/x86_64-linux/lts-3.4/7.10.2/pkgdb/\r\n        -package-db\r\n        /home/rik/haskell/projects/quicksort/.stack-work/install/x86_64-linux/lts-3.4/7.10.2/pkgdb/\r\n        -package-id base-4.8.1.0-4f7206fd964c629946bb89db72c80011\r\n        -XHaskell2010 -Wall\r\n    test:spec\r\n        -fbuilding-cabal-package -O -outputdir\r\n        .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/spec/spec-tmp\r\n        -odir\r\n        .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/spec/spec-tmp\r\n        -hidir\r\n        .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/spec/spec-tmp\r\n        -stubdir\r\n        .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/spec/spec-tmp -i\r\n        -i.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/spec/spec-tmp\r\n        -itest -isrc\r\n        -i.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen\r\n        -I.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen\r\n        -I.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/spec/spec-tmp\r\n        -optP-include\r\n        -optP.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen/cabal_macros.h\r\n        -hide-all-packages -no-user-package-db -package-db\r\n        /home/rik/.stack/snapshots/x86_64-linux/lts-3.4/7.10.2/pkgdb/\r\n        -package-db\r\n        /home/rik/haskell/projects/quicksort/.stack-work/install/x86_64-linux/lts-3.4/7.10.2/pkgdb/\r\n        -package-id QuickCheck-2.8.1-b8cde035baf86e10569b5c8f1da0c941\r\n        -package-id base-4.8.1.0-4f7206fd964c629946bb89db72c80011\r\n        -package-id hspec-2.1.10-d1430dd5c99e21ed2da59fe60fa379d9\r\n        -XHaskell2010 -Wall -Werror\r\nGHC search path options:\r\n    Setup.hs\r\n    library\r\n        -i -i.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build -isrc\r\n        -i.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen\r\n        -I.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen\r\n        -I.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build -optP-include\r\n        -optP.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen/cabal_macros.h\r\n    test:spec\r\n        -i\r\n        -i.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/spec/spec-tmp\r\n        -itest -isrc\r\n        -i.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen\r\n        -I.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen\r\n        -I.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/spec/spec-tmp\r\n        -optP-include\r\n        -optP.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen/cabal_macros.h\r\n"},"comment":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/comments/145973944","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/640#issuecomment-145973944","issue_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/640","id":145973944,"user":{"login":"rikvdkleij","id":509315,"avatar_url":"https://avatars.githubusercontent.com/u/509315?v=3","gravatar_id":"","url":"https://api.github.com/users/rikvdkleij","html_url":"https://github.com/rikvdkleij","followers_url":"https://api.github.com/users/rikvdkleij/followers","following_url":"https://api.github.com/users/rikvdkleij/following{/other_user}","gists_url":"https://api.github.com/users/rikvdkleij/gists{/gist_id}","starred_url":"https://api.github.com/users/rikvdkleij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rikvdkleij/subscriptions","organizations_url":"https://api.github.com/users/rikvdkleij/orgs","repos_url":"https://api.github.com/users/rikvdkleij/repos","events_url":"https://api.github.com/users/rikvdkleij/events{/privacy}","received_events_url":"https://api.github.com/users/rikvdkleij/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T19:34:39Z","updated_at":"2015-10-06T19:34:39Z","body":"Sorry, I tried different combinations but I do not get it solved."}}