| Safe Haskell | None | 
|---|---|
| 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
 - type LineNumber = Int
 - runP :: P a -> (Either String a, [LibWarning'])
 - data LibWarning' = UnknownField String
 
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.
type LineNumber = Int Source #
data LibWarning' Source #
Library Warnings.
Constructors
| UnknownField String |