Simply use 'fail' to put messages to be handled by ghc.

This commit is contained in:
Kei Hibino 2014-10-10 16:15:52 +09:00
parent c2f2fb7820
commit 662f26d774
2 changed files with 2 additions and 4 deletions

View File

@ -20,7 +20,6 @@ module Database.HDBC.Schema.IBMDB2 (
import Prelude hiding (length)
import Language.Haskell.TH (TypeQ)
import qualified Language.Haskell.TH.Lib.Extra as TH
import qualified Data.List as List
import Data.Char (toUpper)
@ -54,7 +53,7 @@ putLog :: String -> IO ()
putLog = putStrLn . logPrefix
compileErrorIO :: String -> IO a
compileErrorIO = TH.compileError . logPrefix
compileErrorIO = fail . logPrefix
getPrimaryKey' :: IConnection conn
=> conn

View File

@ -18,7 +18,6 @@ module Database.HDBC.Schema.PostgreSQL (
) where
import Language.Haskell.TH (TypeQ)
import qualified Language.Haskell.TH.Lib.Extra as TH
import Data.Char (toLower)
import Data.Map (fromList)
@ -55,7 +54,7 @@ putLog :: String -> IO ()
putLog = putStrLn . logPrefix
compileErrorIO :: String -> IO a
compileErrorIO = TH.compileError . logPrefix
compileErrorIO = fail . logPrefix
getPrimaryKey' :: IConnection conn
=> conn