ollama-haskell: Industry-grade Haskell client for the Ollama API
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
A type-safe, well-tested Haskell client for interacting with locally-running LLMs via the Ollama HTTP API. Supports chat, text generation, embeddings, model management, streaming via conduit, structured outputs, tool calling, and more.
[Skip to Readme]
Properties
| Versions | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.1.3, 0.1.2.0, 0.1.3.0, 0.2.0.0, 0.2.1.0, 0.3.0.0, 0.3.0.1 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson (>=2.0 && <3), base (>=4.17 && <5), bytestring (>=0.10 && <0.13), case-insensitive (>=1.2 && <1.3), conduit (>=1.3 && <1.4), conduit-extra (>=1.3 && <1.4), containers (>=0.6 && <0.9), hashable (>=1.4 && <1.6), http-client (>=0.6 && <0.8), http-client-tls (>=0.2 && <0.5), http-types (>=0.7 && <0.13), mtl (>=2.2 && <3), ollama-haskell, resourcet (>=1.3 && <1.4), retry (>=0.9 && <0.10), stm (>=2.5 && <3), text (>=2.0 && <3), time (>=1.11 && <2), unliftio-core (>=0.2 && <0.3) [details] |
| License | MIT |
| Copyright | 2024-2026 Tushar Adhatrao |
| Author | Tushar Adhatrao |
| Maintainer | tusharadhatrao@gmail.com |
| Category | Web, AI, Network |
| Home page | https://github.com/tusharad/ollama-haskell |
| Bug tracker | https://github.com/tusharad/ollama-haskell/issues |
| Source repo | head: git clone https://github.com/tusharad/ollama-haskell |
| Uploaded | by tusharad at 2026-08-05T17:31:16Z |
Modules
- Ollama
- API
- Ollama.API.Blobs
- Ollama.API.Chat
- Ollama.API.Embed
- Ollama.API.Generate
- Ollama.API.Models
- Ollama.API.Models.Create
- Ollama.API.Models.Pull
- Ollama.API.Models.Push
- Ollama.API.Ps
- Ollama.API.Version
- Ollama.Client
- Ollama.Client.Config
- Ollama.Conversation
- Ollama.Error
- Ollama.Streaming
- Ollama.Testing
- Ollama.Types
- Ollama.Types.Common
- Ollama.Types.Format
- Ollama.Types.Format.SchemaBuilder
- Ollama.Types.Message
- Ollama.Types.Model
- Ollama.Types.Options
- Ollama.Types.Tool
- API
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| integration-tests | Build and run integration tests (requires running Ollama server) | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- ollama-haskell-0.3.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees