Skip to content

Instantly share code, notes, and snippets.

@eckyputrady
eckyputrady / Pseudo.hs
Last active Aug 12, 2021
Haskell Clean Architecture
View Pseudo.hs
-----------------------------
-- Domain.hs
type SessionId = Text
type UserId = Text
type User = Text
class (Monad m) => UserRepo m where
getUserById :: UserId -> m User