Hoogle Search

Within LTS Haskell 24.41 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. type PreparedUpdate p = PreparedStatement p ()

    relational-query-HDBC Database.HDBC.Record.Update

    Typed prepared update type.

  2. module Database.HDBC.Schema.PostgreSQL

    This module provides driver implementation to load PostgreSQL system catalog via HDBC.

  3. module Data.Array.Repa.Repr.Partitioned

    No documentation available.

  4. type PC5 = P C P S D P S D P S D P S D X

    repa Data.Array.Repa.Stencil.Dim2

    No documentation available.

  5. module RIO.PrettyPrint

    No documentation available.

  6. PkgComponent :: Style

    rio-prettyprint RIO.PrettyPrint

    Style used to highlight the named component of a package.

  7. class Pretty a

    rio-prettyprint RIO.PrettyPrint

    No documentation available.

  8. module RIO.PrettyPrint.PrettyException

    This module provides a type representing pretty exceptions. It can be used as in the example below:

    {-# LANGUAGE NoImplicitPrelude #-}
    {-# LANGUAGE OverloadedStrings #-}
    
    module Main (main) where
    
    import RIO
    ( Exception, Handler (..), IO, RIO, Show, SomeException (..), Typeable
    , ($), catches, displayException, exitFailure, fromString, logError
    , mempty, throwIO
    )
    import RIO.PrettyPrint
    ( Pretty (..), Style (..), (<+>), prettyError, prettyInfo, style )
    import RIO.PrettyPrint.PrettyException ( PrettyException (..) )
    import RIO.PrettyPrint.Simple ( SimplePrettyApp, runSimplePrettyApp )
    
    main :: IO ()
    main = runSimplePrettyApp 80 mempty (action `catches` handleExceptions)
    where
    action :: RIO SimplePrettyApp ()
    action = do
    prettyInfo "Running action!"
    throwIO (PrettyException MyPrettyException)
    
    handleExceptions :: [Handler (RIO SimplePrettyApp) ()]
    handleExceptions =
    [ Handler handlePrettyException
    , Handler handleSomeException
    ]
    
    handlePrettyException :: PrettyException -> RIO SimplePrettyApp ()
    handlePrettyException e = do
    prettyError $ pretty e
    exitFailure
    
    handleSomeException :: SomeException -> RIO SimplePrettyApp ()
    handleSomeException (SomeException e) = do
    logError $ fromString $ displayException e
    exitFailure
    
    data MyPrettyException
    = MyPrettyException
    deriving (Show, Typeable)
    
    instance Pretty MyPrettyException where
    pretty MyPrettyException =
    "My" <+> style Highlight "pretty" <+> "exception!"
    
    instance Exception MyPrettyException
    

  9. data PrettyException

    rio-prettyprint RIO.PrettyPrint.PrettyException

    Type representing pretty exceptions.

  10. PrettyException :: e -> PrettyException

    rio-prettyprint RIO.PrettyPrint.PrettyException

    No documentation available.

Page 735 of many | Previous | Next