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