mirror of
https://github.com/quantum9Innovation/suntheme.git
synced 2024-11-24 17:33:52 -08:00
docs: add readme
This commit is contained in:
parent
61895a9abb
commit
f79b895cc3
1 changed files with 13 additions and 0 deletions
13
README.md
Normal file
13
README.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Suntheme
|
||||
|
||||
runs a script on sunrise and sunset, written in pure haskell.
|
||||
|
||||
You may be wondering how a program written in Haskell, the purely functional
|
||||
programming language, could possibly act on the real world by running a so-called "script".
|
||||
|
||||
It's simple. We take in the entire World as an input to a pure function, the IO Monad.
|
||||
It then maps the original World to the changed World, with our desired IO actions carefully applied.
|
||||
|
||||
> From the second perspective, an IO action transforms the whole world. IO actions are actually pure, because they receive a unique world as an argument and then return the changed world.
|
||||
|
||||
See [this](https://lean-lang.org/functional_programming_in_lean/monads/io.html) for more information.
|
Loading…
Reference in a new issue