summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Internal
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-04-04 04:51:36 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-04-04 04:51:36 +0400
commit1beb66f98504a39c8a6c976f243a1f69ffb48d8d (patch)
treee26f7eff93b2ef100a768e01b0fbeb239c09dd8a /src/Network/BitTorrent/Internal
parent13793b8d4cf7c5b4a914d778e3523e950aa2493a (diff)
[Internal] Add EventSource class
Diffstat (limited to 'src/Network/BitTorrent/Internal')
-rw-r--r--src/Network/BitTorrent/Internal/Types.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/Internal/Types.hs b/src/Network/BitTorrent/Internal/Types.hs
new file mode 100644
index 00000000..d157db3e
--- /dev/null
+++ b/src/Network/BitTorrent/Internal/Types.hs
@@ -0,0 +1,10 @@
1{-# LANGUAGE TypeFamilies #-}
2module Network.BitTorrent.Internal.Types
3 ( EventSource (..)
4 ) where
5
6import Control.Concurrent.Chan.Split
7
8class EventSource source where
9 data Event source
10 listen :: source -> IO (ReceivePort (Event source))