Commit 88251a62 authored by Ian Lynagh's avatar Ian Lynagh

Make primetest main be IO () so ghci doesn't print the result

parent 46430cc1
......@@ -51,7 +51,8 @@ Manchester M13 9PL, UK.}
Let's begin by giving Lester's line based command intepreter for
programs with @state@.
> main = getContents >>= \ cts -> sequence (map putStr (process (lines cts)))
> main :: IO ()
> main = getContents >>= \ cts -> mapM_ putStr (process (lines cts))
The @process@ function takes a list of input lines and produces a list
of output lines.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment