diff options
author | William Carroll <wpcarro@gmail.com> | 2020-07-14T21·28+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-07-14T21·28+0100 |
commit | feb74b3091be31700b20d868bfd63e709b1c65a3 (patch) | |
tree | 3598341ec0327367118d781ccbec6335e8f1a676 /scratch | |
parent | e5abc3d675002803324e34c98009661b2dda208a (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.hs | 6 |
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) |