@@ -135,34 +135,23 @@ import Control.Distributed.Process.Internal.Primitives
135135 , die
136136 , whereis
137137 , send
138− , newChan
139− , receiveChan
140138 , receiveWait
141139 , matchIf
142140 , finally
143141 , try
144142 , monitor
145− , say
146− )
147−import Control.Distributed.Process.Internal.Spawn
148− ( spawn
149143 )
150144import Control.Distributed.Process.Internal.Types
151− ( Tracer(..)
152− , LocalNode(..)
153− , ProcessId
145+ ( ProcessId
154146 , Process
155147 , LocalProcess(..)
156− , SendPort(..)
157148 , ProcessMonitorNotification(..)
158− , NodeId(..)
159149 )
160150import Control.Distributed.Process.Internal.Trace.Types
161151 ( TraceArg(..)
162152 , TraceEvent(..)
163153 , TraceFlags(..)
164154 , TraceSubject(..)
165− , TraceOk(..)
166155 , defaultTraceFlags
167156 )
168157import Control.Distributed.Process.Internal.Trace.Tracer
@@ -188,7 +177,6 @@ import Control.Distributed.Process.Internal.Trace.Primitives
188177 )
189178import qualified Control.Distributed.Process.Internal.Trace.Remote as Remote
190179import Control.Distributed.Process.Node
191−import Control.Distributed.Process.Serializable
192180
193181import Control.Exception (SomeException)
194182
@@ -237,7 +225,7 @@ withTracer handler proc = do
237225 stopTracing tracer previousTracer = do
238226 case previousTracer of
239227 Nothing -> return ()
240− Just p -> do
228+ Just _ -> do
241229 ref <- monitor tracer
242230 send tracer TraceEvDisable
243231 receiveWait [
@@ -260,7 +248,7 @@ traceProxy :: ProcessId -> (TraceEvent -> Process ()) -> Process ()
260248traceProxy pid act = do
261249 proxy pid $ \(ev :: TraceEvent) ->
262250 case ev of
263− (TraceEvTakeover p) -> return False
251+ (TraceEvTakeover _) -> return False
264252 TraceEvDisable -> die "disabled"
265253 _ -> act ev >> return True
266254