[commit: ghc] wip/exceptions-note, wip/hadrian-import-packages, wip/splice-parsing, wip/trac-16270: Introduce GhciMonad and generalize types of functions in GHCi.UI (e08974e)

git at git.haskell.org git at git.haskell.org
Sat Feb 2 08:59:39 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branches: wip/exceptions-note,wip/hadrian-import-packages,wip/splice-parsing,wip/trac-16270
Link       : http://ghc.haskell.org/trac/ghc/changeset/e08974e81ccc84b5887d13cc4752fde9a78c51fb/ghc

>---------------------------------------------------------------

commit e08974e81ccc84b5887d13cc4752fde9a78c51fb
Author: Zejun Wu <watashi at fb.com>
Date:   Mon Jan 21 16:28:01 2019 -0800

    Introduce GhciMonad and generalize types of functions in GHCi.UI
    
    Summary:
    Introduce `GhciMonad`, which is bascially `GhcMonad` + `HasGhciState`.
    Generalize the commands and help functions defined in `GHCi.UI` so they
    can be used as both `GHCi a` and `InputT GHCi a`.
    
    The long term plan is to move reusable bits to ghci library and make it
    easier to build a customized interactive ui which carries customized state
    and provides customized commands.
    
    Most changes are trivial in this diff by relaxing the type constraint or
    add/remove lift as necessary. The non-trivial changes are:
    
    * Change `HasGhciState` to `GhciMonad` and expose it.
    * Implementation of `reifyGHCi`.
    
    Test Plan:
      ./validate
    
    Reviewers: simonmar, hvr, bgamari
    
    Reviewed By: simonmar
    
    Subscribers: rwbarton, carter
    
    Differential Revision: https://phabricator.haskell.org/D5433


>---------------------------------------------------------------

e08974e81ccc84b5887d13cc4752fde9a78c51fb
 ghc/GHCi/UI.hs       | 403 ++++++++++++++++++++++++++-------------------------
 ghc/GHCi/UI/Monad.hs |  81 ++++++-----
 2 files changed, 250 insertions(+), 234 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc e08974e81ccc84b5887d13cc4752fde9a78c51fb


More information about the ghc-commits mailing list