| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
Agda.Interaction.Library.Parse
Description
Parser for .agda-lib files.
Example file:
    name: Main
    depend:
      standard-library
    include: .
      src more-src
  Should parse as:
    AgdaLib
      { libName     = Main
      , libFile     = path_to_this_file
      , libIncludes = [ "." , "src" , "more-src" ]
      , libDepends  = [ "standard-library" ]
      }
  Synopsis
- parseLibFile :: FilePath -> IO (P AgdaLibFile)
- splitCommas :: String -> [String]
- trimLineComment :: String -> String
- runP :: P a -> (Either LibParseError a, [LibWarning'])
Documentation
parseLibFile :: FilePath -> IO (P AgdaLibFile) Source #
splitCommas :: String -> [String] Source #
Break a comma-separated string.  Result strings are trimmed.
trimLineComment :: String -> String Source #
Remove leading whitespace and line comment.
runP :: P a -> (Either LibParseError a, [LibWarning']) Source #