Hoogle Search

Within LTS Haskell 24.20 (ghc-9.10.3)

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

  1. printX :: [X] -> String

    nicify-lib Text.Nicify

    No documentation available.

  2. printX' :: String -> [X] -> String

    nicify-lib Text.Nicify

    No documentation available.

  3. printSchema :: Schema -> IO ()

    ollama-haskell Data.Ollama.Common.SchemaBuilder

    Pretty print a schema as formatted JSON.

  4. printOrPage :: Text -> IO ()

    pager System.Pager

    If the user's terminal is long enough to display the (strict) Text, just print it. Else, send it to the pager. The text needs to be strict, because the function counts the number of lines in the text. (This is also why it needs to be text, and not a bytestring, because Text has stuff like line-counting).

  5. printMigration :: (HasCallStack, MonadSqlQuery m) => Migration -> m ()

    persistent-mtl Database.Persist.Monad.Shim

    The lifted version of printMigration

  6. printMigration :: (HasCallStack, MonadSqlQuery m) => Migration -> m ()

    persistent-mtl Database.Persist.Sql.Shim

    The lifted version of printMigration

  7. printTable :: (Boxable b, Generic a, GRecordMeta (Rep a)) => b a -> IO ()

    pptable Text.PrettyPrint.Tabulate

    Used to print a container of Records in a tabular format.

    data Stock = Stock {price:: Double, ticker:: String} deriving (Show, Data, G.Generic)
    instance Tabulate Stock DoNotExpandWhenNested
    -- this can be a Vector or Map
    let s =  [Stock 10.0 "yahoo", Stock 12.0 "goog", Stock 10.0 "amz"]
    T.printTable s
    
    Nested records can also be printed in tabular format
    data FxCode = USD | EUR deriving (Show, Data, G.Generic)
    instance CellValueFormatter FxCode
    
    data Price = Price {px:: Double, fxCode:: FxCode} deriving (Show, Data, G.Generic)
    instance Tabulate Price ExpandWhenNested
    -- since Price will be nested, it also needs an instance of
    -- CellValueFormatter
    instance CellValueFormatter Price
    
    data Stock = Stock {ticker:: String, price:: Price} deriving (Show, Data, G.Generic)
    instance Tabulate Stock DoNotExpandWhenNested
    
    -- this can be a Vector or Map
    let s =  [Stock "yahoo" (Price 10.0 USD), Stock "ikea" (Price 11.0 EUR)]
    printTable s
    

  8. printTableWithFlds :: Boxable b => [DisplayFld t] -> b t -> IO ()

    pptable Text.PrettyPrint.Tabulate

    Used for printing selected fields from Record types This is useful when Records have a large number of fields and only few fields need to be introspected at any time. Using the example provided under printTables,

    printTableWithFlds [DFld (px . price), DFld ticker] s
    

  9. package print-console-colors

    Print all ANSI console colors Print all ANSI console colors. This is convenient when you are trying to set your console colors, for example when configuring Termonad. For installation and usage instructions, see the README.

  10. print216Colors :: IO ()

    print-console-colors PrintConsoleColors

    No documentation available.

Page 95 of many | Previous | Next