Copyright | (c) 2017 Mateusz Kowalczyk |
---|---|
License | BSD3 |
Safe Haskell | None |
Language | Haskell2010 |
Main library entry point.
- getPluginUrl :: RequestedPlugin -> Text
- downloadPlugin :: RequestedPlugin -> IO (Either String Plugin)
- downloadPluginsRecursive :: Map Text Plugin -> RequestedPlugin -> ExceptT String IO (Map Text Plugin)
- mkExprsFor :: [RequestedPlugin] -> IO (Either String Doc)
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 #
:: Map Text Plugin | Already downloaded plugins. |
-> RequestedPlugin | Plugins we're asked to download. |
-> ExceptT String IO (Map Text Plugin) |
Download the given plugin as well as recursively download its dependencies.
mkExprsFor :: [RequestedPlugin] -> IO (Either String Doc) Source #
Pretty-print nix expression for all the given plugins and their dependencies that the user asked for.