| Copyright | (c) Julian Ospald 2020 |
|---|---|
| License | LGPL-3.0 |
| Maintainer | hasufell@hasufell.de |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
GHCup.Utils.MegaParsec
Description
Synopsis
- choice' :: (MonadFail f, MonadParsec e s f) => [f a] -> f a
- parseUntil :: Parsec Void Text a -> Parsec Void Text Text
- parseUntil1 :: Parsec Void Text a -> Parsec Void Text Text
- ghcTargetBinP :: Text -> Parsec Void Text (Maybe Text, Text)
- ghcProjectVersion :: Parsec Void Text Version
- ghcTargetVerP :: Parsec Void Text GHCTargetVersion
- verP :: Parsec Void Text Text -> Parsec Void Text Versioning
- pathSep :: Parsec Void Text Char
Documentation
choice' :: (MonadFail f, MonadParsec e s f) => [f a] -> f a Source #
ghcTargetBinP :: Text -> Parsec Void Text (Maybe Text, Text) Source #
Parses e.g. * armv7-unknown-linux-gnueabihf-ghc * armv7-unknown-linux-gnueabihf-ghci
ghcProjectVersion :: Parsec Void Text Version Source #
Extracts the version from ProjectVersion="8.10.5".
ghcTargetVerP :: Parsec Void Text GHCTargetVersion Source #
Extracts target triple and version from e.g. * armv7-unknown-linux-gnueabihf-8.8.3 * armv7-unknown-linux-gnueabihf-8.8.3