Skip to content

Commit

Permalink
Fixing #40 in a more direct way
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Gill committed Jan 25, 2016
1 parent 1e40d25 commit e22bb26
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/HERMIT/GHCI/Client.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ import Data.Vector (toList)

session :: JSONRPC.Session
session = JSONRPC.session
$ (if debug
then traceSessionAPI "HERMIT-remote-json"
else id :: (forall a . f a -> g a) -> (forall a . f a -> g a))
$ sendr
$ if debug
then traceSessionAPI "HERMIT-remote-json" sendr
else sendr
where
sendr :: SessionAPI a -> IO a
sendr (Sync v) = do
Expand Down

0 comments on commit e22bb26

Please sign in to comment.