Copyright | (c) Julian Ospald 2020 |
---|---|
License | LGPL-3.0 |
Maintainer | hasufell@hasufell.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- ghcupURL :: URI
- stackSetupURL :: URI
- shimGenURL :: URI
- shimGenSHA :: Text
- ghcUpVer :: PVP
- numericVer :: String
- versionCmp :: Versioning -> VersionCmp -> Bool
- versionRange :: Versioning -> VersionRange -> Bool
- pvpToVersion :: MonadThrow m => PVP -> Text -> m Version
- versionToPVP :: MonadThrow m => Version -> m (PVP, Text)
- pvpFromList :: [Int] -> PVP
- channelURL :: ChannelAlias -> URI
Documentation
This reflects the API version of the YAML.
Note that when updating this, CI requires that the file exists AND the same file exists at 'https://www.haskell.org/ghcup/exp/ghcup-<ver>.yaml' with some newlines added.
stackSetupURL :: URI Source #
shimGenURL :: URI Source #
shimGenSHA :: Text Source #
numericVer :: String Source #
ghcup version as numeric string.
versionCmp :: Versioning -> VersionCmp -> Bool Source #
versionRange :: Versioning -> VersionRange -> Bool Source #
pvpToVersion :: MonadThrow m => PVP -> Text -> m Version Source #
versionToPVP :: MonadThrow m => Version -> m (PVP, Text) Source #
Convert a version to a PVP and unparsable rest.
- - prop> v -> let (Just (pvp', r)) = versionToPVP v in pvpToVersion pvp' r === Just v
pvpFromList :: [Int] -> PVP Source #
channelURL :: ChannelAlias -> URI Source #