client methods presumably finished

This commit is contained in:
Yehowshua Immanuel 2025-04-10 01:27:33 -04:00
parent 979adf3660
commit c9356eecfd
3 changed files with 20 additions and 12 deletions

View file

@ -1,5 +1,6 @@
package BusTypes(
Bus(..),
ServerIdx,
MkClientTagType,
BusClient(..), BusServer(..),
BusRequest(..), BusResponse(..),
@ -13,6 +14,7 @@ import Vector
import TagEngine
type MkClientTagType a = (UInt (TLog a))
type ServerIdx = Integer
data BusError
= UnMapped
@ -97,8 +99,9 @@ interface (BusClient :: # -> *) inFlightTransactions =
-- associated with the original request.
interface (BusServer :: # -> # -> *) inFlightTransactions numClients =
consumeRequest :: ActionValue (MkTagType inFlightTransactions, BusRequest)
submitResponse :: (MkClientTagType numClients, BusResponse, transactionTagType)
-> Action
submitResponse :: ( MkClientTagType numClients,
TaggedBusResponse inFlightTransactions
) -> Action
interface (Bus :: # -> # -> # -> *) inFlightTransactions numClients numServers =
clients :: Vector numClients (BusClient inFlightTransactions)