sqlite-simple-errors-0.6.1.0: Wrapper around errors from sqlite-simple

Copyright(c) Joseph Canero 2016
LicenseBSD-3
Maintainerjmc41493@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Database.SQLite.SimpleErrors

Description

 

Synopsis

Documentation

type DatabaseResponse a = Either SQLiteResponse a Source #

Type synonym for what is returned by runDBAction. Either a SQLiteResponse or another type.

runDBAction :: IO a -> IO (DatabaseResponse a) Source #

runDBAction accepts an IO action to perform some database logic using sqlite-simple. We capture any errors that are returned and wrap them in our SQLiteResponse type. If any other type of exception is raised, it is rethrown.