diff options
author | William Carroll <wpcarro@gmail.com> | 2020-07-24T21·46+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-07-24T21·48+0100 |
commit | 1d47e94bbe26479ffaaafecd27cdb83d072bfe01 (patch) | |
tree | f21dbed4627fc3c3c3ae6aa83d097fecd7da21ff /src/Main.hs | |
parent | 660b8d43e5272e2b71b6092b4c879a82c4d861a8 (diff) |
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.
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs index 7ec8d9f8ca82..ea2ad2621bd9 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -1,5 +1,7 @@ module Main where +-------------------------------------------------------------------------------- +import qualified App +-------------------------------------------------------------------------------- main :: IO () -main = do - putStrLn "Working..." +main = App.run "sqlite.db" |