1
1
mirror of https://github.com/coot/free-category.git synced 2024-11-23 00:56:58 +03:00

Added README

This commit is contained in:
Marcin Szamotulski 2019-09-29 13:48:32 +01:00
parent 6702b0974d
commit 13bc4de0dc

21
examples/README.md Normal file
View File

@ -0,0 +1,21 @@
Example State Machine using 'EffCat'
The example state machine is inspired by
`State Machines All The Way Down` by Edwin Bradly, 2017
https://www.youtube.com/watch?v=xq7ZuSRgCR4
It allows to login, access a secret token and logout.
The secret token can only be accessed upon successful login. The
implementation type checks this requirement.
Run quickcheck tests and an example program:
```
cabal run examples
+++ OK, passed 100 tests.
Provide a password:
123456
Provide a password:
password
secret: Hello saylor!
```