| Safe Haskell | Safe-Inferred |
|---|---|
| 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 # | |
data BeamURIOpener c where Source #
Constructors
| BeamURIOpener :: c be hdl m -> (forall a. hdl -> m a -> IO a) -> (URI -> IO (hdl, IO ())) -> BeamURIOpener c |
newtype BeamURIOpeners c where Source #
Constructors
| BeamURIOpeners :: 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 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 :: 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 #