projects
/
matthijs
/
projects
/
fpprac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make testProg produce readable (non-overlapping) output.
[matthijs/projects/fpprac.git]
/
FPPrac.hs
diff --git
a/FPPrac.hs
b/FPPrac.hs
index 2a67b6e7d9a9f1904a2b0ff2e93d1357b57c3b5f..306f048001dca25e62b2864c98e2b01fda06af78 100644
(file)
--- a/
FPPrac.hs
+++ b/
FPPrac.hs
@@
-93,7
+93,7
@@
data TinaProgram = forall s. Main
testProg = Main
{ initialState = 1
, initialRequests = [GfxText red (pt 0 0) "foo", GfxText blue (pt 100 100) "bar"]
testProg = Main
{ initialState = 1
, initialRequests = [GfxText red (pt 0 0) "foo", GfxText blue (pt 100 100) "bar"]
- , eventHandler = \s e -> (s+1,[GfxText green (pt 50
50
) $ show (s,e)])
+ , eventHandler = \s e -> (s+1,[GfxText green (pt 50
(50 + 10 * s)
) $ show (s,e)])
, windowWidth = 200
, windowHeight = 200
}
, windowWidth = 200
, windowHeight = 200
}