| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.LaTeX.LambdaTeX.Selection
Making selections
constructSelection :: String -> Selection Source #
Construct a selection from a space-separated list of strings representing selectors
constructSelection = map constructSelector . words
constructSelector :: String -> Selector Source #
Construct a selector from a string
>>>constructSelector "all"> All
>>>constructSelector "mySection.mySubsection"> Match ["mySection", "mySubsection"]
>>>constructSelector "+mySection.mySubsection"> Match ["mySection", "mySubsection"]
>>>constructSelector "-mySection.mySubsection"> Ignore ["mySection", "mySubsection"]