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.
type
PreparedUpdate p = PreparedStatement p ()relational-query-HDBC Database.HDBC.Record.Update Typed prepared update type.
module Database.HDBC.Schema.
PostgreSQL This module provides driver implementation to load PostgreSQL system catalog via HDBC.
module Data.Array.Repa.Repr.
Partitioned No documentation available.
type
PC5 = P C P S D P S D P S D P S D Xrepa Data.Array.Repa.Stencil.Dim2 No documentation available.
-
No documentation available.
-
rio-prettyprint RIO.PrettyPrint Style used to highlight the named component of a package.
-
rio-prettyprint RIO.PrettyPrint No documentation available.
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-
rio-prettyprint RIO.PrettyPrint.PrettyException Type representing pretty exceptions.
PrettyException :: e -> PrettyExceptionrio-prettyprint RIO.PrettyPrint.PrettyException No documentation available.