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. connectionWaitForInput :: Connection -> Int -> IO Bool

    crypton-connection Network.Connection

    Wait for input to become available on a connection. As with hWaitForInput, the timeout value is given in milliseconds. If the timeout value is less than zero, then connectionWaitForInput waits indefinitely. Unlike hWaitForInput, this function does not do any decoding, so it returns true when there is any available input, not just full characters.

  2. checkForeignKeys :: forall (m :: Type -> Type) env . (MonadResource m, MonadReader env m, BackendCompatible SqlBackend env) => ConduitM () ForeignKeyViolation m ()

    persistent-sqlite Database.Persist.Sqlite

    Outputs all (if any) the violated foreign key constraints in the database. The main use is to validate that no foreign key constraints were broken/corrupted by anyone operating on the database with foreign keys disabled. See fkEnabled.

  3. waitForDatabase :: forall (m :: Type -> Type) backend . (MonadUnliftIO m, MonadLoggerIO m, BackendCompatible SqlBackend backend) => ReaderT backend m ()

    persistent-sqlite Database.Persist.Sqlite

    Wait until some noop action on the database does not return an ErrorBusy. See retryOnBusy.

  4. ErrorFormat :: Error

    persistent-sqlite Database.Sqlite

    No documentation available.

  5. ansiForeground :: AnsiStyle -> Maybe (Intensity, Color)

    prettyprinter-ansi-terminal Prettyprinter.Render.Terminal.Internal

    Set the foreground color, or keep the old one.

  6. setLogFormat :: (Utf8Builder -> Utf8Builder) -> LogOptions -> LogOptions

    rio RIO

    Set format method for messages Default: id

  7. setLogVerboseFormat :: Bool -> LogOptions -> LogOptions

    rio RIO

    Use the verbose format for printing log messages. Default: follows the value of the verbose flag.

  8. setLogVerboseFormatIO :: IO Bool -> LogOptions -> LogOptions

    rio RIO

    Refer to setLogVerboseFormat. This modifier allows to alter the verbose format value dynamically at runtime. Default: follows the value of the verbose flag.

  9. bifor :: (Bitraversable t, Applicative f) => t a b -> (a -> f c) -> (b -> f d) -> f (t c d)

    rio RIO.Prelude

    bifor is bitraverse with the structure as the first argument. For a version that ignores the results, see bifor_.

    Examples

    Basic usage:
    >>> bifor (Left []) listToMaybe (find even)
    Nothing
    
    >>> bifor (Left [1, 2, 3]) listToMaybe (find even)
    Just (Left 1)
    
    >>> bifor (Right [4, 5]) listToMaybe (find even)
    Just (Right 4)
    
    >>> bifor ([1, 2, 3], [4, 5]) listToMaybe (find even)
    Just (1,4)
    
    >>> bifor ([], [4, 5]) listToMaybe (find even)
    Nothing
    

  10. bifor_ :: (Bifoldable t, Applicative f) => t a b -> (a -> f c) -> (b -> f d) -> f ()

    rio RIO.Prelude

    As bitraverse_, but with the structure as the primary argument. For a version that doesn't ignore the results, see bifor.

    Examples

    Basic usage:
    >>> bifor_ ("Hello", True) print (print . show)
    "Hello"
    "True"
    
    >>> bifor_ (Right True) print (print . show)
    "True"
    
    >>> bifor_ (Left "Hello") print (print . show)
    "Hello"
    

Page 541 of many | Previous | Next