summaryrefslogtreecommitdiff
path: root/KeyRing.hs
diff options
context:
space:
mode:
Diffstat (limited to 'KeyRing.hs')
-rw-r--r--KeyRing.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/KeyRing.hs b/KeyRing.hs
index ffd8183..c2e209c 100644
--- a/KeyRing.hs
+++ b/KeyRing.hs
@@ -139,6 +139,9 @@ import Data.Traversable ( sequenceA )
139#if ! MIN_VERSION_base(4,6,0) 139#if ! MIN_VERSION_base(4,6,0)
140import GHC.Exts ( Down(..) ) 140import GHC.Exts ( Down(..) )
141#endif 141#endif
142#if MIN_VERSION_binary(0,7,0)
143import Debug.Trace
144#endif
142import Network.Socket -- (SockAddr) 145import Network.Socket -- (SockAddr)
143import qualified Data.ByteString.Lazy.Char8 as Char8 146import qualified Data.ByteString.Lazy.Char8 as Char8
144 147
@@ -2400,7 +2403,9 @@ readPacketsFromFile ctx fname = do
2400 return $ 2403 return $
2401 case decodeOrFail input of 2404 case decodeOrFail input of
2402 Right (_,_,msg ) -> msg 2405 Right (_,_,msg ) -> msg
2403 Left (_,_,_) -> trace (fname++": read fail") $ Message [] 2406 Left (_,_,_) ->
2407 --trace (fname++": read fail") $
2408 Message []
2404#else 2409#else
2405 return $ decode input 2410 return $ decode input
2406#endif 2411#endif