summaryrefslogtreecommitdiff
path: root/ghc/CONTRIB/pphs/docs/leftindent2.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/CONTRIB/pphs/docs/leftindent2.hs')
-rw-r--r--ghc/CONTRIB/pphs/docs/leftindent2.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/ghc/CONTRIB/pphs/docs/leftindent2.hs b/ghc/CONTRIB/pphs/docs/leftindent2.hs
new file mode 100644
index 0000000000..9d9fcd07c1
--- /dev/null
+++ b/ghc/CONTRIB/pphs/docs/leftindent2.hs
@@ -0,0 +1,6 @@
+eval :: GmState -> [GmState]
+eval state = state: restStates
+ where
+ restStates | gmFinal state = []
+ | otherwise = eval nextState
+ nextState = doAdmin (step state)