-- | -- Module : Main -- Copyright : (c) 2014 Andreas Meingast -- (c) 2016 Timo von Holtz -- -- License : BSD-style -- Maintainer : tvh@tvholtz.de -- Stability : experimental -- Portability : GHC -- -- The test entry-point for hasql-migration. {-# LANGUAGE OverloadedStrings #-} module Main ( main ) where import Hasql.Connection import Hasql.MigrationTest import Test.Hspec (hspec) main :: IO () main = do conE <- acquire "dbname=test" case conE of Right con -> hspec (migrationSpec con) Left err -> putStrLn $ show err