diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-03-17 17:26:11 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-05-01 10:37:39 -0400 |
commit | b3df9e780fb2f5658412c644849cd0f1e6f50331 (patch) | |
tree | c5a45d8b043515e385a43e0c12172d6d74999ff5 /ghc | |
parent | f8386c7b6a9d26bc5fd2c1d74d944c8df6337690 (diff) | |
download | haskell-b3df9e780fb2f5658412c644849cd0f1e6f50331.tar.gz |
Remove PprStyle param of logging actions
Use `withPprStyle` instead to apply a specific style to a SDoc.
Diffstat (limited to 'ghc')
-rw-r--r-- | ghc/GHCi/UI.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ghc/GHCi/UI.hs b/ghc/GHCi/UI.hs index 4eafcbd1d1..a7246344e8 100644 --- a/ghc/GHCi/UI.hs +++ b/ghc/GHCi/UI.hs @@ -556,8 +556,8 @@ resetLastErrorLocations = do ghciLogAction :: LogAction -> IORef [(FastString, Int)] -> LogAction ghciLogAction old_log_action lastErrLocations - dflags flag severity srcSpan style msg = do - old_log_action dflags flag severity srcSpan style msg + dflags flag severity srcSpan msg = do + old_log_action dflags flag severity srcSpan msg case severity of SevError -> case srcSpan of RealSrcSpan rsp _ -> modifyIORef lastErrLocations |