Skip to content

Commit c75abe4

Browse files
committed
refactor(simulation): restrict Chan API
1 parent 6eaefc4 commit c75abe4

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

simulation/src/Chan/Mux.hs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ module Chan.Mux (
1515
newConnectionBundleTCP,
1616
) where
1717

18-
import Chan.Core
19-
import Chan.TCP
18+
import Chan.Core (Chan (..))
19+
import Chan.TCP (
20+
LabelTcpDir,
21+
MessageSize (..),
22+
TcpConnProps,
23+
TcpEvent,
24+
newConnectionTCP,
25+
)
2026
import qualified Control.Category as Cat
2127
import Control.Concurrent.Class.MonadMVar (
2228
MonadMVar (MVar, newMVar, withMVar),
@@ -60,8 +66,8 @@ instance Cat.Category ToFromMuxMsg where
6066
id = ToFromMuxMsg id id
6167
(.) (ToFromMuxMsg f f') (ToFromMuxMsg g g') = ToFromMuxMsg (g . f) (f' . g')
6268

63-
dynToFromMuxMsg :: Typeable a => ToFromMuxMsg Dynamic a
64-
dynToFromMuxMsg = ToFromMuxMsg toDyn (fromJust . fromDynamic)
69+
-- dynToFromMuxMsg :: Typeable a => ToFromMuxMsg Dynamic a
70+
-- dynToFromMuxMsg = ToFromMuxMsg toDyn (fromJust . fromDynamic)
6571

6672
data BearerMsg a = BearerMsg !Int a
6773

0 commit comments

Comments
 (0)