debian-4.0.2: Modules for working with the Debian package system

Safe HaskellNone
LanguageHaskell98

Debian.Sources

Contents

Synopsis

Documentation

data SourceOp Source #

Constructors

OpSet 
OpAdd 
OpDel 
Instances
Eq SourceOp Source # 
Instance details

Defined in Debian.Sources

Ord SourceOp Source # 
Instance details

Defined in Debian.Sources

Show SourceOp Source # 
Instance details

Defined in Debian.Sources

Pretty SourceOp Source # 
Instance details

Defined in Debian.Sources

Methods

pretty :: SourceOp -> Doc #

data DebSource Source #

Instances
Eq DebSource Source # 
Instance details

Defined in Debian.Sources

Ord DebSource Source # 
Instance details

Defined in Debian.Sources

Show DebSource Source # 
Instance details

Defined in Debian.Sources

Pretty DebSource Source # 
Instance details

Defined in Debian.Sources

Methods

pretty :: DebSource -> Doc #

Pretty (PP [DebSource]) Source # 
Instance details

Defined in Debian.Sources

Methods

pretty :: PP [DebSource] -> Doc #

quoteWords :: String -> [String] Source #

quoteWords - similar to words, but with special handling of double-quotes and brackets.

The handling double quotes and [] is supposed to match: apt-0.6.44.2/apt-pkg/contrib/strutl.cc:ParseQuoteWord()

The behaviour can be defined as:

Break the string into space seperated words ignoring spaces that appear between "" or []. Strip trailing and leading white space around words. Strip out double quotes, but leave the square brackets intact.

parseSourceLine :: [Loc] -> String -> DebSource Source #

parseSourceLine -- parses a source line the argument must be a non-empty, valid source line with comments stripped see: sourceLines

Unit Tests