From: Ramakrishnan Muthukrishnan Date: Tue, 25 Jul 2017 14:04:43 +0000 (+0530) Subject: new experimental Config module to hold input data X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/priv/index.html?a=commitdiff_plain;h=2604888f7e205cfe87a6cc9f667936f6e8c4e536;p=functorrent.git new experimental Config module to hold input data --- diff --git a/functorrent.cabal b/functorrent.cabal index ba04b12..50bd270 100644 --- a/functorrent.cabal +++ b/functorrent.cabal @@ -30,7 +30,8 @@ library FuncTorrent.Tracker.Types, FuncTorrent.Tracker.Udp, FuncTorrent.MagnetURI, - FuncTorrent.Utils + FuncTorrent.Utils, + FuncTorrent.Config other-extensions: OverloadedStrings hs-source-dirs: src diff --git a/src/FuncTorrent/Config.hs b/src/FuncTorrent/Config.hs new file mode 100644 index 0000000..5709ba3 --- /dev/null +++ b/src/FuncTorrent/Config.hs @@ -0,0 +1,8 @@ +-- | Configuration/Environment read from either the .torrent file or +-- | from Magnet URI. + +module FuncTorrent.Config where + +data Config = Metainfo + | Magnetinfo + deriving (Eq, Show)