X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Fhaskell-symposium-talk.git;a=blobdiff_plain;f=introduction.lhs;fp=introduction.lhs;h=5cd6c0acab16f70574fedb99a49758d01648c4e6;hp=899c53450b682277efe228e228e88199ad7a0684;hb=ce4726310e0e0586d352338c1e5786758ffe05fd;hpb=9f6a6587a2e51364cebce060cfc6ef9534b0bd2e diff --git a/introduction.lhs b/introduction.lhs index 899c534..5cd6c0a 100644 --- a/introduction.lhs +++ b/introduction.lhs @@ -53,7 +53,7 @@ mealyMachine :: (State, OutputSignals) mealyMachine inputs {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} = ({-"{\color<3>[rgb]{1,0,0}"-}new_state{-"}"-}, output) where - {-"{\color<3>[rgb]{1,0,0}"-}new_state{-"}"-} = logic {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} input + {-"{\color<3>[rgb]{1,0,0}"-}new_state{-"}"-} = logic {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} input outputs = logic {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} input \end{code} } @@ -65,7 +65,7 @@ mealyMachine inputs {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} = ({-"{\color<3>[rg run func {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} [] = [] run func {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} (i:input) = o:out where - ({-"{\color<3>[rgb]{1,0,0}"-}state'{-"}"-}, o) = func {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} i - out = run func {-"{\color<3>[rgb]{1,0,0}"-}state'{-"}"-} input + ({-"{\color<3>[rgb]{1,0,0}"-}state'{-"}"-}, o) = func {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} i + out = run func {-"{\color<3>[rgb]{1,0,0}"-}state'{-"}"-} input \end{code} } \ No newline at end of file