about summary refs log blame commit diff
path: root/yants.md
blob: dcdea0bd38f778f7411a84ae5c8b6885d283386c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                                                                                      
yants
=====

This is a tiny type-checker for data in Nix, written in Nix. It doesn't have all the features I think it should have (yet), but it works and its types are composable.

## Primitives & simple polymorphism

![simple](https://i.imgur.com/hDQAQUK.png)

## Structs

![structs](https://i.imgur.com/f8jgnul.png)

## Nested structs!

![nested structs](https://i.imgur.com/O3RsHds.png)