Copyright | (c) William Yao 2019-2020 |
---|---|
License | BSD-3 |
Maintainer | williamyaoh@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
YOU SHOULD NOT USE THIS MODULE.
This is exported mainly so tests can introspect on the implementation.
Synopsis
- data InterpSegment
- parseInterpSegments :: String -> Either String [InterpSegment]
- dosToUnix :: String -> String
Documentation
data InterpSegment Source #
Instances
Eq InterpSegment Source # | |
Defined in Data.String.Interpolate.Parse (==) :: InterpSegment -> InterpSegment -> Bool # (/=) :: InterpSegment -> InterpSegment -> Bool # | |
Show InterpSegment Source # | |
Defined in Data.String.Interpolate.Parse showsPrec :: Int -> InterpSegment -> ShowS # show :: InterpSegment -> String # showList :: [InterpSegment] -> ShowS # |
parseInterpSegments :: String -> Either String [InterpSegment] Source #
Given the raw input from a quasiquote, parse it into the information we need to output the actual expression.
Returns an error message if parsing fails.