Skip to content

Commit

Permalink
build on ghc-7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jan 31, 2012
1 parent 94c71e4 commit 41cf215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Database/MySQL/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ withMaybeString :: Maybe String -> (CString -> IO a) -> IO a
withMaybeString Nothing act = act nullPtr
withMaybeString (Just xs) act = withCString xs act

check :: Num a => String -> Connection -> a -> IO ()
check :: (Eq a, Num a) => String -> Connection -> a -> IO ()
check func conn r = unless (r == 0) $ connectionError func conn
{-# INLINE check #-}

Expand Down

0 comments on commit 41cf215

Please sign in to comment.