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.

  1. 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
    

  2. data NewlineForbidden

    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: NewlineForbidden
    
    In 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
    

  3. NewlineForbidden :: NewlineForbidden

    turtle Turtle.Line

    No documentation available.

  4. package validity-time

    Validity instances for time Validity instances for time

  5. type Middleware (h :: Type -> Type -> Type) (tsOut :: [Type]) (tsIn :: [Type]) = RequestHandler h tsIn -> RequestHandler h tsOut

    webgear-core WebGear.Core.Handler

    A middleware enhances a RequestHandler and produces another handler.

  6. jwtValidationSettings :: JWTAuth' (x :: Existence) (scheme :: Symbol) (m :: Type -> Type) e a -> JWTValidationSettings

    webgear-core WebGear.Core.Trait.Auth.JWT

    Settings to validate the JWT

  7. forbidden403 :: Set h Status => h () (With Response '[Status])

    webgear-core WebGear.Core.Trait.Status

    Forbidden 403 response

  8. width :: Doc a -> (Int -> Doc a) -> Doc a

    wl-pprint-annotated Text.PrettyPrint.Annotated.WL

    No documentation available.

  9. AttrResolveAvoidEscape :: AttrResolveInternalQuotes

    xmlhtml Text.XmlHtml

    No documentation available.

  10. data ExternalID

    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.

Page 1331 of many | Previous | Next