This video series is really great!
this post was submitted on 25 Aug 2023
3 points (100.0% liked)
Haskell
5 readers
1 users here now
**The Haskell programming language community.** Daily news and info about all things Haskell related: practical stuff, theory, types, libraries, jobs, patches, releases, events and conferences and more... ### Links - Get Started with Haskell
founded 2 years ago
I think pseq does have that "thunk forcing" behavior:
import GHC.Conc (pseq)
val :: Int
val = let x = error "x"
y = error "y"
in y `pseq` (x + y)
main = print val
I believe this is guaranteed to show the y
error and not the x
error.