Skip to content

Instantly share code, notes, and snippets.

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