summaryrefslogtreecommitdiff
path: root/rts/mmtk/notes.hs
diff options
context:
space:
mode:
Diffstat (limited to 'rts/mmtk/notes.hs')
-rw-r--r--rts/mmtk/notes.hs22
1 files changed, 22 insertions, 0 deletions
diff --git a/rts/mmtk/notes.hs b/rts/mmtk/notes.hs
new file mode 100644
index 0000000000..a490f8b6af
--- /dev/null
+++ b/rts/mmtk/notes.hs
@@ -0,0 +1,22 @@
+nthPrime :: Integer -> Integer
+nthPrine n = -- computes nth prime
+
+oneThousand :: Integer
+oneThousand = 1000
+
+thousandthPrime :: Integer
+thousandthPrime = nthPrime oneThousand
+
+f x y = ...
+caf1 = ...
+caf2 = ...
+caf3 = f caf1 caf2
+
+main = do
+ print thousandthPrime
+
+ -- do something else
+
+ print thousandthPrime
+
+ -- continues executing