| Copyright | (c) William Yao 2019-2021 |
|---|---|
| License | BSD-3 |
| Maintainer | [email protected] |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Data.String.Interpolate.Parse
Description
YOU SHOULD NOT USE THIS MODULE.
This is exported mainly so tests can introspect on the implementation.
Synopsis
- data ParseOutput = ParseOutput {
- poHeaderWS :: Lines
- poContent :: Lines
- poFooterWS :: Lines
- parseInput :: String -> Either String ParseOutput
- parseInterpSegments :: String -> Either String Lines
- dosToUnix :: String -> String
Documentation
data ParseOutput Source #
Each section here is a list of lines.
Content here is defined by the contiguous sequence of lines begining with the first non-blank line and ending with the last non-blank line
Constructors
| ParseOutput | |
Fields
| |
Instances
| Eq ParseOutput Source # | |
Defined in Data.String.Interpolate.Parse | |
| Show ParseOutput Source # | |
Defined in Data.String.Interpolate.Parse Methods showsPrec :: Int -> ParseOutput -> ShowS # show :: ParseOutput -> String # showList :: [ParseOutput] -> ShowS # | |
parseInput :: String -> Either String ParseOutput Source #
Like parseInterpSegments, but for cases where we need to do
more complicated transformations on the input. Separates the
interpolation input into its content, whitespace header, and
whitespace footer.