aboutsummaryrefslogtreecommitdiff
path: root/State.hs
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2013-09-01 13:16:54 -0300
committerRaúl Benencia <rul@kalgan.cc>2013-09-01 13:16:54 -0300
commit917de9c6df342d032e2b05238c7ea923da2772db (patch)
tree78b8f56b03ed07f4d9f055149a0e974d47609057 /State.hs
parent39f53d2775f38514a537f03c7b72281ec31a3c0e (diff)
towards mime library
Diffstat (limited to 'State.hs')
-rw-r--r--State.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/State.hs b/State.hs
index d04871f..357a516 100644
--- a/State.hs
+++ b/State.hs
@@ -8,6 +8,7 @@
module State where
+import Codec.MIME.Type(MIMEValue, nullMIMEValue)
import Text.ParserCombinators.Parsec.Rfc2822(Message, GenericMessage(..))
import UI.NCurses(ColorID(..), defaultColorID)
import Network.Email.Mailbox(Flag(..), Flags)
@@ -56,7 +57,7 @@ data EmailState = EmailState {
scrollRowEm :: Int
, bodyStartRow :: Int
, emailLines :: [String]
- , currentEmail :: Message
+ , currentEmail :: MIMEValue
}
data ColorStyle = ColorStyle {
@@ -103,7 +104,7 @@ initialEmailState = EmailState {
scrollRowEm = 0
, bodyStartRow = 0
, emailLines = []
- , currentEmail = Message [] "Dummy email"
+ , currentEmail = nullMIMEValue
}
initialComposeState = ComposeState {
nihil fit ex nihilo