Copyright | (c) William Yao 2019-2021 |
---|---|
License | BSD-3 |
Maintainer | williamyaoh@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
ParseOutput | |
|
Instances
Eq ParseOutput Source # | |
Defined in Data.String.Interpolate.Parse (==) :: ParseOutput -> ParseOutput -> Bool # (/=) :: ParseOutput -> ParseOutput -> Bool # | |
Show ParseOutput Source # | |
Defined in Data.String.Interpolate.Parse 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.