Commit Graph

22 Commits

Author SHA1 Message Date
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
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
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
d37e1592d4 test for Cabal 1.18.0. 2013-09-05 16:47:52 +09:00
Kazu Yamamoto
56b1e14219 test case for #118. 2013-05-08 16:47:57 +09:00
eagletmt
4b77af102b Add a test case for checking QuasiQuotes module 2013-04-01 15:55:29 +09:00
mvoidex
653912a066 Test for no fail on unicode output 2013-03-31 17:55:37 +04:00
Kazu Yamamoto
b87a1e0e39 a test case for info. 2013-03-30 21:24:57 +09:00
Kazu Yamamoto
4a5f5441f3 Fixing a bug of TH expansion for GHC 7.6 (#92). 2013-03-16 11:50:45 +09:00
eagletmt
24ada2abeb Gather all hs-source-dirs to check test modules in sub-directories 2013-03-15 17:40:06 +09:00
Kazu Yamamoto
0556ec330c test for fast (not TH). 2013-03-13 13:37:17 +09:00
Kazu Yamamoto
9e54c8c87b brushing up tests. 2013-03-13 12:48:26 +09:00
Kazu Yamamoto
6102c2d1b6 adding a test file. 2013-03-07 21:00:48 +09:00
Kazu Yamamoto
1a792c4943 pkgConf is a directory. 2013-03-07 20:50:04 +09:00
Kazu Yamamoto
a7b41d34f9 adding pkgconf. 2013-03-05 11:00:56 +09:00
Kazu Yamamoto
7ee8843a52 removing unnecessary files. 2013-02-15 10:39:40 +09:00
Kazu Yamamoto
6752a8edcf test for Info. 2013-02-13 16:22:07 +09:00
Kazu Yamamoto
a05e4e817d test for Cabal where exec depends on its lib and its fix code. 2013-02-13 15:29:24 +09:00
Kazu Yamamoto
5b2ddde59e test for Cabal and CabalApi. 2013-02-12 16:24:33 +09:00
Kazu Yamamoto
23045b5312 test for Lint. 2013-02-12 14:31:01 +09:00