0 | module Oracle.Context
3 | import Oracle.FFI.Context
4 | import Oracle.Internal.Context
5 | import Oracle.Types.Error
12 | initialize : IO (Either OracleError OracleContext)
14 | ptr <- primIO prim__contextCreate
15 | case prim__nullAnyPtr ptr == 1 of
17 | lasterr <- getLastError
20 | pure (Right (MkOracleContext ptr))