Advertisement
DoctorRynerNew

Untitled

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