aboutsummaryrefslogtreecommitdiffstats
path: root/src/Types.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Types.hs')
-rw-r--r--src/Types.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Types.hs b/src/Types.hs
new file mode 100644
index 0000000..94428b6
--- /dev/null
+++ b/src/Types.hs
@@ -0,0 +1,13 @@
+module Types where
+
+import Control.Monad.Except
+import Control.Monad.Reader
+
+newtype LException = LException String
+data Config = Config {
+ configScriptFileName :: Maybe String,
+ configVerboseMode :: Bool,
+ configShowHelp :: Bool
+}
+
+type LContext a = ReaderT Config (ExceptT LException IO) a