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.
-
nicify-lib Text.Nicify No documentation available.
printX' :: String -> [X] -> Stringnicify-lib Text.Nicify No documentation available.
printSchema :: Schema -> IO ()ollama-haskell Data.Ollama.Common.SchemaBuilder Pretty print a schema as formatted JSON.
-
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).
printMigration :: (HasCallStack, MonadSqlQuery m) => Migration -> m ()persistent-mtl Database.Persist.Monad.Shim The lifted version of printMigration
printMigration :: (HasCallStack, MonadSqlQuery m) => Migration -> m ()persistent-mtl Database.Persist.Sql.Shim The lifted version of printMigration
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 sNested records can also be printed in tabular formatdata 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
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
-
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.
-
print-console-colors PrintConsoleColors No documentation available.