chore: Change file layout to match repository instead of gist

This commit is contained in:
Vincent Ambo 2019-08-28 14:53:55 +01:00
parent 34a5917981
commit 6468845255
9 changed files with 41 additions and 39 deletions

40
README.md Normal file
View file

@ -0,0 +1,40 @@
yants
=====
This is a tiny type-checker for data in Nix, written in Nix.
Features:
* Checking of primitive types (`int`, `string` etc.)
* Checking polymorphic types (`option`, `list`, `either`)
* Defining & checking struct/record types
* Defining & matching enum types
* Defining & matching sum types
* Defining function signatures (including curried functions)
* Types are composable! `option string`! `list (either int (option float))`!
* Type errors also compose!
Lacking:
* Any kind of inference
* Convenient syntax for attribute-set function signatures
## Primitives & simple polymorphism
![simple](screenshots/simple.png)
## Structs
![structs](screenshots/structs.png)
## Nested structs!
![nested structs](screenshots/nested-structs.png)
## Enums!
![enums](screenshots/enums.png)
## Functions!
![functions](screenshots/functions.png)