From 43242dffb867d9588bce249f02c39fe03e11aec4 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 11 Jul 2015 16:41:44 +0200 Subject: Rename Operation to Instruction More appropriate. The graph builder is essentially a small, special-purpose stack processor. --- src/Codec/Pesto/Serialize.lhs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Codec/Pesto/Serialize.lhs') 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 -- cgit v1.2.3