Created
August 11, 2015 14:18
-
-
Save berdario/809fc01c1b1f391e0ecd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE GADTs #-} | |
module Models where | |
import Database.Persist.Sqlite (runSqlite) | |
-- without the explicit type signature, it fails | |
-- with an ambiguous Control.Monad.IO.Class.MonadIO instance | |
-- connectionString :: Text | |
connectionString = ":memory:" | |
runDb query = runSqlite connectionString query |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment