Anthony Cowley
b4bb930037
Improved documentation browsing on OS X.
...
Opening a tab in Safari using AppleScript preserves URL anchors. The use
of this function may be toggled with a new customization option.
2015-08-17 15:36:21 -04:00
Anthony Cowley
78c5cea161
DeferErrors implies DeferTypedHoles in GHC >= 7.10
...
The Opt_DeferErrors flag should imply Opt_DeferTypedHoles. The proper
API for setting these flags that implements such implications is
unfortunately not exposed by GHC.
2015-08-17 15:14:44 -04:00
Alejandro Serrano
45f8194c0c
Set -fdefer-types-holes in case split
2015-08-17 14:54:10 -04:00
Daniel Gröber
f1191a419e
Fix some warnings
2015-08-17 07:03:32 +02:00
Daniel Gröber
1f14ff08c6
Log exceptions as GmException
2015-08-17 06:52:56 +02:00
Nikolay Yakimov
f4aea2c08a
Add new test-files to .cabal
2015-08-17 00:26:43 +03:00
Nikolay Yakimov
ab19da08db
Removed redundant imports
2015-08-16 23:42:20 +03:00
Nikolay Yakimov
8ef8a86397
Unload mapped files before loading
2015-08-16 23:38:32 +03:00
Nikolay Yakimov
e0044a3697
Add FileMapping commands description to ghc-mod main.
2015-08-16 23:28:45 +03: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
654b172f5e
Add FileMapping support to HMG/preprocessFile
...
Post-rebase update
2015-08-16 18:22:27 +03:00
Nikolay Yakimov
70d2a4704b
Tests for TH, LHS and CPP with FileMapping
2015-08-16 17:36:10 +03:00
Nikolay Yakimov
d276b9bb7f
Remove redundant imports
2015-08-15 21:26:33 +03:00
Nikolay Yakimov
c96abfc422
Drop loadMappedFiles and move all loading code to progMain
2015-08-15 21:18:57 +03:00
Nikolay Yakimov
a9b98e7128
[File-map] Export more user-friendly functions in public API
2015-08-15 21:08:24 +03:00
Nikolay Yakimov
72c43a9210
Rename GmPprEnv fields rs* → gpe*
2015-08-15 21:07:36 +03:00
Nikolay Yakimov
e7329a9d24
Replace redirected filenames in info.
2015-08-15 21:07:36 +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
8f931eb928
Fix problem with fileModSummary
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
Nikolay Yakimov
c5f71933f6
Canonicalize FilePath before lookup in withMappedFile
2015-08-15 21:06:57 +03:00
Nikolay Yakimov
438b15463e
Move getCanonicalFileName(Safe) to Utils module
2015-08-15 21:06:57 +03:00
Nikolay Yakimov
267edfebe3
Try best-guess tactic if file to be redirected doesn't exist
2015-08-15 21:06:57 +03:00
Nikolay Yakimov
a0cf585939
Bugfix: canonicalize filename before trying to unload
2015-08-15 21:06:57 +03:00
Nikolay Yakimov
31020c4112
Move withMappedFile to Language.Haskell.GhcMod.Utils
2015-08-15 21:06:57 +03:00
Nikolay Yakimov
d405ce7efa
Make linting work with mapped files
2015-08-15 21:06:57 +03:00
Nikolay Yakimov
5b0cca0353
Added withMappedFile utility function
...
Works pretty much as `withTempFile`, except looks
mapping up and uses temp. file only when necessary.
2015-08-15 21:06:57 +03:00
Nikolay Yakimov
d3b1bf125b
Move reading source from stdin to frontend
2015-08-15 21:06:25 +03:00
Nikolay Yakimov
86545a895b
Rename load and unload interact. cmds to map-file and unmap-file
2015-08-15 21:02:43 +03:00
Nikolay Yakimov
e15eea2f39
Rename file-map option to map-file
2015-08-15 21:02:43 +03:00
Nikolay Yakimov
67102c92b8
Use cradleTempDir instead of getTemporaryDirectory in HMG
2015-08-15 21:02:42 +03:00
Nikolay Yakimov
de5ff87f19
Don't use infix call for type ctor
2015-08-15 20:58:45 +03:00
Nikolay Yakimov
1efacbef88
Use less generic name for reader monad/state in Logger
2015-08-15 20:58:45 +03:00
Nikolay Yakimov
2504f643e9
Replace mapped names with original ones in output
2015-08-15 20:58:45 +03:00
Nikolay Yakimov
f8a0325617
Load all mapped targets
2015-08-15 20:41:10 +03:00
Nikolay Yakimov
e70988e15f
Use MaybeT
instead of maybe (return Nothing)
2015-08-15 20:41:10 +03:00
Nikolay Yakimov
e72d72eb86
Workaround for GHC 7.4 bugs
2015-08-15 20:41:10 +03:00
Nikolay Yakimov
3790fca20b
Initial support for file redirection
...
Rewrite, taking discussion into consideration
2015-08-15 20:41:10 +03:00
Daniel Gröber
4084e9aafc
Merge branch 'master' of github.com:kazu-yamamoto/ghc-mod
2015-08-14 10:38:23 +02:00
Daniel Gröber
97124afc4c
Bump version to 5.3.0.0
2015-08-14 10:36:33 +02: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
Kazu Yamamoto
7af35a3850
fixing doc.
2015-08-14 17:08:14 +09:00
Daniel Gröber
6248372477
Fix tests for 7.10
2015-08-14 09:50:20 +02:00
Daniel Gröber
9cff067a27
Catch errors in legacy-interactive loop
2015-08-14 09:50:17 +02:00
Kazu Yamamoto
8a0c4be12b
defining ghc-debug-options.
2015-08-14 16:47:44 +09:00
Kazu Yamamoto
90061facb9
checking if (buffer-file-name) returns non-nil just in case.
2015-08-14 16:38:49 +09:00
Daniel Gröber
e126db833a
Disable nuke-caches for now, blowing away dist/ is too risky
2015-08-14 09:33:22 +02:00