Commit Graph

58 Commits

Author SHA1 Message Date
Daniel Gröber
2b4fd77c28 Add GHC-7.10 support 2015-02-08 12:43:35 +01:00
Daniel Gröber
5a4bec8755 Rewrite ghc-mod command line frontend. 2014-09-18 10:45:14 +02:00
Daniel Gröber
690a64f5b5 Merge branch 'master' of https://github.com/robeverest/ghc-mod
Conflicts:
	Language/Haskell/GhcMod/CabalConfig.hs
2014-09-12 05:21:12 +02:00
Rob Everest
2c2e7782d2 Use the cabal configuration flags where possible when finalizing the PackageDescription. 2014-09-12 13:15:05 +10:00
Daniel Gröber
8889c2e8e5 note 2014-09-11 01:27:19 +02:00
Daniel Gröber
a0ae09a3e6 Give readProcess' more sensible error messages.
Also a bunch of refactoring for GhcModError
2014-08-28 15:57:49 +02:00
Daniel Gröber
271ff4e162 Catch cabal configure failure properly 2014-08-18 08:06:36 +02:00
Kazu Yamamoto
2875275fc0 hlint suggestions. 2014-08-14 11:11:02 +09:00
Daniel Gröber
e0bbd91eba Remove GMECabal, GMEGhc constructors from GhcModError for now 2014-08-12 21:11:35 +02:00
Daniel Gröber
3dfd04c7fe Use the right MonadIO class 2014-08-12 19:06:04 +02:00
Daniel Gröber
87c587993a Make parseCabalFile use MonadError 2014-08-12 18:24:39 +02:00
Kazu Yamamoto
be9a67f02a moving #if to Gap.hs. 2014-07-15 12:29:27 +09:00
Daniel Gröber
175635505d Fix warnings 2014-05-09 20:44:33 +02:00
Daniel Gröber
b8f9498f83 Fix reading of older Cabal setup-configs 2014-05-09 20:35:13 +02:00
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