Safe Haskell | None |
---|---|
Language | Haskell2010 |
Convenience methods for constructing backend-agnostic applications
Documentation
data BeamResourceNotFound Source #
data BeamOpenURIInvalid Source #
data BeamURIOpener c where Source #
BeamURIOpener :: MonadBeam syntax be hdl m => c syntax be hdl m -> (URI -> IO (hdl, IO ())) -> BeamURIOpener c |
newtype BeamURIOpeners c where Source #
BeamURIOpeners :: Map String (BeamURIOpener c) -> BeamURIOpeners c |
Semigroup (BeamURIOpeners c) Source # | |
Monoid (BeamURIOpeners c) Source # | |
data OpenedBeamConnection c where Source #
OpenedBeamConnection :: MonadBeam syntax be hdl m => {..} -> OpenedBeamConnection c | |
|
mkUriOpener :: MonadBeam syntax be hdl m => String -> (URI -> IO (hdl, IO ())) -> c syntax be hdl m -> BeamURIOpeners c Source #
withDbFromUri :: forall c a. BeamURIOpeners c -> String -> (forall syntax be hdl m. MonadBeam syntax be hdl m => c syntax be hdl m -> m a) -> IO a Source #
withDbConnection :: forall c a. BeamURIOpeners c -> String -> (forall syntax be hdl m. MonadBeam syntax be hdl m => c syntax 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 #