Haskell
About
Our Haskell SDK, blockfrost-haskell comprises of API definition, data types, client and utilities for working with Blockfrost.
blockfrost-api
Types, sample data, API definition and tests. See theREADME.md
for quick tutorialblockfrost-client-core
Instances and helpers shared by all clients.blockfrost-client
Blockfrost client for use withmtl
. ItsREADME.md
contains an introduction and usage examples.blockfrost-pretty
Pretty printing utilities for pretty printing Ada values and various Blockfrost types.
Installation
Packages are available on Hackage, you only need to add blockfrost-client to your package dependencies.
Haddocks available on Hackage:
Development setup
You can either work within this repository using plain cabal
or in combination
with nix
.
cabal
If you already have GHC
and cabal
installed:
git clone https://github.com/blockfrost/blockfrost-haskell
cd blockfrost-haskell
cabal update
cabal build all
cabal repl blockfrost-client
Note: Due to TLS support, you might need to
provide zlib
headers if compilation
of http-client-tls
fails. (On NixOS this is nix-shell -p zlib.dev
).
nix
Using nix-shell
, you can obtain a preconfigured environment
with GHC
and cabal
:
git clone https://github.com/blockfrost/blockfrost-haskell
cd blockfrost-haskell
nix-shell
cabal build all
cabal repl blockfrost-client
Usage
See blockfrost-client for a tutorial and usage examples.
Readme of blockfrost-api contains a short primer for working with Blockfrost types, data samples and monetary values.