summaryrefslogtreecommitdiff
path: root/src/Codec/Pesto/Serialize.lhs
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-07-11 16:41:44 +0200
committerLars-Dominik Braun <lars@6xq.net>2015-07-11 16:44:52 +0200
commit43242dffb867d9588bce249f02c39fe03e11aec4 (patch)
tree5593941f4c0666c0626b1571cd23bf2944307cc9 /src/Codec/Pesto/Serialize.lhs
parentd2c05dd1c4def5406117695c07cfb6e8470d1934 (diff)
downloadpesto-43242dffb867d9588bce249f02c39fe03e11aec4.tar.gz
pesto-43242dffb867d9588bce249f02c39fe03e11aec4.tar.bz2
pesto-43242dffb867d9588bce249f02c39fe03e11aec4.zip
Rename Operation to Instruction
More appropriate. The graph builder is essentially a small, special-purpose stack processor.
Diffstat (limited to 'src/Codec/Pesto/Serialize.lhs')
-rw-r--r--src/Codec/Pesto/Serialize.lhs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Codec/Pesto/Serialize.lhs b/src/Codec/Pesto/Serialize.lhs
index b3cce7c..6b99b4b 100644
--- a/src/Codec/Pesto/Serialize.lhs
+++ b/src/Codec/Pesto/Serialize.lhs
@@ -17,13 +17,12 @@ Serializing
- Add instance for graph
- use :math:`\mathcal{O}(1)` string builder
-
-Finally transform linear stream of operations into a string again:
+Finally transform linear stream of instructions into a string again:
> instance Serializeable a => Serializeable [a] where
> serialize ops = unlines $ map serialize ops
-> instance Serializeable Operation where
+> instance Serializeable Instruction where
> serialize (Annotation s) = quote '(' ')' s
> serialize (Ingredient q) = '+':serialize q
> serialize (Tool q) = '&':serialize q