diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-02-22 19:05:53 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-02-23 22:45:45 +0100 |
| commit | de0c48e2c0ab3ff3372b7eb207cba5cf245e1ea9 (patch) | |
| tree | db3bb9dd634c15e776b7cebb12a5bd453e09b26a /src/Erebos/Conversation/Class.hs | |
| parent | a2bca4901229efb09ea510fe31fb2be94a6b4a9c (diff) | |
Conversation reference using RefDigest
Diffstat (limited to 'src/Erebos/Conversation/Class.hs')
| -rw-r--r-- | src/Erebos/Conversation/Class.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Erebos/Conversation/Class.hs b/src/Erebos/Conversation/Class.hs index 6a28651..77458fa 100644 --- a/src/Erebos/Conversation/Class.hs +++ b/src/Erebos/Conversation/Class.hs @@ -1,5 +1,6 @@ module Erebos.Conversation.Class ( ConversationType(..), + RefDigest, ) where import Data.Text (Text) @@ -7,10 +8,13 @@ import Data.Time.LocalTime import Data.Typeable import Erebos.Identity +import Erebos.Object class (Typeable conv, Typeable msg) => ConversationType conv msg | conv -> msg, msg -> conv where convMessageFrom :: msg -> ComposedIdentity convMessageTime :: msg -> ZonedTime convMessageText :: msg -> Maybe Text + + convReference :: conv -> RefDigest convMessageListSince :: Maybe conv -> conv -> [ ( msg, Bool ) ] |