diff options
author | Yuchen Pei <hi@ypei.me> | 2022-05-27 18:57:24 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-05-27 18:57:24 +1000 |
commit | caf354c7e5bcb5142d8b4358824d22d3de122f34 (patch) | |
tree | 7e19673f611424f4b6c44ee5316aad94aab2371a /src/F2Md/Types.hs | |
parent | 44a5cd797d72003f580f18871d9e70c06afeb13b (diff) |
break apart the code, timestamp read imp.
Diffstat (limited to 'src/F2Md/Types.hs')
-rw-r--r-- | src/F2Md/Types.hs | 21 |
1 files changed, 21 insertions, 0 deletions
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) |