Daniel Gröber
503e8cbe06
Move DynFlag related functions from GHCApi to another module
2014-07-12 02:57:19 +02:00
Kazu Yamamoto
53394d3075
ver bumps up.
...
Major version is now 5 because of a lot of API changes.
2014-07-11 14:09:10 +09:00
Daniel Gröber
4b6a687bc1
Migrate the remaining parts of the exposed API to GhcMod a
2014-07-11 03:13:38 +02:00
Daniel Gröber
d696214816
We really don't want mtl < 2.0 (different API)
2014-07-10 20:56:57 +02:00
Kazu Yamamoto
2091eb6027
Revert "workaround for #277 "
...
This reverts commit ef2087b379
.
2014-07-03 22:39:49 +09:00
Kazu Yamamoto
ef2087b379
workaround for #277
2014-07-03 22:10:15 +09:00
Alejandro Serrano
c06ee75fbb
Fix building errors on ghc < 7.8 and tests
2014-06-28 23:18:49 +02:00
Alejandro Serrano
2ab6991d95
Move code to new FillSig module
...
- Clean up a lot of code
2014-06-27 18:38:15 +02:00
Alejandro Serrano
40cd5b7deb
Haskell part of case splitting working!
2014-06-25 18:09:24 +02:00
Alejandro Serrano
5fa536714f
Initial code generation working
...
- Added fallback with haskell-src-exts
2014-06-22 18:03:34 +02:00
Alejandro Serrano
a45fb4c6f5
Move case split and sig. generation to own files
...
- Created SrcUtils module for shared functionality
2014-06-21 11:38:44 +02:00
Daniel Gröber
2b4f780296
Add TestUtils
to other-modules
2014-05-14 20:56:14 +02:00
Daniel Gröber
8324dd96ae
Don't expose Convert
2014-05-14 18:54:56 +02:00
Daniel Gröber
80e2761f2f
Ghc->GhcMod: finish Browse, Check
2014-05-14 18:05:40 +02:00
Daniel Gröber
ebfb740a2e
Move convert
to it's own module.
2014-05-14 17:06:30 +02:00
Daniel Gröber
96a85fe953
Copy readMaybe/readEither from base >= 4.7 for backwards compatibility
2014-05-10 13:43:46 +02:00
Daniel Gröber
b8f9498f83
Fix reading of older Cabal setup-config
s
2014-05-09 20:35:13 +02:00
Kazu Yamamoto
8f091b4f70
fixing fails in travis.
2014-05-08 16:38:17 +09:00
Daniel Gröber
3b5b9f8fcf
Expose Language.Haskell.GhcMod.Monad
2014-05-04 04:57:38 +02:00
Daniel Gröber
c50b4f5a38
ghc-mod deserves it's own monad
...
Having to call `findCradle` and `initializeFlagsWithCradle` everywhere
we interact with ghc-mod's API doesn't seem very Haskell-like to me I
think we should provide a Monad that has a run function that already
does all those tedious tasks for us.
The `GhcMod` monad is basically a wrapper around `RWST r w s IO` with an
instance for `GhcMonad`
Having a `Reader` allows us to pass `Options` to runGhcMod and not have
to worry about passing it everywhere, `Cradle` is also stored in the
reader environment on initialization.
Writer and State are just there for future use.
I've included a `toGhcMod` function that turns a `Ghc a` into a `GhcMod
a` this will make it easy to transition everyting to using the `GhcMod`
monad instead of `Ghc` without breaking the build or test suite for
extended periods of time.
Conflicts:
ghc-mod.cabal
2014-05-04 04:57:38 +02:00
Daniel Gröber
77605c6daf
Add fromInstalledPackageId
2014-05-03 15:36:10 +02:00
Daniel Gröber
6ad386d31e
Add test data to Extra-Source-Files
2014-05-03 15:35:04 +02:00
Daniel Gröber
1c27e9ec4e
Bump hspec dependency, should fix #236
...
`hspec-discover --no-main` was introduced in 1.8.2
2014-05-01 01:31:32 +02:00
Kazu Yamamoto
186485577d
bootInfo as API.
2014-04-30 10:49:25 +09:00
Kazu Yamamoto
913fb72911
ErrMsg -> Logger.
2014-04-28 21:47:08 +09:00
Kazu Yamamoto
d2a92529fc
fixing deps.
2014-04-24 22:30:18 +09:00
Kazu Yamamoto
4011826a6b
ver bumps up.
2014-04-24 22:22:23 +09:00
Kazu Yamamoto
390c509144
find functions went to lib.
2014-04-24 17:02:50 +09:00
Kazu Yamamoto
bd34db1b07
using force just in case.
2014-04-22 13:32:33 +09:00
Kazu Yamamoto
1006cd4eec
APIs in Ghc monad now go to GHCMod.Ghc.
2014-04-21 12:51:56 +09:00
Kazu Yamamoto
064e4af236
creating src/Boot.hs.
2014-04-21 11:57:14 +09:00
Kazu Yamamoto
ab5e082e81
--quiet back ( #226 ).
2014-04-19 08:26:30 +09:00
Kazu Yamamoto
aecb9bc1e4
implementing suppressStdout/err.
2014-04-18 15:41:32 +09:00
Daniel Gröber
1639a7b2e0
Bring spec up to speed
2014-04-18 04:00:01 +02:00
Daniel Gröber
be4172b454
Add cabal.sandbox.config.in to Extra-Source-Files
2014-04-15 17:13:55 +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
e537624e65
ver bumps up.
2014-04-07 15:04:27 +09:00
Kazu Yamamoto
172645aa9f
ver bumps up.
2014-04-03 10:02:04 +09:00
Kazu Yamamoto
f959a8029e
ver bumps up.
2014-03-31 11:01:32 +09:00
Kazu Yamamoto
657a007b47
a new module.
2014-03-27 16:23:15 +09:00
Kazu Yamamoto
8238c632a8
using Data.Map if containers is old.
...
hoping passing travis tests.
2014-03-26 15:23:12 +09:00
Kazu Yamamoto
5c79376ca7
containers >= 0.5 for Data.Map.Strict.
2014-03-26 12:00:36 +09:00
Kazu Yamamoto
dc6424454e
ghc-insert-module now uses ghc-modi.
2014-03-25 14:29:18 +09:00
Kazu Yamamoto
b40f162979
adding ghc-modi.
2014-03-19 10:23:47 +09:00
Kazu Yamamoto
dd7b7b8305
the first step to make ghc-mod independent from GHC's version.
2014-03-17 16:58:55 +09:00
Kazu Yamamoto
16e050439d
removing fast/slow code.
2014-03-17 15:56:00 +09:00
Kazu Yamamoto
5aa5d3cbca
ver bumps up.
2014-03-15 10:10:10 +09:00
Kazu Yamamoto
0fac26e350
hlint min version.
2014-03-13 11:10:37 +09:00
Kazu Yamamoto
68447e3681
ver bumps up.
2014-02-07 09:46:18 +09:00
Kazu Yamamoto
dc4cd66964
ver bumps up.
2014-01-14 11:59:33 +09:00
Kazu Yamamoto
a34f9a24be
workaround for the next HP.
2014-01-08 12:01:10 +09:00
Kazu Yamamoto
e416529ede
ver bumps up.
2013-11-20 14:55:27 +09:00
Kazu Yamamoto
beaf3c0a4e
layout only.
2013-11-19 10:43:27 +09:00
Kazu Yamamoto
c37303a08e
dep switch for convertible ( #161 ).
2013-11-19 10:37:11 +09:00
Kazu Yamamoto
1fcaf5f34e
ver bumps up.
2013-10-07 16:49:31 +09:00
Kohei Suzuki
b0f20ffb04
Support GHC < 7.6.0 which doesn't have getExecutablePath
2013-10-05 12:19:30 +09:00
Kazu Yamamoto
1a6413cd2f
ver bumps up.
2013-09-28 10:53:40 +09:00
Kazu Yamamoto
c570c5b689
ver bumps up.
2013-09-21 18:46:03 +09:00
Kazu Yamamoto
1050ea3c63
more tests.
2013-09-21 15:32:22 +09:00
Kazu Yamamoto
ca28a56037
ver bumps up.
2013-09-21 05:52:56 +09:00
Kazu Yamamoto
6bbe9e5df9
add doctest.
2013-09-20 21:10:31 +09:00
Kazu Yamamoto
5b5c663990
ver bumps up.
2013-09-16 12:07:03 +09:00
Kazu Yamamoto
2dd1772146
ver bumps up.
2013-09-16 11:23:02 +09:00
Kazu Yamamoto
024b6b3200
ver bumps up.
2013-09-06 14:23:21 +09:00
Kazu Yamamoto
ce5056fcda
updating Extra-Source-Files.
2013-09-06 13:52:56 +09:00
Kazu Yamamoto
8e60864a34
ver bumps up.
2013-09-04 15:02:20 +09:00
Kazu Yamamoto
cd3e4989e1
ver bumps up.
2013-09-03 11:59:24 +09:00
Kazu Yamamoto
77769e95ce
reverting convertible dep.
2013-09-03 11:58:23 +09:00
Kazu Yamamoto
955223a2a8
module name change.
2013-09-03 11:49:35 +09:00
Kazu Yamamoto
1b862ca107
removing shouldContain since hspec provides it!
2013-09-03 11:44:59 +09:00
Kazu Yamamoto
159c181323
ver bumps up.
2013-09-03 11:32:01 +09:00
Kazu Yamamoto
b0f7370fdd
removing unnecessary dep.
2013-09-03 11:28:35 +09:00
Alan Zimmerman
e487a535eb
Rename GhcModLowLevel to GhcMod.Internal and document exposed items.
2013-08-26 18:28:21 +02:00
Alan Zimmerman
a45bfb97b9
Exposing lower level API using GhcMonad
2013-08-24 19:17:33 +02:00
Kazu Yamamoto
b38649b1dc
ver bumps up.
2013-05-30 10:54:55 +09:00
Kazu Yamamoto
e0feb9c075
fixing a typo.
2013-05-21 22:20:48 +09:00
Kazu Yamamoto
3e477c6497
ver bumps up.
2013-05-21 21:38:36 +09:00
Kazu Yamamoto
eb34a5372e
fixing markup.
2013-05-21 21:38:19 +09:00
Kazu Yamamoto
dad3e9b880
ver bumps up.
2013-05-21 11:08:42 +09:00
Kazu Yamamoto
3ee2688732
updating cabal file.
2013-05-21 11:04:54 +09:00
Kazu Yamamoto
bac4bbbcf3
Changing GHCMod as a library.
2013-05-17 10:00:01 +09:00
Kazu Yamamoto
1977b8858a
ver bumps up.
2013-05-13 13:00:30 +09:00
Kazu Yamamoto
587d779815
ver bumps up.
2013-04-02 15:27:42 +09:00
Kazu Yamamoto
5aabca1e99
adding test files to the cabal file.
2013-03-16 12:08:54 +09:00
Kazu Yamamoto
e874422274
ver bumps up.
2013-03-16 12:04:05 +09:00
Kazu Yamamoto
cef38b6a7a
ver bumps up.
2013-03-13 14:55:01 +09:00
Kazu Yamamoto
0556ec330c
test for fast (not TH).
2013-03-13 13:37:17 +09:00
Kazu Yamamoto
c354001577
clean up the code for Doc/SDoc.
2013-03-12 22:15:23 +09:00
Kazu Yamamoto
21bc2d232a
ver dumps up.
2013-03-07 20:51:36 +09:00
Kazu Yamamoto
9db0ca25db
ver bumps up.
2013-03-05 16:54:13 +09:00
Kazu Yamamoto
4f44d54b0a
adding missing files to cabal file.
2013-03-05 11:04:45 +09:00
Kazu Yamamoto
ca229c3be1
Merging Cabal to CabalApi.
2013-03-03 15:47:03 +09:00
Kazu Yamamoto
a393f8a971
Using Cradle.
2013-03-02 16:14:55 +09:00
Kazu Yamamoto
f43af4be29
Find cabal file and sandbox at the same time.
2013-03-02 12:18:55 +09:00
Kazu Yamamoto
14ea5a6d71
package includes ChangeLog.
2013-03-01 11:39:47 +09:00
Kazu Yamamoto
cb9271049f
ver bumps up.
2013-03-01 10:46:39 +09:00
Kazu Yamamoto
8d512a3d97
ver bumps up.
2013-02-15 10:47:56 +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
Kazu Yamamoto
42a1ea0a87
test for Browse.
2013-02-12 14:18:19 +09:00
Kazu Yamamoto
fb7e509efc
test for Flag.
2013-02-12 14:12:15 +09:00
Kazu Yamamoto
418c39b759
adding tests.
2013-02-12 14:06:22 +09:00
Kazu Yamamoto
c95c96c49f
ver bumps up.
2012-12-11 11:58:13 +09:00
Kazu Yamamoto
a91faaa3bb
ver bumps up.
2012-10-30 16:28:48 +09:00
Kazu Yamamoto
0529772b93
Cabal >= 1.10.
2012-10-30 16:27:44 +09:00
Kei Hibino
ff9fa49141
Read depend packages from *.cabal, and adjust compiler package flags.
2012-10-24 09:11:09 +09:00
Kazu Yamamoto
e5a2628dfa
ver bumps up.
2012-10-19 20:22:15 +09:00
ihameed
8e335fbc3b
GHC 7.6.1 compatibility
...
- switch from ClockTime to UTCTime in Info.pprInfo
- make ghc-mod loggers always take a first argument of type DynFlags
- consolidate GHC API shims in Gap.hs--this depends on tracingDynFlags,
which is unfortunate
2012-10-16 03:27:35 -07:00
Tim Dysinger
24f1613e91
Use time package so we're ghc 7.6 compatible
2012-09-27 14:32:29 -10:00
Kazu Yamamoto
3861625420
Removing -fno-warn-unused-do-bind.
2012-08-06 09:43:47 +09:00
Kazu Yamamoto
8fbdfac52b
ver bumps up.
2012-06-28 11:04:29 +09:00
Kazu Yamamoto
38fae2a648
ver bumps up.
2012-06-13 18:19:55 +09:00
Kazu Yamamoto
43e560afdd
ver bumps up.
2012-06-08 17:59:29 +09:00
Kazu Yamamoto
cb2eb3f1b3
ver bumps up.
2012-06-04 16:06:01 +09:00
Kazu Yamamoto
111058562a
ver bumps up.
2012-04-16 16:09:49 +09:00
Kazu Yamamoto
1a6f8c2b7a
ver bumps up.
2012-04-16 11:03:08 +09:00
Kazu Yamamoto
3330e93912
ver bumps up.
2012-04-10 10:06:45 +09:00
Kazu Yamamoto
cdd8eb71a3
ver bumps up.
2012-03-26 11:35:01 +09:00
Kazu Yamamoto
3178393c85
ver bumps up.
2012-03-06 16:04:31 +09:00
Kazu Yamamoto
18b6eec6ad
Defining C-< and C-> for indentation.
2012-02-28 20:38:50 +09:00
Kazu Yamamoto
2c320d4032
ver bumps up.
2012-02-27 13:02:02 +09:00
Kazu Yamamoto
35c312b009
for GHC 7.0.x.
2012-02-21 16:35:28 +09:00
Kazu Yamamoto
d3c37585ef
ver bumps up.
2012-02-20 17:13:33 +09:00
Kazu Yamamoto
964d1f8409
ver bumps up.
2012-02-16 17:47:02 +09:00
Kazu Yamamoto
eda8edc345
add desc
2012-02-16 17:46:39 +09:00
Kazu Yamamoto
f3725127bc
Using io-choice.
2012-02-16 14:44:20 +09:00
Kazu Yamamoto
96cbf68e16
more applicative.
...
error msg fix.
2012-02-15 14:52:48 +09:00
Kazu Yamamoto
dced95031a
ver bumps up.
2012-02-15 11:22:55 +09:00
Kazu Yamamoto
416c901188
Merge remote-tracking branch 'eagletmt/ghc-syb-utils'
2012-02-14 16:16:26 +09:00
Kazu Yamamoto
a7430eb494
Adaptor layer for GHC API.
2012-02-14 16:09:53 +09:00
Kazu Yamamoto
0bee9c5d2f
ver bumps up.
2012-02-14 13:37:31 +09:00
eagletmt
122167f4c1
avoid GHC's panic
2012-02-14 12:18:54 +09:00
Kazu Yamamoto
7e45a03532
ver bumps up.
2012-02-13 17:13:47 +09:00
Kazu Yamamoto
c2b41f8ad7
ver bumps up.
2012-02-13 13:39:43 +09:00
Hideyuki Tanaka
b8d8926ec4
add annot command
2012-02-12 21:04:18 +09:00
Kazu Yamamoto
cd4a839f35
ver bumps up.
2012-02-09 17:00:20 +09:00
Kazu Yamamoto
8252472712
ver bumps up.
2012-02-08 18:33:10 +09:00
Kazu Yamamoto
fb0deb1abd
ver bumps up.
2012-02-06 18:24:09 +09:00
Kazu Yamamoto
36c0b7ac85
general parsing for *.cabal!
2012-02-06 18:07:32 +09:00
Kazu Yamamoto
b7945d8859
ver bumps up.
2012-02-02 15:19:28 +09:00
Kazu Yamamoto
4e87e389e5
ver bumps up.
2012-01-23 14:41:23 +09:00
Conal Elliott
a0216361ed
Added support for auto-completing option flags and pragmas
2012-01-22 20:18:40 -08:00
Kazu Yamamoto
9a8ad11659
ver bumps up.
2012-01-06 16:56:33 +09:00
Kazu Yamamoto
94efd2f250
ver bumps up.
2011-12-28 15:22:33 +09:00
Kazu Yamamoto
94be5c3760
inserting module.
2011-12-27 16:28:02 +09:00
Kazu Yamamoto
fdc66396d4
auto version gen.
2011-12-26 17:39:55 +09:00
Kazu Yamamoto
921c002321
ver bumps up.
2011-12-02 13:07:52 +09:00
Kazu Yamamoto
2843e9a73b
ver bumps up.
2011-12-02 12:29:38 +09:00