new experimental Config module to hold input data
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Tue, 25 Jul 2017 14:04:43 +0000 (19:34 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Tue, 25 Jul 2017 14:04:43 +0000 (19:34 +0530)
functorrent.cabal
src/FuncTorrent/Config.hs [new file with mode: 0644]

index ba04b123aec3e335ce5cbfdb105ec6537edfe484..50bd270cbe3f16027bfed70c303183b9ae89bd58 100644 (file)
@@ -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 (file)
index 0000000..5709ba3
--- /dev/null
@@ -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)