]> gitweb.michael.orlitzky.com - dead/halcyon.git/blobdiff - src/Configuration.hs
Add the Configuration module containing the Cfg type.
[dead/halcyon.git] / src / Configuration.hs
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 }