From 2604888f7e205cfe87a6cc9f667936f6e8c4e536 Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Tue, 25 Jul 2017 19:34:43 +0530
Subject: [PATCH] new experimental Config module to hold input data

---
 functorrent.cabal         | 3 ++-
 src/FuncTorrent/Config.hs | 8 ++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100644 src/FuncTorrent/Config.hs

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)
-- 
2.45.2