Copyright | Copyright 2011-2017 Neil Mitchell |
---|---|
License | BSD3 |
Maintainer | opensource@awakesecurity.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Parse a Ninja file.
Since: 0.1.0
- parseFileIO :: Path -> IO (Ninja Ann)
- parseTextIO :: Text -> IO (Ninja Ann)
- parseBSIO :: ByteString -> IO (Ninja Ann)
- parseLexemesIO :: [Lexeme Ann] -> IO (Ninja Ann)
- parseFile :: (MonadError ParseError m, MonadReadFile m) => Path -> m (Ninja Ann)
- parseText :: (MonadError ParseError m, MonadReadFile m) => Text -> m (Ninja Ann)
- parseBS :: (MonadError ParseError m, MonadReadFile m) => ByteString -> m (Ninja Ann)
- parseLexemes :: (MonadError ParseError m, MonadReadFile m) => [Lexeme Ann] -> m (Ninja Ann)
- parseFileWithEnv :: (MonadError ParseError m, MonadReadFile m) => Path -> Env Text Text -> m (Ninja Ann)
- parseTextWithEnv :: (MonadError ParseError m, MonadReadFile m) => Text -> Env Text Text -> m (Ninja Ann)
- parseBSWithEnv :: (MonadError ParseError m, MonadReadFile m) => ByteString -> Env Text Text -> m (Ninja Ann)
- parseLexemesWithEnv :: (MonadError ParseError m, MonadReadFile m) => [Lexeme Ann] -> Env Text Text -> m (Ninja Ann)
parse*IO
parseFileIO :: Path -> IO (Ninja Ann) Source #
Parse the file at the given path into a Ninja
.
This function may throw an exception if parsing fails.
Since: 0.1.0
parseBSIO :: ByteString -> IO (Ninja Ann) Source #
Parse the given ByteString
into a Ninja
.
This function may throw an exception if parsing fails.
Since: 0.1.0
parse*
parseFile :: (MonadError ParseError m, MonadReadFile m) => Path -> m (Ninja Ann) Source #
Parse the file at the given path into a Ninja
.
Since: 0.1.0
parseText :: (MonadError ParseError m, MonadReadFile m) => Text -> m (Ninja Ann) Source #
parseBS :: (MonadError ParseError m, MonadReadFile m) => ByteString -> m (Ninja Ann) Source #
Parse the given ByteString
into a Ninja
.
Since: 0.1.0
parseLexemes :: (MonadError ParseError m, MonadReadFile m) => [Lexeme Ann] -> m (Ninja Ann) Source #
parse*WithEnv
parseFileWithEnv :: (MonadError ParseError m, MonadReadFile m) => Path -> Env Text Text -> m (Ninja Ann) Source #
Parse the file at the given path using the given Ninja variable context,
resulting in a Ninja
.
Since: 0.1.0
parseTextWithEnv :: (MonadError ParseError m, MonadReadFile m) => Text -> Env Text Text -> m (Ninja Ann) Source #
parseBSWithEnv :: (MonadError ParseError m, MonadReadFile m) => ByteString -> Env Text Text -> m (Ninja Ann) Source #
Parse the given ByteString
using the given Ninja variable context,
resulting in a Ninja
.
Since: 0.1.0
parseLexemesWithEnv :: (MonadError ParseError m, MonadReadFile m) => [Lexeme Ann] -> Env Text Text -> m (Ninja Ann) Source #