Integrate Persistent with Servant

Query my SQLite database from within my Servant handlers. Nothing I've written
is domain-specific to the business logic yet -- I'm just making sure everything
integrates.
This commit is contained in:
William Carroll 2020-07-24 22:46:54 +01:00
parent 660b8d43e5
commit 1d47e94bbe
6 changed files with 117 additions and 34 deletions

View file

@ -1,5 +1,7 @@
module Main where
--------------------------------------------------------------------------------
import qualified App
--------------------------------------------------------------------------------
main :: IO ()
main = do
putStrLn "Working..."
main = App.run "sqlite.db"