aboutsummaryrefslogtreecommitdiff
path: root/Types.hs
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2013-08-26 13:44:44 -0300
committerRaúl Benencia <rul@kalgan.cc>2013-08-26 13:44:44 -0300
commit05d6b5f93cd1ed5e9c4f4f9d63cf392ada048afb (patch)
treedce051108263fee85f46c804be04d8c9ebfb7c83 /Types.hs
parent133c0d7cbcc5dcca2214bf532dd47d1ad86a4a17 (diff)
towards lazy reading (broken)
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs22
1 files changed, 22 insertions, 0 deletions
diff --git a/Types.hs b/Types.hs
new file mode 100644
index 0000000..4fe658e
--- /dev/null
+++ b/Types.hs
@@ -0,0 +1,22 @@
+{- Common types of Lazymail
+ -
+ - Copyright 2013 Raúl Benencia <rul@kalgan.cc>
+ -
+ - Licensed under the GNU GPL version 3 or higher
+ -}
+
+module Types
+ (
+ LazymailUpdate
+ , LazymailCurses
+ ) where
+
+import Control.Monad.Reader(ReaderT)
+import Control.Monad.State(StateT)
+import UI.NCurses(Curses, Update)
+
+import Config (LazymailConfig)
+import State (LazymailState)
+
+type LazymailUpdate = ReaderT LazymailConfig (StateT LazymailState Update)
+type LazymailCurses = ReaderT LazymailConfig (StateT LazymailState Curses)
nihil fit ex nihilo