Add the Configuration module containing the Cfg type.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 13 Apr 2012 02:21:34 +0000 (22:21 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 13 Apr 2012 02:21:34 +0000 (22:21 -0400)
src/Configuration.hs [new file with mode: 0644]

diff --git a/src/Configuration.hs b/src/Configuration.hs
new file mode 100644 (file)
index 0000000..248c91f
--- /dev/null
@@ -0,0 +1,14 @@
+-- | This module defines the 'Cfg' type, which is just a wrapper
+--   around all of the configuration options we accept on the command
+--   line. We thread this throughout the rest of the program.
+module Configuration (
+  Cfg(..)
+)
+where
+
+data Cfg = Cfg { heartbeat :: Int,
+                 ignore_replies :: Bool,
+                 ignore_retweets :: Bool,
+                 from_address :: Maybe String,
+                 to_address :: Maybe String,
+                 verbose :: Bool }