Skip to content

Commit

Permalink
feat: Add an Ord instance to SessionName.
Browse files Browse the repository at this point in the history
It would obviously be helpful to be able to sort these.
  • Loading branch information
dhess committed Jun 21, 2022
1 parent 959df05 commit 825d114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primer/src/Primer/Database.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type SessionId = UUID
-- abstract and cannot be constructed directly from 'Text'. See
-- 'mkSessionName'.
newtype SessionName = SessionName Text
deriving (Generic, Eq, Show, Read)
deriving (Generic, Eq, Ord, Show, Read)
deriving newtype (ToJSON)

-- | Given some 'Text', try to convert it to a 'SessionName'.
Expand Down

0 comments on commit 825d114

Please sign in to comment.