-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Wrapper around errors from sqlite-simple -- -- Wrapper around errors from sqlite-simple @package sqlite-simple-errors @version 0.3.0.0 module Database.SQLite.SimpleErrors.Types data Constraint NotNull :: Constraint ForeignKey :: Constraint Unique :: Constraint Check :: Constraint data SQLiteResponse SQLConstraintError :: Constraint -> Text -> SQLiteResponse SQLFormatError :: FormatError -> SQLiteResponse SQLResultError :: ResultError -> SQLiteResponse SQLOtherError :: SQLError -> SQLiteResponse instance GHC.Classes.Eq Database.SQLite.SimpleErrors.Types.SQLiteResponse instance GHC.Show.Show Database.SQLite.SimpleErrors.Types.SQLiteResponse instance GHC.Classes.Eq Database.SQLite.SimpleErrors.Types.Constraint instance GHC.Show.Show Database.SQLite.SimpleErrors.Types.Constraint instance GHC.Exception.Exception Database.SQLite.SimpleErrors.Types.SQLiteResponse module Database.SQLite.SimpleErrors.Parser type SQLiteParser = Parser SQLiteResponse constraintNameOnly :: String -> Parser () constraintName :: String -> Parser () getRest :: Parser Text parseConstraint :: String -> Constraint -> SQLiteParser parseConstraintNoDetails :: String -> Constraint -> SQLiteParser constraintParser :: Parsec Text () SQLiteResponse parseError :: SQLError -> SQLiteResponse receiveSQLError :: SQLError -> SQLiteResponse module Database.SQLite.SimpleErrors type DatabaseResponse a = Either SQLiteResponse a runDBAction :: IO a -> IO (DatabaseResponse a)