[commit: ghc] master: Introduce HasGhciState class and refactor use-sites (2f6e87a)
git at git.haskell.org
git at git.haskell.org
Tue Dec 8 08:16:54 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/2f6e87a494330837c425dab67ba26ee36bd9eacf/ghc
>---------------------------------------------------------------
commit 2f6e87a494330837c425dab67ba26ee36bd9eacf
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Tue Dec 8 08:48:21 2015 +0100
Introduce HasGhciState class and refactor use-sites
This allows to reach the GhciState without having to keep
track how many Monad transformer layers sit on top of the
GHCi monad.
While at it, this also refactors code to make more use of the
existing `modifyGHCiState` operation.
This is a preparatory refactoring for #10874
Differential Revision: https://phabricator.haskell.org/D1582
>---------------------------------------------------------------
2f6e87a494330837c425dab67ba26ee36bd9eacf
ghc/GhciMonad.hs | 20 ++++++++++++-----
ghc/InteractiveUI.hs | 63 +++++++++++++++++++++-------------------------------
2 files changed, 39 insertions(+), 44 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 2f6e87a494330837c425dab67ba26ee36bd9eacf
More information about the ghc-commits
mailing list