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 -> (forall a. URI -> (hdl -> IO a) -> IO a) -> BeamURIOpener c |
newtype BeamURIOpeners c where Source #
BeamURIOpeners :: Map String (BeamURIOpener c) -> BeamURIOpeners c |
Monoid (BeamURIOpeners c) Source # | |
mkUriOpener :: MonadBeam syntax be hdl m => String -> (forall a. URI -> (hdl -> IO a) -> IO a) -> 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 #