Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- usage:
- -- res <- acquire initDB (\db -> return ())
- initDB = Acquire $ do
- db <-
- DB.open "/tmp/rocks"
- DB.defaultOptions {
- DB.createIfMissing = True
- , DB.compression = DB.SnappyCompression
- }
- let
- finalizer = print "ok"
- return (db, finalizer)
Add Comment
Please, Sign In to add comment