about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--scratch/haskell-programming-from-first-principles/non-strictness.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/scratch/haskell-programming-from-first-principles/non-strictness.hs b/scratch/haskell-programming-from-first-principles/non-strictness.hs
new file mode 100644
index 000000000000..42608fb0c961
--- /dev/null
+++ b/scratch/haskell-programming-from-first-principles/non-strictness.hs
@@ -0,0 +1,6 @@
+module NonStrictnessScratch where
+
+x = undefined
+y = "blah"
+main = do
+  print $ snd (x, x `seq` y)