Copyright | (c) 2020 berberman |
---|---|
License | MIT |
Maintainer | berberman <1793913507@qq.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module provides parser of desc
file in pacman db.
Synopsis
- data PkgDesc = PkgDesc {}
- type DescParser = Parsec Void String
- descParser :: DescParser PkgDesc
- descFieldsParser :: DescParser (Map String [String])
- runDescParser :: String -> Either (ParseErrorBundle String Void) PkgDesc
Documentation
Package description file of a installed system package,
which lies in repo.db
file.
descParser :: DescParser PkgDesc Source #
Parse a desc file.
descFieldsParser :: DescParser (Map String [String]) Source #
Parse fields of desc
.
runDescParser :: String -> Either (ParseErrorBundle String Void) PkgDesc Source #
Run the desc parser.