ghc-mod/Language/Haskell/GhcMod
Naohiro Aota 46492a19b0 Expose packages in sandbox with their ids
This commit implement scaning a package db directory to collect package
id

If you installed a package both in a sandbox and globally, global
package may be selected even if there's a package in a sandbox, which is
different behavior from cabal sandbox.

e.g. when you have fast-logger-2.0 globally and fast-logger-0.3.3 in a
sandbox:

(Without patch)
$ ghc-mod check Foundation.hs
Foundation.hs:12:31:Module `System.Log.FastLogger' does not export `Logger'

(With patch)
$ ghc-mod check Foundation.hs
2014-01-30 21:21:40 +09:00
..
.ErrMsg.hs.swp CPP corrections. 2013-11-19 10:30:43 +09:00
Browse.hs Merge branch 'ghci-style-load2' of github.com:khorser/ghc-mod into khorser-ghci-style-load2 2013-11-20 14:28:20 +09:00
CabalApi.hs Extend Package to include id 2014-01-30 20:45:30 +09:00
Check.hs initializeFlagsWithCradle also retuns PackageDescription. 2013-09-19 16:25:36 +09:00
Cradle.hs Expose packages in sandbox with their ids 2014-01-30 21:21:40 +09:00
Debug.hs Extend Package to include id 2014-01-30 20:45:30 +09:00
Doc.hs Pretty.showDocWith disappeard at GHC 7.7.20140110 2014-01-14 15:37:16 +09:00
ErrMsg.hs defining errorMsgSpan. 2013-11-19 12:28:59 +09:00
Flag.hs removing unnecessary CPP. 2013-07-01 13:21:49 +09:00
Gap.hs Extend Package to include id 2014-01-30 20:45:30 +09:00
GHCApi.hs typo. 2013-10-02 12:43:40 +09:00
GHCChoice.hs Exporting more low level APIs. 2013-09-16 09:56:08 +09:00
Info.hs closed import. 2014-01-08 12:03:32 +09:00
Internal.hs Defining cabalAllTargets. 2013-09-20 17:25:28 +09:00
Lang.hs writing docs. 2013-05-20 14:28:56 +09:00
Lint.hs adding LineSeparator. 2013-09-03 14:40:51 +09:00
List.hs Merge branch 'master' of git://github.com/mvoidex/ghc-mod into mvoidex-master 2013-10-29 11:32:06 +09:00
Types.hs Extend Package to include id 2014-01-30 20:45:30 +09:00