Hoogle Search
Within LTS Haskell 24.66 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
idFormatTokenREOptions :: FormatTokenREOptionsregex Text.RE.ZeInternals a configuration that will preserve the parsed regular expression in the output
class
BiForall (r1 :: Row k1) (r2 :: Row k2) (c :: k1 -> k2 -> Constraint)row-types Data.Row Any structure over two rows in which the elements of each row satisfy some constraints can be metamorphized into another structure over both of the rows.
class
BiForall (r1 :: Row k1) (r2 :: Row k2) (c :: k1 -> k2 -> Constraint)row-types Data.Row.Internal Any structure over two rows in which the elements of each row satisfy some constraints can be metamorphized into another structure over both of the rows.
class
BiForall (r1 :: Row k1) (r2 :: Row k2) (c :: k1 -> k2 -> Constraint)row-types Data.Row.Records Any structure over two rows in which the elements of each row satisfy some constraints can be metamorphized into another structure over both of the rows.
asWellFormed :: SExprParser a (SExpr b) -> SExprParser a (WellFormedSExpr b)s-cargot Data.SCargot Convert the final output representation from the SExpr type to the WellFormedSExpr type.
>>> import Text.Parsec (alphaNum, many1) >>> let parser = asWellFormed (mkParser (many1 alphaNum)) >>> decode parser "(ele phant)" Right [WFSList [WFSAtom "ele",WFSAtom "phant"]]
asWellFormed :: SExprParser a (SExpr b) -> SExprParser a (WellFormedSExpr b)s-cargot Data.SCargot.Parse Convert the final output representation from the SExpr type to the WellFormedSExpr type.
>>> import Text.Parsec (alphaNum, many1) >>> let parser = asWellFormed (mkParser (many1 alphaNum)) >>> decode parser "(ele phant)" Right [WFSList [WFSAtom "ele",WFSAtom "phant"]]
-
s-cargot Data.SCargot.Repr A well-formed s-expression is one which does not contain any dotted lists. This means that not every value of SExpr a can be converted to a WellFormedSExpr a, although the opposite is fine.
fromWellFormed :: WellFormedSExpr atom -> SExpr atoms-cargot Data.SCargot.Repr Convert a WellFormedSExpr back into a SExpr.
toWellFormed :: SExpr atom -> Either String (WellFormedSExpr atom)s-cargot Data.SCargot.Repr This will be Nothing if the argument contains an improper list. It should hold that
toWellFormed (fromWellFormed x) == Right x
and also (more tediously) thatcase toWellFormed x of Left _ -> True Right y -> x == fromWellFormed y
module Data.SCargot.Repr.
WellFormed No documentation available.