Daniel Gröber
a7b2c86985
Fall back to Cabal 1.16 format on runtime if extracting fails
2014-05-08 12:59:52 +02:00
Daniel Gröber
4c93819da8
Fix ghc-7.8
2014-05-08 11:50:51 +02:00
Daniel Gröber
7b8540add1
Add support for getting pkgDeps with Cabal <= 1.16
2014-05-08 11:32:40 +02:00
Kazu Yamamoto
f199ea9e2e
removing warnings.
2014-05-08 10:49:40 +09:00
Daniel Gröber
5044cf7f56
Fix warnings
2014-05-05 09:43:14 +02:00
Daniel Gröber
096a56e660
Hide catch
from Prelude
2014-05-04 04:57:38 +02:00
Daniel Gröber
4e4d27e62d
Use componentsConfigs
instead of configDependencies
...
`configDependencies` was added in Cabal-1.20 but we're using 1.18 on travis.
2014-05-04 04:57:38 +02:00
Daniel Gröber
9d9f66e942
Remove Maybe
from cabalConfigDependencies
and fromInstalledPackageId
2014-05-04 04:57:38 +02:00
Daniel Gröber
0c859294a3
Parse cabal setup-config
to get depencencies
2014-05-03 15:36:10 +02:00
Kazu Yamamoto
66a5123f8c
rescue old Cabal which does not support bench.
2014-04-26 09:22:42 +09:00
Daniel Gröber
8ac39a3378
Add benchmarks to cabalAllBuildInfo
2014-04-25 20:48:20 +02:00
Kazu Yamamoto
152b218813
hlint hack.
2014-04-21 16:12:30 +09:00
Daniel Gröber
2381f6e1ab
More refactoring of package handling
...
- 'GhcPkg' now parses 'ghc-pkg -v list' output directly to also get the
package-id
- Remove unused field 'cradlePackages' in Cradle
- Remove 'getPackageDbPackages' and use 'ghcPkgListEx' instead
2014-04-18 03:59:46 +02:00
Daniel Gröber
7d75787ae3
Only add available package to ghc options
...
Fixes #185
2014-04-15 05:18:42 +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
5e01a45218
removing dep packages of benchmark.
...
installing packages of benchmark fails in many cases, sigh.
2014-03-30 15:07:14 +09:00
Kazu Yamamoto
955b1b4091
user package db options for both GHC and ghc-pkg.
2014-03-28 12:05:11 +09:00
Kazu Yamamoto
992013df05
hlint hack.
2014-03-27 16:31:49 +09:00
Kazu Yamamoto
0a323f71b9
close import.
2014-03-27 15:17:58 +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
Kazu Yamamoto
2681dc3519
fix for GHC 7.2.x.
2014-01-08 22:16:10 +09:00
Alan Zimmerman
bdc2b96ae1
Need to validate test paths too
2013-09-21 17:26:55 +02:00
Alan Zimmerman
54bb83e972
Must explicitly find the full path for an exe target
2013-09-21 16:08:45 +02:00
Alan Zimmerman
93195cb780
Return correct values for cabalAllTargets.
2013-09-21 14:01:43 +02:00
Kazu Yamamoto
4426f7fd0f
Defining cabalAllTargets.
...
This is from @alanz (#151 ).
2013-09-20 17:25:28 +09:00
Kazu Yamamoto
668e9e4771
Removing GHCVersion.
2013-09-20 17:21:10 +09:00
Kazu Yamamoto
5f0fcd0442
getCompilerOptions handles package-db options.
2013-09-20 17:15:41 +09:00
Kazu Yamamoto
46245fb694
Adding "dist/build/autogen" for "Path_*.hs".
2013-09-20 16:23:58 +09:00
Kazu Yamamoto
1212040e3b
includeDirectories takes care of ".".
2013-09-20 11:22:11 +09:00
Kazu Yamamoto
43f49f7abe
doc for getCompilerOptions.
2013-09-20 10:30:51 +09:00
Kazu Yamamoto
8e4d2cec21
Obsoleting fromCabalFile.
2013-09-19 16:21:48 +09:00
Kazu Yamamoto
97da4e9be1
Defining CompilerOptions.
2013-09-19 15:58:50 +09:00
Kazu Yamamoto
7a9cc8231b
Checking if "dist/build/autogen/cabal_macros.h" exists.
2013-09-16 12:04:34 +09:00
Kazu Yamamoto
57d2c74f1c
Specifying "-optP".
2013-09-16 11:15:34 +09:00
Kazu Yamamoto
856392fdb7
Using proper type aliases.
2013-09-16 11:00:39 +09:00
Kazu Yamamoto
de9aa7740c
adding "dist/build".
2013-09-16 10:55:26 +09:00
Kazu Yamamoto
45751e3926
Exporting more low level APIs.
2013-09-16 09:56:08 +09:00
Kazu Yamamoto
5750673e0e
Filtering problematic packages.
2013-09-11 14:09:18 +09:00
Kazu Yamamoto
3bbc008907
test update and error handling in CabalApi.
2013-05-30 10:50:19 +09:00
Kazu Yamamoto
b2d2542435
Using PackageDescription instead of GenericPackageDescription.
...
This enables to pick conditional dependency in a cabal file.
2013-05-29 17:47:52 +09:00
Kazu Yamamoto
f4f55d8cf0
removing an old incorrect comment.
2013-05-29 12:05:14 +09:00
Kazu Yamamoto
089d490607
writing docs.
2013-05-20 14:28:56 +09:00
Kazu Yamamoto
bac4bbbcf3
Changing GHCMod as a library.
2013-05-17 10:00:01 +09:00