Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data FetchOptions = FetchOptions {}
- data PackageState
- pacReadOpts :: PackageReadOptions
- runFetch :: FetchOptions -> PoseidonIO ()
- readServerIndInfo :: ByteString -> IO [ExtendedIndividualInfo]
- readServerPackageInfo :: ByteString -> IO [PackageInfo]
- determinePackageState :: [PacNameAndVersion] -> PacNameAndVersion -> (PackageState, String, Maybe Version, [Maybe Version])
- handlePackageByState :: FilePath -> FilePath -> ArchiveEndpoint -> (PackageState, String, Maybe Version, [Maybe Version]) -> PoseidonIO ()
- printVs :: [Maybe Version] -> String
- printV :: Maybe Version -> String
- downloadAndUnzipPackage :: FilePath -> FilePath -> ArchiveEndpoint -> PacNameAndVersion -> PoseidonIO ()
- unzipPackage :: FilePath -> FilePath -> IO ()
- downloadPackage :: FilePath -> ArchiveEndpoint -> PacNameAndVersion -> PoseidonIO ()
- printDownloadProgress :: LogA -> Double -> ConduitT ByteString ByteString (ResourceT IO) ()
Documentation
data FetchOptions Source #
runFetch :: FetchOptions -> PoseidonIO () Source #
The main function running the Fetch command
readServerPackageInfo :: ByteString -> IO [PackageInfo] Source #
determinePackageState :: [PacNameAndVersion] -> PacNameAndVersion -> (PackageState, String, Maybe Version, [Maybe Version]) Source #
handlePackageByState :: FilePath -> FilePath -> ArchiveEndpoint -> (PackageState, String, Maybe Version, [Maybe Version]) -> PoseidonIO () Source #
downloadAndUnzipPackage :: FilePath -> FilePath -> ArchiveEndpoint -> PacNameAndVersion -> PoseidonIO () Source #
downloadPackage :: FilePath -> ArchiveEndpoint -> PacNameAndVersion -> PoseidonIO () Source #
printDownloadProgress :: LogA -> Double -> ConduitT ByteString ByteString (ResourceT IO) () Source #