Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
servant Servant.Types.SourceT Transform using attoparsec parser. Note: parser should not accept empty input!
>>> let parser = A.skipWhile A8.isSpace_w8 >> A.takeWhile1 A8.isDigit_w8
>>> runExcept $ runSourceT $ transformWithAtto parser (source $ [fromString "1 2 3"]) Right ["1","2","3"]
>>> runExcept $ runSourceT $ transformWithAtto parser (source $ map fromString ["1", "2", "3"]) Right ["123"]
>>> runExcept $ runSourceT $ transformWithAtto parser (source $ map fromString ["1", "2 3", "4"]) Right ["12","34"]
>>> runExcept $ runSourceT $ transformWithAtto parser (source [fromString "foobar"]) Left "Failed reading: takeWhile1"
-
A small compatibility shim for the transformers library This package includes backported versions of types that were added to transformers in transformers 0.3, 0.4, and 0.5 for users who need strict transformers 0.2 or 0.3 compatibility to run on old versions of the platform, but also need those types. Those users should be able to just depend on transformers >= 0.2 and transformers-compat >= 0.3. Note: missing methods are not supplied, but this at least permits the types to be used.
CryptoError_PointFormatInvalid :: CryptoErrorcrypton Crypto.Error No documentation available.
CryptoError_PointFormatUnsupported :: CryptoErrorcrypton Crypto.Error No documentation available.
defaultFormatOptions :: FormatOptionsyaml Data.Yaml No documentation available.
setFormat :: FormatOptions -> EncodeOptions -> EncodeOptionsyaml Data.Yaml Set the encoding formatting for the encoded YAML. By default, this is defaultFormatOptions.
onbeforeonload :: AttributeValue -> Attributeblaze-html Text.Blaze.Html5.Attributes Combinator for the onbeforeonload attribute. Example:
div ! onbeforeonload "bar" $ "Hello."
Result:<div onbeforeonload="bar">Hello.</div>
onbeforeprint :: AttributeValue -> Attributeblaze-html Text.Blaze.Html5.Attributes Combinator for the onbeforeprint attribute. Example:
div ! onbeforeprint "bar" $ "Hello."
Result:<div onbeforeprint="bar">Hello.</div>
onformchange :: AttributeValue -> Attributeblaze-html Text.Blaze.Html5.Attributes Combinator for the onformchange attribute. Example:
div ! onformchange "bar" $ "Hello."
Result:<div onformchange="bar">Hello.</div>
onforminput :: AttributeValue -> Attributeblaze-html Text.Blaze.Html5.Attributes Combinator for the onforminput attribute. Example:
div ! onforminput "bar" $ "Hello."
Result:<div onforminput="bar">Hello.</div>