definition:
|
fromSQLResult :: SQLResult a -> a
fromSQLResult (Left err) = error $ "Database connection error: " ++ show err
fromSQLResult (Right val) = val
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Gets the value of an 'SQLResult'. If there is no result value
--- but a database error, the error is raised.
|
failfree:
|
_
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({Left}) |-> _ || ({Right}) |-> _}
|
name:
|
fromSQLResult
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
Prelude.Either DBError a -> a
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|