@@ -52,7 +52,7 @@ import Data.Foldable (forM_)
5252import Data.Maybe (isJust, fromJust, isNothing, catMaybes)
5353import Data.Typeable (Typeable)
5454import Control.Category ((>>>))
55−import Control.Applicative ((<$>))
55+import Control.Applicative (Applicative, (<$>))
5656import Control.Monad (void, when)
5757import Control.Monad.IO.Class (MonadIO, liftIO)
5858import Control.Monad.State.Strict (MonadState, StateT, evalStateT, gets)
@@ -99,7 +99,6 @@ import qualified Network.Transport as NT
9999 , address
100100 , closeEndPoint
101101 , ConnectionId
102− , Connection
103102 , close
104103 , EndPointAddress
105104 , Reliability(ReliableOrdered)
@@ -592,7 +591,13 @@ data NCState = NCState
592591 }
593592
594593newtype NC a = NC { unNC :: StateT NCState (ReaderT LocalNode IO) a }
595− deriving (Functor, Monad, MonadIO, MonadState NCState, MonadReader LocalNode)
594+ deriving ( Applicative
595+ , Functor
596+ , Monad
597+ , MonadIO
598+ , MonadState NCState
599+ , MonadReader LocalNode
600+ )
596601
597602initNCState :: NCState
598603initNCState = NCState { _links = Map.empty