An open API service indexing awesome lists of open source software.

https://github.com/srid/hint-demo

Nix-based demo of Haskell's `hint` library
https://github.com/srid/hint-demo

Last synced: 24 days ago
JSON representation

Nix-based demo of Haskell's `hint` library

Awesome Lists containing this project

README

          

# hint-demo

Nix-based demo of Haskell's `hint` library

> [!WARNING]
> While this repo is currently functional, it may undergo substantial changes.

## Using hint with external libraries

Our [`config.hs`](packages/hint-demo/config.hs) has access to:

- Internal library, `packages/hint-demo-types`
- External libraries, `optics-core`, `optics-th`, `time`.

We must explicitly define the internal library in [`hint.nix`](nix/modules/flake/hint.nix).

Based on https://github.com/haskell-hint/hint/issues/79

## Running

To run:

```sh
# Nix
nix run

# Cabal
nix develop -c cabal run hint-demo

# ghcid
nix develop -c just run
```

## Real-world uses

- https://github.com/juspay/vira