Replacing MonadComp with MonadDES in modules Resource and Net.