Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- blobsSource :: (MonadThrow m, MonadResource m, MonadIO m) => SourceConfig -> ConduitT i (BlobKey, ByteString) m ()
- data SourceConfig = SourceConfig {}
- blobsSink :: (MonadIO m, MonadThrow m, MonadUnliftIO m) => CasaRepoPrefix -> ConduitT () ByteString m () -> m ()
- data CasaRepoPrefix
- parseCasaRepoPrefix :: String -> Either String CasaRepoPrefix
- thParserCasaRepo :: String -> Q Exp
- data PushException = PushBadHttpStatus Status
- data PullException
Documentation
blobsSource :: (MonadThrow m, MonadResource m, MonadIO m) => SourceConfig -> ConduitT i (BlobKey, ByteString) m () Source #
Make a source of blobs from a URL. Throws PullException
.
data SourceConfig Source #
Configuration for sourcing blobs from the server.
SourceConfig | |
|
blobsSink :: (MonadIO m, MonadThrow m, MonadUnliftIO m) => CasaRepoPrefix -> ConduitT () ByteString m () -> m () Source #
A sink to push blobs to the server. Throws PushException
.
data CasaRepoPrefix Source #
The URL prefix for a casa repo.
Commonly: https://casa.fpcomplete.com
Parsers will strip out a trailing slash.
Instances
FromJSON CasaRepoPrefix Source # | |
Defined in Casa.Client parseJSON :: Value -> Parser CasaRepoPrefix # parseJSONList :: Value -> Parser [CasaRepoPrefix] # | |
Show CasaRepoPrefix Source # | |
Defined in Casa.Client showsPrec :: Int -> CasaRepoPrefix -> ShowS # show :: CasaRepoPrefix -> String # showList :: [CasaRepoPrefix] -> ShowS # | |
Lift CasaRepoPrefix Source # | |
Defined in Casa.Client lift :: Quote m => CasaRepoPrefix -> m Exp # liftTyped :: forall (m :: Type -> Type). Quote m => CasaRepoPrefix -> Code m CasaRepoPrefix # |
parseCasaRepoPrefix :: String -> Either String CasaRepoPrefix Source #
Parse and normalize a Casa repo prefix.
data PushException Source #
An exception from blob consuming/sending.
Instances
Exception PushException Source # | |
Defined in Casa.Client | |
Show PushException Source # | |
Defined in Casa.Client showsPrec :: Int -> PushException -> ShowS # show :: PushException -> String # showList :: [PushException] -> ShowS # |
data PullException Source #
An exception from blob consuming/sending.
Instances
Exception PullException Source # | |
Defined in Casa.Client | |
Show PullException Source # | |
Defined in Casa.Client showsPrec :: Int -> PullException -> ShowS # show :: PullException -> String # showList :: [PullException] -> ShowS # |