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.
void :: Functor f => f a -> f ()turtle Turtle void value discards or ignores the result of evaluation, such as the return value of an IO action.
Examples
Replace the contents of a Maybe Int with unit:>>> void Nothing Nothing
>>> void (Just 3) Just ()
Replace the contents of an Either Int Int with unit, resulting in an Either Int ():>>> void (Left 8675309) Left 8675309
>>> void (Right 8675309) Right ()
Replace every element of a list with unit:>>> void [1,2,3] [(),(),()]
Replace the second element of a pair with unit:>>> void (1,2) (1,())
Discard the result of an IO action:>>> mapM print [1,2] 1 2 [(),()]
>>> void $ mapM print [1,2] 1 2
-
turtle Turtle.Line The NewlineForbidden exception is thrown when you construct a Line using an overloaded string literal or by calling fromString explicitly and the supplied string contains newlines. This is a programming error to do so: if you aren't sure that the input string is newline-free, do not rely on the IsString Line instance. When debugging, it might be useful to look for implicit invocations of fromString for Line:
>>> sh (do { line <- "Hello\nWorld"; echo line }) *** Exception: NewlineForbiddenIn the above example, echo expects its argument to be a Line, thus line :: Line. Since we bind line in Shell, the string literal "Hello\nWorld" has type Shell Line. The IsString (Shell Line) instance delegates the construction of a Line to the IsString Line instance, where the exception is thrown. To fix the problem, use textToLines:>>> sh (do { line <- select (textToLines "Hello\nWorld"); echo line }) Hello World NewlineForbidden :: NewlineForbiddenturtle Turtle.Line No documentation available.
-
Validity instances for time Validity instances for time
-
webgear-core WebGear.Core.Handler A middleware enhances a RequestHandler and produces another handler.
-
webgear-core WebGear.Core.Trait.Auth.JWT Settings to validate the JWT
forbidden403 :: Set h Status => h () (With Response '[Status])webgear-core WebGear.Core.Trait.Status Forbidden 403 response
width :: Doc a -> (Int -> Doc a) -> Doc awl-pprint-annotated Text.PrettyPrint.Annotated.WL No documentation available.
AttrResolveAvoidEscape :: AttrResolveInternalQuotesxmlhtml Text.XmlHtml No documentation available.
-
xmlhtml Text.XmlHtml An external ID, as in a document type declaration. This can be a SYSTEM identifier, or a PUBLIC identifier, or can be omitted.