| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sun, 18 Jan 2026 07:43:52 GMT
X-Served-By: cache-dfw-kdal2120072-DFW, cache-bom-vanm7210089-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768722232.859639,VS0,VE305
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
blockfrost-pretty: blockfrost.io pretty-printing utilities
Using
blockfrost-pretty: blockfrost.io pretty-printing utilities
Modules
[Index] [Quick Jump]
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| production | Production build | Disabled |
Automatic Flags
| Name | Description | Default |
|---|---|---|
| buildfast | Turn off optimizations | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- blockfrost-pretty-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.7 && <5), blockfrost-api, data-default, lens, prettyprinter, prettyprinter-ansi-terminal, safe-money, text, time [details] |
| License | Apache-2.0 |
| Copyright | 2021 blockfrost.io |
| Author | blockfrost.io |
| Maintainer | srk@48.io |
| Uploaded | by srk at 2021-09-14T12:24:11Z |
| Category | Web |
| Home page | https://github.com/blockfrost/blockfrost-haskell |
| Source repo | head: git clone https://github.com/blockfrost/blockfrost-haskell |
| Distributions | NixOS:0.1.0.0 |
| Downloads | 312 total (4 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2021-09-14 [all 1 reports] |
Readme for blockfrost-pretty-0.1.0.0
[back to package description]blockfrost-pretty
Pretty printing for Ada/Lovelace values and some Blockfrost types.
Example of pretty printing lovelace values.
λ: :set -XNumericUnderscores
λ: import Blockfrost.Pretty
λ: import Data.Text.IO
λ: Data.Text.IO.putStrLn $ prettyLovelaces 123_456
123 456 lovelaces
λ: Data.Text.IO.putStrLn $ prettyLovelaces 42_123_456
42.123456 ₳
λ: Data.Text.IO.putStrLn $ prettyLovelaces' testnetConfig 42_123_456
42.123456 t₳
λ: Data.Text.IO.putStrLn $ prettyLovelaces' (testnetConfig { pcUnicode = False }) 42_123_456
42.123456 tADA
Using Prettyprinter
To pretty print a Block to terminal with colors,
we use prettyprinter package
with prettyprinter-ansi-terminal.
Example:
λ: import Prettyprinter
λ: import Prettyprinter.Render.Terminal
λ: import Data.Text.IO
λ: Data.Text.IO.putStrLn $ renderStrict $ layoutPretty defaultLayoutOptions $ prettyBlock b