aboutsummaryrefslogtreecommitdiffstats
path: root/app/History/IssueEvent.hs
diff options
context:
space:
mode:
Diffstat (limited to 'app/History/IssueEvent.hs')
-rw-r--r--app/History/IssueEvent.hs19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/History/IssueEvent.hs b/app/History/IssueEvent.hs
new file mode 100644
index 0000000..88886dd
--- /dev/null
+++ b/app/History/IssueEvent.hs
@@ -0,0 +1,19 @@
+module History.IssueEvent (IssueEvent (..)) where
+
+import History.CommitHash (CommitHash)
+import Issue (Issue)
+
+data IssueEvent
+ = IssueCreated
+ { hash :: CommitHash,
+ issue :: Issue
+ }
+ | IssueChanged
+ { hash :: CommitHash,
+ issue :: Issue
+ }
+ | IssueDeleted
+ { hash :: CommitHash,
+ issue :: Issue
+ }
+ deriving (Show)