From ee3119c6c929c9e386a656a92217e604e77f975d Mon Sep 17 00:00:00 2001 From: Aearnus Date: Sat, 26 May 2018 01:56:48 -0700 Subject: [PATCH] more readme --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 98b967b..81dcf9a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ _... shut up, show me the code!_ -Here's some example code utilizing all of the features of the DSL: +Here's some example code utilizing all of the features of the eDSL: ```haskell import SixtyFiveOhTwo.Instruction @@ -20,6 +20,12 @@ myProgram = do define "accumulatorLoadNStore" accumulatorLoadNStore call "accumulatorLoadNStore" ``` -(taken from main.hs) + +Here's a fun little snippet that adds 10 to the accumulator using Haskell Monad Magic: + +```haskell +test3f2 :: Instruction +test3f2 = replicateM_ 10 (inc (Accumulator)) +``` More documentation coming soon!