TLDR: I am trying to implement the equivalent of this handler struct in Haskell, which involves mutable variables and concurrency and I'm not sure how to go about implementing it
I need to implement the equivalent of this Golang handler in Haskell:
// Handler handler implementation for shim side of chaincode.
type Handler struct {
// serialLock is used to prevent concurrent calls to Send on the