Commit Graph

37 Commits

Author SHA1 Message Date
Daniel Gröber 35690941aa Reorganize module namespace
- Remove Language.Haskell prefix from all modules
- Move 'GHCMod.*' to 'GhcMod.Exe'
- Move 'GhcModExe' to 'GhcMod.Exe'
2017-05-28 04:23:37 +02:00
Daniel Gröber e495c55a8d Use existence of cabal/stack as cradle indicator
Also add some more "info" logging for which cradle was picked.
2016-05-14 20:18:06 +02:00
Nikolay Yakimov b9c796421f Silence GHC>=7.10 warning 2016-01-09 17:19:00 +03:00
Nicolas Rolland e1d2de96c8 fixing tests for logging 2015-11-27 11:15:25 +01:00
Daniel Gröber 41de8b8b2e Sandwich new Monad layer GmOutT into transformer stack
This way we can have access to some options pre Cradle setup which
should fix the output interleaving problems I was observing.
2015-09-01 10:32:27 +02:00
Daniel Gröber 4aa75818d8 Fix tests 2015-08-31 08:32:31 +02:00
Daniel Gröber 8439f12cb0 Let Cabal determine the package-db stack 2015-08-07 07:31:08 +02:00
Daniel Vigovszky 84888627af Fixed custom cradle test 2015-04-26 17:33:01 +02:00
Daniel Vigovszky 5d9d6f5630 Custom cradle support 2015-04-23 17:25:45 +02:00
Daniel Gröber f0ea445a9b Cleanup errors and logging a bit 2015-03-05 17:35:28 +01:00
Daniel Gröber 36ed081d54 Bring test suite up to date 2015-02-08 12:43:35 +01:00
Daniel Gröber 9ac128aa6f Fix #387, Pattern match failure in GhcPkg 2014-10-30 01:10:56 +01:00
Kazu Yamamoto ca7b0001ed fix a test case. 2014-08-20 15:36:52 +09:00
Daniel Gröber 241c7946fc Revert "Fix tests for Cabal <= 1.16"
The problem the reverted commit tried to fix seems to have been just a
symptom of another root cause that was later fixed as the problem does
not seem to occur anymore even without this changeset also this
changeset broke cabal sandboxes with ghc < 7.8.

Fix #262

This reverts commit 8741323f5b.

Conflicts:
	Language/Haskell/GhcMod/GhcPkg.hs
2014-05-19 01:27:35 +02:00
Daniel Gröber 8741323f5b Fix tests for Cabal <= 1.16 2014-05-09 20:37:15 +02:00
Daniel Gröber 1639a7b2e0 Bring spec up to speed 2014-04-18 04:00:01 +02:00
Daniel Gröber 30b8366526 Refactor the way packages databases are handled
- cradle now stores a list of active package databases instead of only
  the user store (if present).

- rename `cradlePackageDb` -> `cradlePkgDbStack` as that`s what the ghc
  documentaion calls this kind of thing

- `getPackageDbPackages` now returns names of all visible packages in
  the given directory. Also the implementation now uses `ghc-pkg`
  instead of manually looking at the package database
2014-04-15 05:15:50 +02:00
Kazu Yamamoto 3bfbbb8b5c supporting sandbox only (without cabal) to fix #164. 2014-03-30 17:28:57 +09:00
Kazu Yamamoto 955b1b4091 user package db options for both GHC and ghc-pkg. 2014-03-28 12:05:11 +09:00
Naohiro Aota 04022ab0ac Add test to check package id extraction
This commit add a failing test to check extracting package id. The test will
fail with the following output for now:

1) Cradle.getPackageDbPackages find a config file and extracts packages with their ids
expected: [("template-haskell",Just "template-haskell-2.8.0.0-32d4f24abdbb6bf41272b183b2e23e9c")]
 but got: []
2014-01-30 21:18:45 +09:00
Naohiro Aota a0db24b0a5 Extend Package to include id
This commit
1. rename Package with PackageBaseName
2. Pacakge = (PackageBaseName, Maybe String) to save its id
3. Expose packages with id if available
2014-01-30 20:45:30 +09:00
Kohei Suzuki f9c9ac676c Work around `canonicalizePath "/"` in GHC 7.2.2 2014-01-14 15:24:10 +09:00
Kazu Yamamoto ecd4bd665d removing unnecesary code. 2013-09-21 18:45:17 +09:00
Kazu Yamamoto a94b1a3b5a fixing tests. 2013-09-21 18:37:33 +09:00
Kazu Yamamoto 1050ea3c63 more tests. 2013-09-21 15:32:22 +09:00
Kazu Yamamoto c78d708c1c Introducing strict getPackageDbDir. 2013-09-21 15:10:43 +09:00
Kazu Yamamoto 5f0fcd0442 getCompilerOptions handles package-db options. 2013-09-20 17:15:41 +09:00
Kazu Yamamoto 4cfc702b79 removing unnecessary test cases. 2013-09-20 15:57:26 +09:00
Kazu Yamamoto 49791fb6ea Supporting sandbox sharing.
Braking backword compatibility of findCradle.
2013-09-20 15:48:50 +09:00
Kazu Yamamoto a491927ef6 more tests. 2013-09-20 11:22:56 +09:00
Kazu Yamamoto d37e1592d4 test for Cabal 1.18.0. 2013-09-05 16:47:52 +09:00
Kazu Yamamoto 955223a2a8 module name change. 2013-09-03 11:49:35 +09:00
Kazu Yamamoto 849c308e5c Separating IO and Ghc. 2013-05-20 11:29:44 +09:00
mvoidex 6be2b8f56e Fixed tests on Windows 2013-03-31 18:12:34 +04:00
Kazu Yamamoto 2a13e9b243 error test for Cradle. 2013-03-05 10:49:32 +09:00
Kazu Yamamoto 39954d9114 relative dir for testing. 2013-03-05 10:44:17 +09:00
Kazu Yamamoto 89dc02f185 test for Cradle. 2013-03-05 10:22:33 +09:00