From caf354c7e5bcb5142d8b4358824d22d3de122f34 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 27 May 2022 18:57:24 +1000 Subject: break apart the code, timestamp read imp. --- src/F2Md/Types.hs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/F2Md/Types.hs (limited to 'src/F2Md/Types.hs') diff --git a/src/F2Md/Types.hs b/src/F2Md/Types.hs new file mode 100644 index 0000000..cd579ce --- /dev/null +++ b/src/F2Md/Types.hs @@ -0,0 +1,21 @@ +module F2Md.Types where + +import Data.Text (Text) +import Data.Time + +data FeedMetadata = FeedMetadata + { title :: Text, + author :: Maybe Text, + home :: Maybe Text + } + deriving (Show) + +data Message = Message + { from :: Text, + subject :: Text, + date :: Text, + messageId :: Text, + body :: Text +-- newsGroup :: Text + } + deriving (Show) -- cgit v1.2.3