summaryrefslogtreecommitdiff
path: root/ghc/CONTRIB/pphs/docs/leftindent2.hs
blob: 9d9fcd07c1253adb6f14fdc5077c279939e8e850 (plain)
1
2
3
4
5
6
eval :: GmState -> [GmState]
eval state = state: restStates
             where
             restStates | gmFinal state = []
                        | otherwise = eval nextState
             nextState  = doAdmin (step state)