about summary refs log tree commit diff
path: root/scratch
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-07-14T21·28+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-07-14T21·28+0100
commitfeb74b3091be31700b20d868bfd63e709b1c65a3 (patch)
tree3598341ec0327367118d781ccbec6335e8f1a676 /scratch
parente5abc3d675002803324e34c98009661b2dda208a (diff)
Complete exercises for "Non-Strictness" chapter
I completed most of the exercises for this enlightening chapter in ghci.
Diffstat (limited to 'scratch')
-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)