Skip to content
Snippets Groups Projects
Daniel Firth's avatar
Daniel Firth authored
horizon-platform: update

See merge request !3
e97984af

Horizon Haskell AI Platform

horizon-haskell.net.

horizon-ai is a haskell package set targetting AI libraries for Haskell.

You can use this package set as a flake input to your haskell projects, use the haskell-ai-shell to try out the featured libraries, or try a template application that uses this package set.

Haskell AI

To run the shell

export OPENAI_API_KEY="your key"
nix run 'git+https://gitlab.horizon-haskell.net/shells/haskell-ai-shell'
callGPT "Hi, what's your favourite thing about Haskell?"

For a template using this package set

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

Package Set Policy

This package set has the following policy.

  • GHC will advance as often as possible
  • Nonversioned locations (git, unversioned tarballs) are permitted to allow GHC to advance.
  • The following packages must always build:
    • openai-hs
    • openai-servant

Updating the package set

The package set is generated from the horizon.dhall. You can edit this in one of two ways: manually using a text edit, or programatically using horizon-shell.

Manual

Edit the horizon.dhall file and add or change some package data.

Run horizon-gen-nix from the remote repository.

nix run 'git+https://gitlab.horizon-haskell.net/haskell/horizon-gen-nix?ref=refs/tags/0.10.0'

Programatic

To use horizon-shell.

nix develop

See the in-shell help for usage.

Help

If you have any questions, feel free to join the horizon matrix