| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Database.DuckDB.Simple.Ok
Description
The Ok type mirrors the helper used by sqlite-simple: it behaves like an
`Either [SomeException]` with sensible Alternative semantics that accumulate
failure reasons instead of discarding them. This underpins the RowParser
machinery in FromRow.
Synopsis
- data Ok a
- = Errors [SomeException]
- | Ok !a
- newtype ManyErrors = ManyErrors [SomeException]
Documentation
Simple success-or-errors container with error accumulation.
Constructors
| Errors [SomeException] | |
| Ok !a |
newtype ManyErrors Source #
Bundle multiple underlying exceptions into a single throwable value.
Constructors
| ManyErrors [SomeException] |
Instances
| Exception ManyErrors Source # | |
Defined in Database.DuckDB.Simple.Ok Methods toException :: ManyErrors -> SomeException # fromException :: SomeException -> Maybe ManyErrors # displayException :: ManyErrors -> String # | |
| Show ManyErrors Source # | |
Defined in Database.DuckDB.Simple.Ok Methods showsPrec :: Int -> ManyErrors -> ShowS # show :: ManyErrors -> String # showList :: [ManyErrors] -> ShowS # | |