Skip to content

Commit

Permalink
Fix build on GHC 9.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerjanssen committed Oct 29, 2021
1 parent f13ad6a commit b7d19d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Database/ODBC/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,11 @@ withExecDirect dbc string params cont =

-- | Run the function with a statement.
withStmt :: Ptr EnvAndDbc -> (forall s. SQLHSTMT s -> IO a) -> IO a
withStmt hdbc =
withStmt hdbc cont =
bracket
(assertNotNull "odbc_SQLAllocStmt" (odbc_SQLAllocStmt hdbc))
odbc_SQLFreeStmt
cont

-- | Run an action in a bound thread. This is neccessary due to the
-- interaction with signals in ODBC and GHC's runtime.
Expand Down

0 comments on commit b7d19d8

Please sign in to comment.