Copyright | (c) 2017 Mateusz Kowalczyk |
---|---|
License | BSD3 |
Safe Haskell | None |
Language | Haskell2010 |
Main library entry point.
Synopsis
- getPluginUrl :: RequestedPlugin -> Text
- downloadPlugin :: RequestedPlugin -> IO (Either String Plugin)
- downloadPluginsRecursive :: ResolutionStrategy -> Map Text RequestedPlugin -> Map Text Plugin -> RequestedPlugin -> ExceptT String IO (Map Text Plugin)
- mkExprsFor :: Config -> IO (Either String (Doc ann))
Documentation
getPluginUrl :: RequestedPlugin -> Text Source #
Get the download URL of the plugin we're looking for.
downloadPlugin :: RequestedPlugin -> IO (Either String Plugin) Source #
Download a plugin from getPluginUrl
.
downloadPluginsRecursive Source #
:: ResolutionStrategy | Decide what version of dependencies to pick. |
-> Map Text RequestedPlugin | Plugins user requested. |
-> Map Text Plugin | Already downloaded plugins. |
-> RequestedPlugin | Plugin we're going to download. |
-> ExceptT String IO (Map Text Plugin) |
Download the given plugin as well as recursively download its dependencies.