From: Michael Orlitzky Date: Fri, 13 Apr 2012 02:21:34 +0000 (-0400) Subject: Add the Configuration module containing the Cfg type. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=2377a9b1c3de67278d0956683bb0dffc47117092;p=dead%2Fhalcyon.git Add the Configuration module containing the Cfg type. --- diff --git a/src/Configuration.hs b/src/Configuration.hs new file mode 100644 index 0000000..248c91f --- /dev/null +++ b/src/Configuration.hs @@ -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 }