Please forgive how simple this question is.
Google searches, the documentation, and the Yesod book seem to only explain how to do things with databases, but I have yet to see a straight forward explanation on how to actually connect to one.
Any help or guidance in the right direction would be appreciated.
Edit: I simplified the code sample from the Yesod book to make it a little easier to read and use.