Copyright | (c) Julian Ospald 2020 |
---|---|
License | LGPL-3.0 |
Maintainer | hasufell@hasufell.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GHCup.Prelude.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
- skipWhile :: (Char -> Bool) -> Parsec Void Text ()
- skip :: (Char -> Bool) -> Parsec Void Text ()
- skipSpace :: Parsec Void Text ()
- skipSpaces :: Parsec Void Text ()
- isSpace :: Char -> Bool
- ghcVersionFromPath :: Parsec Void Text GHCTargetVersion
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