diff options
-rw-r--r-- | src/Network/BitTorrent/Exchange/Wire.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/Exchange/Wire.hs b/src/Network/BitTorrent/Exchange/Wire.hs index 4bd342ca..0414ebe7 100644 --- a/src/Network/BitTorrent/Exchange/Wire.hs +++ b/src/Network/BitTorrent/Exchange/Wire.hs | |||
@@ -56,6 +56,7 @@ module Network.BitTorrent.Exchange.Wire | |||
56 | 56 | ||
57 | -- ** Query | 57 | -- ** Query |
58 | , getConnection | 58 | , getConnection |
59 | , getSession | ||
59 | , getExtCaps | 60 | , getExtCaps |
60 | , getStats | 61 | , getStats |
61 | , getMetadata | 62 | , getMetadata |
@@ -571,6 +572,9 @@ getStats = lift $ use connStats | |||
571 | getConnection :: Wire s (Connection s) | 572 | getConnection :: Wire s (Connection s) |
572 | getConnection = lift ask | 573 | getConnection = lift ask |
573 | 574 | ||
575 | getSession :: Wire s s | ||
576 | getSession = lift (asks connSession) | ||
577 | |||
574 | {----------------------------------------------------------------------- | 578 | {----------------------------------------------------------------------- |
575 | -- Wrapper | 579 | -- Wrapper |
576 | -----------------------------------------------------------------------} | 580 | -----------------------------------------------------------------------} |