Safe Haskell | None |
---|---|
Language | Haskell2010 |
Convenience methods for constructing backend-agnostic applications
Documentation
data BeamResourceNotFound Source #
Instances
data BeamOpenURIInvalid Source #
Instances
Show BeamOpenURIInvalid Source # | |
Defined in Database.Beam.Backend.URI |
|
Exception BeamOpenURIInvalid Source # | |
Defined in Database.Beam.Backend.URI |
data BeamOpenURIUnsupportedScheme Source #
Instances
data BeamURIOpener c where Source #
BeamURIOpener :: c be hdl m -> ( forall a. hdl -> m a -> IO a) -> ( URI -> IO (hdl, IO ())) -> BeamURIOpener c |
newtype BeamURIOpeners c where Source #
BeamURIOpeners :: Map String ( BeamURIOpener c) -> BeamURIOpeners c |
Instances
Semigroup ( BeamURIOpeners c) Source # | |
Defined in Database.Beam.Backend.URI (<>) :: BeamURIOpeners c -> BeamURIOpeners c -> BeamURIOpeners c Source # sconcat :: NonEmpty ( BeamURIOpeners c) -> BeamURIOpeners c Source # stimes :: Integral b => b -> BeamURIOpeners c -> BeamURIOpeners c Source # |
|
Monoid ( BeamURIOpeners c) Source # | |
Defined in Database.Beam.Backend.URI mempty :: BeamURIOpeners c Source # mappend :: BeamURIOpeners c -> BeamURIOpeners c -> BeamURIOpeners c Source # mconcat :: [ BeamURIOpeners c] -> BeamURIOpeners c Source # |
data OpenedBeamConnection c where Source #
OpenedBeamConnection | |
|
mkUriOpener :: ( forall a. hdl -> m a -> IO a) -> String -> ( URI -> IO (hdl, IO ())) -> c be hdl m -> BeamURIOpeners c Source #
withDbFromUri :: forall c a. BeamURIOpeners c -> String -> ( forall be hdl m. ( forall r. hdl -> m r -> IO r) -> c be hdl m -> m a) -> IO a Source #
withDbConnection :: forall c a. BeamURIOpeners c -> String -> ( forall be hdl m. ( forall r. hdl -> m r -> IO r) -> c be hdl m -> hdl -> IO a) -> IO a Source #
openDbConnection :: forall c. BeamURIOpeners c -> String -> IO ( OpenedBeamConnection c) Source #
findURIOpener :: BeamURIOpeners c -> String -> IO ( URI , BeamURIOpener c) Source #