Haskell Package Publishing

QuickStart

Applications

These application templates are simple examples of how you might consume a horizon-package set in a nix project, but you are free to roll your own.

Haskell

For a basic Haskell template using horizon-platform at GHC 9.8.

mkdir horizon-haskell-template
cd horizon-haskell-template
nix flake init -t 'git+https://gitlab.horizon-haskell.net/templates/horizon-templates'

For a more involved example using polysemy and several other dependencies.

mkdir horizon-haskell-template
cd horizon-haskell-template
nix flake init -t 'git+https://gitlab.horizon-haskell.net/templates/horizon-templates#danstack'

For a template using horizon-devtools and the haskell-language-server at GHC 9.6, use the comprehensive template.

mkdir horizon-haskell-template
cd horizon-haskell-template
nix flake init -t 'git+https://gitlab.horizon-haskell.net/templates/horizon-templates#comprehensive'

Plutus

For plutus using horizon-plutus at GHC 9.6

mkdir horizon-plutus-template
cd horizon-plutus-template
nix flake init -t 'git+https://gitlab.horizon-haskell.net/templates/horizon-templates#plutus'
Links to this page