Worked examples of where dependent types help NixLab.
git clone git@nixlab.openfp.net:horizon/dependent-nixlab-examples.gitcabal-version: 3.0
name: dependent-nixlab-examples
version: 0.1.0.0
synopsis: Where dependent types help NixLab
description:
Worked examples in Dependent Haskell: schema-indexed decoding, typed host
commands, review reports with one verdict per rule, merge request
lifecycles, fuel budgets, a printer/reader round-trip theorem and
horizon-dsl's law-kit laws as proofs. The library only has to compile.
license: MIT
license-file: LICENSE
author: Homotopic.Tech Ltd
maintainer: dan@openfp.net
copyright: 2026 Homotopic.Tech Ltd
category: Dependent Types
build-type: Simple
extra-doc-files:
ChangeLog.md
README.md
library
exposed-modules:
NixLab.Dependent.Commands
NixLab.Dependent.Fuel
NixLab.Dependent.Laws
NixLab.Dependent.Lifecycle
NixLab.Dependent.Review
NixLab.Dependent.RoundTrip
NixLab.Dependent.Schema
hs-source-dirs: src
default-language: GHC2024
ghc-options: -Wall
build-depends:
, base >=4.23 && <5
, dependent-base ^>=0.1
, text >=2.1 && <2.3