Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- cli :: IO ()
- parseCommand :: Parser (IO ())
- parsePackageName :: Parser PackageName
- parsePackageSpec :: Parser PackageSpec
- parsePackage :: Parser (PackageName, PackageSpec)
- parseCmdInit :: ParserInfo (IO ())
- cmdInit :: IO ()
- parseCmdAdd :: ParserInfo (IO ())
- cmdAdd :: Update () a -> PackageName -> Attrs -> IO ()
- parseCmdShow :: ParserInfo (IO ())
- cmdShow :: Maybe PackageName -> IO ()
- showPackage :: PackageName -> PackageSpec -> IO ()
- parseCmdUpdate :: ParserInfo (IO ())
- specToFreeAttrs :: PackageSpec -> Attrs
- specToLockedAttrs :: PackageSpec -> Attrs
- cmdUpdate :: Maybe (PackageName, PackageSpec) -> IO ()
- partitionEithersHMS :: (Eq k, Hashable k) => HashMap k (Either a b) -> (HashMap k a, HashMap k b)
- parseCmdModify :: ParserInfo (IO ())
- cmdModify :: (PackageName, PackageSpec) -> IO ()
- parseCmdDrop :: ParserInfo (IO ())
- cmdDrop :: PackageName -> [Text] -> IO ()
- nixPrefetchURL :: Bool -> Text -> IO Text
- shouldUpdateNixSourcesNix :: ByteString -> Bool
- githubUpdate' :: Update () ()
- abortSourcesIsntAMap :: IO a
- abortCannotAddPackageExists :: PackageName -> IO a
- abortCannotUpdateNoSuchPackage :: PackageName -> IO a
- abortCannotModifyNoSuchPackage :: PackageName -> IO a
- abortCannotDropNoSuchPackage :: PackageName -> IO a
- abortCannotShowNoSuchPackage :: PackageName -> IO a
- abortCannotAttributesDropNoSuchPackage :: PackageName -> IO a
- abortUpdateFailed :: [(PackageName, SomeException)] -> IO a
- abortNixPrefetchExpectedOutput :: Text -> Text -> IO a
Documentation
parseCommand :: Parser (IO ()) Source #
parseCmdInit :: ParserInfo (IO ()) Source #
parseCmdAdd :: ParserInfo (IO ()) Source #
parseCmdShow :: ParserInfo (IO ()) Source #
showPackage :: PackageName -> PackageSpec -> IO () Source #
parseCmdUpdate :: ParserInfo (IO ()) Source #
specToFreeAttrs :: PackageSpec -> Attrs Source #
specToLockedAttrs :: PackageSpec -> Attrs Source #
cmdUpdate :: Maybe (PackageName, PackageSpec) -> IO () Source #
partitionEithersHMS :: (Eq k, Hashable k) => HashMap k (Either a b) -> (HashMap k a, HashMap k b) Source #
parseCmdModify :: ParserInfo (IO ()) Source #
cmdModify :: (PackageName, PackageSpec) -> IO () Source #
parseCmdDrop :: ParserInfo (IO ()) Source #
shouldUpdateNixSourcesNix :: ByteString -> Bool Source #
Checks if content is different than default and if it does not contain
a comment line with niv: no_update
githubUpdate' :: Update () () Source #
The IO (real) github update
abortSourcesIsntAMap :: IO a Source #
abortCannotAddPackageExists :: PackageName -> IO a Source #
abortCannotDropNoSuchPackage :: PackageName -> IO a Source #
abortCannotShowNoSuchPackage :: PackageName -> IO a Source #
abortUpdateFailed :: [(PackageName, SomeException)] -> IO a Source #