aboutsummaryrefslogtreecommitdiffstats
path: root/app/Issue
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-10-17 14:14:48 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-07 09:50:51 +0100
commitea1236f2cf6d3ef4b739b2ca28f47a3bbed42295 (patch)
tree3b1801ad9654e657ed0c0b202e316dc42244c56d /app/Issue
parent4521eb7a4b0d4a4ff8cf9153484d0596c5143170 (diff)
refactor history
Diffstat (limited to 'app/Issue')
-rw-r--r--app/Issue/Provenance.hs2
-rw-r--r--app/Issue/Tag.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Issue/Provenance.hs b/app/Issue/Provenance.hs
index 7cf4faa..f3d382c 100644
--- a/app/Issue/Provenance.hs
+++ b/app/Issue/Provenance.hs
@@ -25,7 +25,7 @@ data Provenance = Provenance
authorEmail :: Text,
authorName :: Text
}
- deriving (Show, Generic, Binary)
+ deriving (Show, Generic, Binary, Eq)
-- XXX These are taken from `Data.Binary.Orphans` [1]. I cannot get importing
-- the instance from the package to work.. so we use `-fno-warn-orphans` here.
diff --git a/app/Issue/Tag.hs b/app/Issue/Tag.hs
index 85636b5..42a371d 100644
--- a/app/Issue/Tag.hs
+++ b/app/Issue/Tag.hs
@@ -15,7 +15,7 @@ import Data.Time.Clock (UTCTime (utctDay))
import GHC.Generics (Generic)
import Issue.Provenance (Provenance (..))
-data Tag = Tag Text (Maybe Text) deriving (Show, Generic, Binary)
+data Tag = Tag Text (Maybe Text) deriving (Show, Generic, Binary, Eq)
tagKey :: Tag -> Text
tagKey (Tag k _) = k