Commit Graph

279 Commits

Author SHA1 Message Date
Daniel Gröber 35690941aa Reorganize module namespace
- Remove Language.Haskell prefix from all modules
- Move 'GHCMod.*' to 'GhcMod.Exe'
- Move 'GhcModExe' to 'GhcMod.Exe'
2017-05-28 04:23:37 +02:00
Daniel Gröber d7a00ffcca Fix ghc-7.6 compile time errors 2017-05-12 15:28:19 +02:00
Daniel Gröber 2135ff438d Change slogan 2017-03-07 00:25:46 +01:00
eatobin 97c3f018c4 Fix build on case-insensitive filesystems (#873) 2017-02-28 03:01:14 +01:00
Daniel Gröber ee55da4908 Prepare for splitting off ghc-mod-core eventually 2017-01-12 17:05:47 +01:00
Alan Zimmerman 78e35d8a74 Changes to work with optparse-applicative 0.13.0.0 2017-01-12 15:35:57 +02:00
Daniel Gröber 1ca4e5f399 Make 'render' work with ghc <8.0 2016-12-15 21:18:32 +01:00
Daniel Gröber 5d3e5932a7 Remove dependency on 'pretty'
Now using GHC's 'Pretty' module instead
2016-12-15 15:20:24 +01:00
Daniel Gröber e32cb977b7 Fix some old repo URLs 2016-12-15 15:20:24 +01:00
Daniel Gröber ef8349f19a Merge branch 'browse-print-parent' of https://github.com/atom-haskell/ghc-mod into release-5.6.0.0 2016-05-14 21:35:36 +02:00
Daniel Gröber f994893c58 Merge branch 'type-constraints' of https://github.com/atom-haskell/ghc-mod into release-5.6.0.0 2016-05-14 21:35:21 +02:00
Daniel Gröber e495c55a8d Use existence of cabal/stack as cradle indicator
Also add some more "info" logging for which cradle was picked.
2016-05-14 20:18:06 +02:00
Nikolay Yakimov 8e33dbd88d [Browse] Option to show symbol parents
E.g. Nothing is a constructor of Maybe, so it has
parent Maybe.

This is useful for completion, e.g. with `(..)` imports
2016-03-14 21:22:55 +03:00
Alan Zimmerman b02dfb9ce3 Cleaning up 2016-02-09 22:34:25 +02:00
Alan Zimmerman 5f070b8428 Rebalance between lib and exe 2016-02-09 22:24:46 +02:00
Alan Zimmerman d47c9f1205 Merge branch 'master' into opts-in-lib 2016-02-09 21:22:15 +02:00
Nikolay Yakimov 98b2e4dac2 Since a backend option, remove encoding short opt 2016-02-09 12:42:47 +03:00
Nikolay Yakimov 8105f14f2c Add option for stdio encoding, set stdin encoding 2016-02-09 12:38:12 +03:00
Alan Zimmerman 1cc97db24f Move the CLI parser definitions into the lib
So they can be used by library clients to parse and pass in the
appropriate ghc-mod Options.
2016-02-08 22:34:20 +02:00
Nikolay Yakimov 0c5da02d52 [Type-constraints] Add an option to toggle this 2016-01-20 01:29:33 +03:00
Daniel Gröber 68cd165088 Merge branch 'fix-718' of https://github.com/atom-haskell/ghc-mod into release-5.5.0.0 2016-01-09 22:40:47 +01:00
Nikolay Yakimov 68689bfcfd Use Binary for 'find' communication channel 2016-01-09 17:27:21 +03:00
Nikolay Yakimov 64a45fa510 Fail (NG) on command format errors 2016-01-08 22:10:50 +03:00
Nikolay Yakimov da1c1bebb2 Use stdout pipe instead of temp.files in Find 2016-01-05 13:44:17 +03:00
Daniel Gröber ec5a362179 Add AsyncSymbolDb to fix runGhcMod race condition for good 2016-01-04 05:27:31 +01:00
Daniel Gröber 59193c71cd Merge branch 'shell-parse-stx-etx' of https://github.com/atom-haskell/ghc-mod into release-5.5.0.0 2015-12-30 23:02:52 +01:00
Nikolay Yakimov 849496c047 [Shell-escape] 'ascii-escape ' prefix toggle 2015-12-30 21:11:39 +03:00
Nikolay Yakimov d49d4cf2ea [Shell-escape] Escape toggle with \ prefix
E.g.
    check file.hs
will treat quote characters as literal characters, while
    \check file.hs
will assume quoting behavior

Backslash will be dropped, naturally.
2015-12-30 20:46:06 +03:00
Daniel Gröber bcab7a0395 docs 2015-12-28 13:57:24 +01:00
Daniel Gröber 7374f1ba17 Add 'test' command for running QuickCheck props 2015-12-28 13:57:24 +01:00
Nikolay Yakimov fff9087ff7 [Shell-Parse] Use \STX and \ETX for quoting
Also drops escaping
2015-12-27 02:45:20 +03:00
Nikolay Yakimov 41b9c0bbf2 Better log-level option
* Allow using strings with `--loglevel`
* `-v` now raises log level relative to `--loglevel` or `--silent`
* Use GmLogLevel instead of Int for parser base
2015-12-25 08:20:09 +03:00
Nikolay Yakimov 5e4026b946 GHC 7.8 mtl compat 2015-12-20 15:34:14 +03:00
Nikolay Yakimov 78e34f82a6 Put Control.Applicative back 2015-12-20 15:26:16 +03:00
Nikolay Yakimov adc712f7ad Move interactive handlers to `ghcCommands` 2015-12-20 15:14:17 +03:00
Nikolay Yakimov 23416e9aeb Better error reporting, cleanup 2015-12-20 15:02:31 +03:00
Nikolay Yakimov 631c449e0c Interactive help and better error reporting 2015-12-20 14:30:30 +03:00
Nikolay Yakimov 1c45404f74 Merge remote-tracking branch 'upstream/master' into interactive-shell-syntax 2015-12-20 13:55:22 +03:00
Nikolay Yakimov ddfcd6c281 Extended --map-file docs 2015-12-20 13:50:12 +03:00
Nikolay Yakimov 92f53f7b3b Monadic pretty opt desc builder 2015-12-20 13:48:47 +03:00
Nikolay Yakimov 2306fbf9e5 Import pretty-print from optparse
instead of depending on ansi-wl-pprint
2015-12-20 08:47:52 +03:00
Nikolay Yakimov c3cf416097 Rename module ShellEscape → ShellParse 2015-12-20 08:26:49 +03:00
Nikolay Yakimov 057f6fba10 Use fewer pattern matches 2015-12-20 08:24:14 +03:00
Nikolay Yakimov a31b71c2d8 [FIX] Generalize escape character 2015-12-20 08:17:30 +03:00
Nikolay Yakimov 06be93bb89 Drop support for single quotes in interactive mode 2015-12-20 07:01:46 +03:00
Nikolay Yakimov d0c53ec937 Forbid "leftover" args to interactive commands 2015-12-20 06:41:34 +03:00
Nikolay Yakimov a1079f22a0 Expand map-file and unmap-file interactive help 2015-12-20 06:38:28 +03:00
Nikolay Yakimov 7afb810f64 Legacy-interactive help 2015-12-20 06:31:14 +03:00
Nikolay Yakimov feae07da5b Shell-like syntax for interactive mode 2015-12-20 06:05:43 +03:00
Nikolay Yakimov 6d9ed9a255 Use optparse-applicative for interactive commands 2015-12-20 04:22:17 +03:00