X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=Chapters%2FPrototype.tex;h=67d23c8b2be60ee6c06f78fc73bcc18b59afc560;hp=ac4cc93e29023e8d319b54537cfa2a0f45eb968f;hb=f276067e08b153e130b305242a4e2ef87e84960a;hpb=ea10982d1bd7560c652e62516535b0b4ebe47cf6 diff --git a/Chapters/Prototype.tex b/Chapters/Prototype.tex index ac4cc93..67d23c8 100644 --- a/Chapters/Prototype.tex +++ b/Chapters/Prototype.tex @@ -666,12 +666,12 @@ instance declaration. This dictionary, as well as the binder introduced by a lambda that introduces a dictionary, have the predicate type as their type. These binders are usually named starting - with a \lam{$}. Usually the name of the type concerned is not + with a \lam{\$}. Usually the name of the type concerned is not reflected in the name of the dictionary, but the name of the type class is. The Haskell expression \hs{show True} thus becomes: \startlambda - show @Bool $dShow True + show @Bool \$dShow True \stoplambda \stopdesc @@ -681,6 +681,10 @@ here)}. \section[sec:prototype:statetype]{State annotations in Haskell} + As noted in \in{section}[sec:description:stateann], Cλash needs some + way to let the programmer explicitly specify which of a function's + arguments and which part of a function's result represent the + function's state. \fxnote{This entire section on state annotations should be reviewed} Ideal: Type synonyms, since there is no additional code overhead for