Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- instance FromRow User
- get_ :: AppM [User]
- get_ = ask >>= \state -> db state.pool $ \conn ->
- query_ conn "SELECT * from users"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement