Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SourcesError
- newtype Sources = Sources {}
- getSourcesEither :: IO (Either SourcesError Sources)
- getSources :: IO Sources
- setSources :: Sources -> IO ()
- newtype PackageName = PackageName {}
- newtype PackageSpec = PackageSpec {}
- attrsToSpec :: Attrs -> PackageSpec
- pathNixSourcesJson :: FilePath
- abortSourcesDoesntExist :: IO a
- abortSourcesIsntJSON :: IO a
- abortSpecIsntAMap :: IO a
- data SourcesNixVersion
- sourcesVersionToText :: SourcesNixVersion -> Text
- latestVersionMD5 :: Text
- md5ToSourcesVersion :: Text -> Maybe SourcesNixVersion
- sourcesVersionToMD5 :: SourcesNixVersion -> Text
- sourcesNixMD5 :: IO Text
- pathNixSourcesNix :: FilePath
- warnIfOutdated :: IO ()
- initNixSourcesNixContent :: ByteString
- initNixSourcesJsonContent :: ByteString
Documentation
getSources :: IO Sources Source #
setSources :: Sources -> IO () Source #
newtype PackageName Source #
Instances
Eq PackageName Source # | |
Defined in Niv.Sources (==) :: PackageName -> PackageName -> Bool # (/=) :: PackageName -> PackageName -> Bool # | |
Show PackageName Source # | |
Defined in Niv.Sources showsPrec :: Int -> PackageName -> ShowS # show :: PackageName -> String # showList :: [PackageName] -> ShowS # | |
Hashable PackageName Source # | |
Defined in Niv.Sources hashWithSalt :: Int -> PackageName -> Int # hash :: PackageName -> Int # | |
ToJSONKey PackageName Source # | |
Defined in Niv.Sources | |
FromJSONKey PackageName Source # | |
Defined in Niv.Sources |
newtype PackageSpec Source #
Instances
Show PackageSpec Source # | |
Defined in Niv.Sources showsPrec :: Int -> PackageSpec -> ShowS # show :: PackageSpec -> String # showList :: [PackageSpec] -> ShowS # | |
Semigroup PackageSpec Source # | |
Defined in Niv.Sources (<>) :: PackageSpec -> PackageSpec -> PackageSpec # sconcat :: NonEmpty PackageSpec -> PackageSpec # stimes :: Integral b => b -> PackageSpec -> PackageSpec # | |
Monoid PackageSpec Source # | |
Defined in Niv.Sources mempty :: PackageSpec # mappend :: PackageSpec -> PackageSpec -> PackageSpec # mconcat :: [PackageSpec] -> PackageSpec # | |
ToJSON PackageSpec Source # | |
Defined in Niv.Sources toJSON :: PackageSpec -> Value # toEncoding :: PackageSpec -> Encoding # toJSONList :: [PackageSpec] -> Value # toEncodingList :: [PackageSpec] -> Encoding # | |
FromJSON PackageSpec Source # | |
Defined in Niv.Sources parseJSON :: Value -> Parser PackageSpec # parseJSONList :: Value -> Parser [PackageSpec] # |
attrsToSpec :: Attrs -> PackageSpec Source #
Simply discards the Freedom
pathNixSourcesJson :: FilePath Source #
nix/sources.json
abortSourcesDoesntExist :: IO a Source #
abortSourcesIsntJSON :: IO a Source #
abortSpecIsntAMap :: IO a Source #
data SourcesNixVersion Source #
All the released versions of nix/sources.nix
Instances
Bounded SourcesNixVersion Source # | |
Defined in Niv.Sources | |
Enum SourcesNixVersion Source # | |
Defined in Niv.Sources succ :: SourcesNixVersion -> SourcesNixVersion # pred :: SourcesNixVersion -> SourcesNixVersion # toEnum :: Int -> SourcesNixVersion # fromEnum :: SourcesNixVersion -> Int # enumFrom :: SourcesNixVersion -> [SourcesNixVersion] # enumFromThen :: SourcesNixVersion -> SourcesNixVersion -> [SourcesNixVersion] # enumFromTo :: SourcesNixVersion -> SourcesNixVersion -> [SourcesNixVersion] # enumFromThenTo :: SourcesNixVersion -> SourcesNixVersion -> SourcesNixVersion -> [SourcesNixVersion] # | |
Eq SourcesNixVersion Source # | |
Defined in Niv.Sources (==) :: SourcesNixVersion -> SourcesNixVersion -> Bool # (/=) :: SourcesNixVersion -> SourcesNixVersion -> Bool # |
sourcesVersionToText :: SourcesNixVersion -> Text Source #
A user friendly version
md5ToSourcesVersion :: Text -> Maybe SourcesNixVersion Source #
Find a version based on the md5 of the nix/sources.nix
sourcesVersionToMD5 :: SourcesNixVersion -> Text Source #
The MD5 sum of a particular version
sourcesNixMD5 :: IO Text Source #
The MD5 sum of .nixsources.nix
pathNixSourcesNix :: FilePath Source #
nix/sources.nix
warnIfOutdated :: IO () Source #
initNixSourcesNixContent :: ByteString Source #
Glue code between nix and sources.json
initNixSourcesJsonContent :: ByteString Source #
Empty JSON map