diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-04-04 04:51:36 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-04-04 04:51:36 +0400 |
commit | 1beb66f98504a39c8a6c976f243a1f69ffb48d8d (patch) | |
tree | e26f7eff93b2ef100a768e01b0fbeb239c09dd8a /src/Network/BitTorrent/Internal | |
parent | 13793b8d4cf7c5b4a914d778e3523e950aa2493a (diff) |
[Internal] Add EventSource class
Diffstat (limited to 'src/Network/BitTorrent/Internal')
-rw-r--r-- | src/Network/BitTorrent/Internal/Types.hs | 10 |
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 #-} | ||
2 | module Network.BitTorrent.Internal.Types | ||
3 | ( EventSource (..) | ||
4 | ) where | ||
5 | |||
6 | import Control.Concurrent.Chan.Split | ||
7 | |||
8 | class EventSource source where | ||
9 | data Event source | ||
10 | listen :: source -> IO (ReceivePort (Event source)) | ||