Daniel Gröber
899d583549
error
-> throw $ GMEProcess
2015-09-01 10:27:41 +02:00
Daniel Gröber
4aa75818d8
Fix tests
2015-08-31 08:32:31 +02:00
Daniel Gröber
18a8c67d39
Take sandbox cfg into account for caches
2015-08-19 09:18:10 +02:00
Daniel Gröber
78bdf86a95
Fix all the stack related things
2015-08-19 09:17:41 +02:00
scturtle
cbb8feb0ad
Add test project in cabal file
2015-08-19 09:17:30 +02:00
scturtle
ba13688413
Tell travis to download stack binary file
2015-08-19 09:17:12 +02:00
scturtle
89c3faea05
Initilize test for stack project
2015-08-19 09:17:11 +02:00
Daniel Gröber
e360f7eb44
Fix older GHCs
2015-08-19 09:05:57 +02:00
Daniel Gröber
50ab2091d6
Add missing test files
2015-08-19 07:02:57 +02:00
Daniel Gröber
bb3a948912
Fix over-qualified error messages ( Fix #551 )
2015-08-18 09:26:53 +02:00
Daniel Gröber
f1191a419e
Fix some warnings
2015-08-17 07:03:32 +02:00
Nikolay Yakimov
a5dae2a82d
Drop memory-mapped files, since ghc doesn't play well with those
...
All files are now "redirected", either user-created, or created by ghc-mod itself.
2015-08-16 23:20:00 +03:00
Nikolay Yakimov
20d6d4bae7
Disable lhs MemoryMapped test for now
2015-08-16 19:15:32 +03:00
Nikolay Yakimov
9a22662031
Update in-memory preprocessing check spec
2015-08-16 18:49:48 +03:00
Nikolay Yakimov
70d2a4704b
Tests for TH, LHS and CPP with FileMapping
2015-08-16 17:36:10 +03:00
Nikolay Yakimov
c96abfc422
Drop loadMappedFiles and move all loading code to progMain
2015-08-15 21:18:57 +03:00
Nikolay Yakimov
c2ff5be4ea
Better test for redirected check
...
Output now doesn't depend on compiler version
2015-08-15 21:07:35 +03:00
Nikolay Yakimov
0ad438461b
Fix mistake in test file
...
Should be `module File`, since it's used as a redirection.
2015-08-15 21:07:35 +03:00
Nikolay Yakimov
eb28035753
Some file mapping tests
2015-08-15 21:07:35 +03:00
Daniel Gröber
585a9ef425
Fix doc
in non-cabal projects
...
..man those non-cabal projects are really getting me down. Who uses
those anwayways ;)
2015-08-14 10:30:42 +02:00
Daniel Gröber
6248372477
Fix tests for 7.10
2015-08-14 09:50:20 +02:00
Daniel Gröber
5318db06f7
Fix cabal-helper tests
2015-08-12 10:44:36 +02:00
Daniel Gröber
11243e5304
Add in-memory caching otherwise everything is slow
2015-08-11 07:38:25 +02:00
Daniel Gröber
36c4253135
Desugar warnings don't work before ghc 7.8
2015-08-10 08:15:34 +02:00
Daniel Gröber
c4d534ba1c
Make sure preprocessed module are on the module path
2015-08-10 06:44:35 +02:00
Daniel Gröber
5b30fdde29
Remove version bounds from test cabal files
2015-08-10 03:57:47 +02:00
Daniel Gröber
8439f12cb0
Let Cabal determine the package-db stack
2015-08-07 07:31:08 +02:00
Daniel Gröber
f85327a1b6
Re-enable cabal-helper tests
2015-08-07 04:42:09 +02:00
Daniel Gröber
9dc7a9375e
Fix resolveModule test again
2015-08-07 04:42:09 +02:00
Daniel Gröber
2c9b79449a
Add missing test data to extra-source-files
2015-08-06 04:22:51 +02:00
Daniel Gröber
aabbd5ce33
Fix resolveModule Cpp test
2015-08-05 10:16:54 +02:00
Daniel Gröber
6e28e07ca9
Fix #507
2015-08-05 08:01:25 +02:00
Daniel Gröber
1a53582a21
Add failing test for missing warnings #507
2015-08-05 08:01:23 +02:00
Daniel Gröber
42e72b3816
Fix fileModuleName not working on CPP modules given by path
2015-08-03 05:46:51 +02:00
Sergey Vinokurov
7b6eb55b11
Transform ModuleString and Expression type synonyms into newtypes
2015-06-02 10:43:29 +03:00
Sergey Vinokurov
73b98573f4
Remove unused extractParens function and its tests
2015-06-02 10:43:29 +03:00
Daniel Gröber
079c05ff17
Fix a few warnings
2015-05-20 11:45:17 +02:00
Daniel Gröber
a2abad53ac
Merge remote-tracking branch 'prezi/master'
...
Conflicts:
Language/Haskell/GhcMod/CabalHelper.hs
2015-05-20 11:37:17 +02:00
Daniel Gröber
e6fc3dd8d2
Fix tests
2015-05-08 00:06:08 +02:00
Daniel Gröber
0f1e653f7f
Change some logging stuff
2015-05-06 16:13: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
9077e96aeb
Fix tests
2015-04-13 23:16:14 +02:00
Daniel Gröber
523f43c3c9
Fix some tests
2015-04-12 02:48:54 +02:00
Daniel Gröber
80d91776c5
Cleanup and some fixes
2015-03-28 19:13:48 +01:00
Daniel Gröber
1cc9c4ba3d
Also fix ghc and mtl version in doctest
2015-03-11 13:17:02 +01:00
Daniel Gröber
c8da5b8085
Fix line endings in logging output
2015-03-06 14:04:49 +01:00
Daniel Gröber
9d5ee06af8
Fix GHC 7.10-rc1
2015-03-06 14:04:16 +01:00
Daniel Gröber
01dde80385
Bring test suite up to date
2015-03-05 17:35:28 +01: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
2b4fd77c28
Add GHC-7.10 support
2015-02-08 12:43:35 +01:00
Daniel Gröber
9a8a3651d0
Fix findCabalFile
2014-11-03 00:45:27 +01:00
Daniel Gröber
506cf18885
Don't use fromJust
2014-11-03 00:33:23 +01:00
Rob Everest
56cc237e26
Support where clauses, let bindings and case expressions in case splitting ( fixes #395 )
2014-11-03 00:15:12 +01:00
Daniel Gröber
833d9ce058
$HOME/.cabal is not a cabal file
2014-11-03 00:04:15 +01:00
Daniel Gröber
37af8e368d
Refactoring World, etc. and fix #387
2014-11-02 01:19:27 +01:00
Daniel Gröber
9ac128aa6f
Fix #387 , Pattern match failure in GhcPkg
2014-10-30 01:10:56 +01:00
Daniel Gröber
a384593bb1
Only run PatternSynonyms test with ghc>=7.8
2014-09-12 06:13:04 +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
1c8d1edb4d
Workaround for #340
2014-09-12 04:02:32 +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
aeb11fb0b5
Keep error information in extract
2014-08-24 14:41:30 +02:00
Alan Zimmerman
0944820dba
CaseSplit panic sorted. closes https://github.com/kazu-yamamoto/ghc-mod/issues/336
2014-08-23 14:06:26 +02:00
Alan Zimmerman
9101f306d1
Adding test case for https://github.com/kazu-yamamoto/ghc-mod/issues/336
2014-08-23 11:01:49 +02:00
Kazu Yamamoto
ca7b0001ed
fix a test case.
2014-08-20 15:36:52 +09:00
Kazu Yamamoto
51710c38b0
trying to fix Travis CI.
2014-08-20 12:35:36 +09:00
Kazu Yamamoto
1e1505c535
removing warnings from spec.
2014-08-20 12:14:27 +09:00
Daniel Gröber
1d015019c9
Fix UtilSpec
2014-08-19 05:21:59 +02:00
Daniel Gröber
271ff4e162
Catch cabal configure
failure properly
2014-08-18 08:06:36 +02:00
Daniel Gröber
fa65d7269e
Add a test for gmsGet/Put
2014-08-12 18:24:39 +02:00
Daniel Gröber
9922cf08e1
Generate cabal.sandbox.config in test/data/broken-cabal
2014-08-12 18:24:39 +02:00
Daniel Gröber
87c587993a
Make parseCabalFile
use MonadError
2014-08-12 18:24:39 +02:00
Kazu Yamamoto
dcadd5c7ba
removing warnings.
2014-08-12 16:41:21 +09:00
Kazu Yamamoto
463ab9a26f
adding a test for foreign export.
2014-08-12 16:37:05 +09:00
Daniel Gröber
c69b252e3c
Add failing test for runGhcModT
2014-08-11 23:48:23 +02:00
Daniel Gröber
7388b50474
Add a test making sure pattern match failures on GhcModT work the way I expect
2014-08-06 20:42:34 +02:00
Daniel Gröber
24633f04e4
Remove ghc-mod.cache files before tests run
2014-08-06 19:38:42 +02:00
Daniel Gröber
f311efd90c
Rework GhcModT monad stack
2014-08-06 19:38:42 +02:00
Kazu Yamamoto
e1d9c3b881
clean up lookupSymbol.
2014-07-18 15:13:30 +09:00
Daniel Gröber
c3b959a8e5
Add FindSpec
2014-07-17 16:16:12 +02:00
Daniel Gröber
15e288decf
Remove some redundant stuff from test suite
2014-07-17 15:53:04 +02:00
Kazu Yamamoto
3050ba1863
fixing tests.
2014-07-15 21:40:22 +09:00
Daniel Gröber
0a62ad9116
Fix doctest
2014-07-15 01:04:06 +02:00
Daniel Gröber
f0bfcb8811
Use GhcModT everywhere and remove the GhcMod alias
...
Not doing this makes having GhcModT pretty pointless as users of the
library wouldn't be able to use custom inner monads as evey function for
dealing with GhcModT's would be constraint to (GhcModT IO) thus only
allowing IO as the inner monad.
2014-07-15 01:03:56 +02:00
Daniel Gröber
81c58585a2
Add functions for dealing with packages, modules and bindings to GHCApi
2014-07-11 10:43:51 +02: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
eff77d1f31
Add test for sandbox compatibility with ghc < 7.8
2014-05-19 01:29:49 +02: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
80e2761f2f
Ghc->GhcMod: finish Browse, Check
2014-05-14 18:05:40 +02:00
Daniel Gröber
f1535efcf2
Ghc -> GhcMod: Browse, Check
2014-05-14 17:06:29 +02:00
Kohei Suzuki
bcd2dfcffc
Add test for no errors case
2014-05-11 00:30:02 +09:00
Daniel Gröber
f949e4be7a
Copy ComponentLocalBuildInfo from Cabal-1.18
...
This way `configDependencies` works even when the Cabal version used by
cabal-install is later than the one used by ghc-mod.
2014-05-10 02:04:09 +02:00
Daniel Gröber
44b897c6a5
Print useful information when running spec
2014-05-09 20:37:55 +02:00
Daniel Gröber
8741323f5b
Fix tests for Cabal <= 1.16
2014-05-09 20:37:15 +02:00
Daniel Gröber
b8f9498f83
Fix reading of older Cabal setup-config
s
2014-05-09 20:35:13 +02:00
Kazu Yamamoto
8561e7b656
To break cyclic import, this patch makes GhcPkg.hs
independent from Monad.hs
(refactoring for #244 )
...
This removes `ghcPkgList`, `ghcPkgListEx` and `ghcPkgDbOpt`. I'm not sure
this is a right way to do.
2014-05-08 12:42:45 +09:00
Daniel Gröber
81504de8bd
spec: Be more forgiving for ghc opts in getCompilerOptions
2014-05-05 09:26:56 +02:00
Daniel Gröber
635830b527
Fix #242 , ghcPkgList(Ex) on NixOS
2014-05-05 00:29:10 +02:00