Bargains! PROMOTIONS

Close Notification

Your cart does not contain any items

Haskell Brain Teasers

Exercise Your Mind

Rebecca Skinner Michael Swaine Miki Tebeka

$59.99

Paperback

Forthcoming
Pre-Order now

QTY:

English
The Pragmatic Programmers
07 May 2026
Deepen your Haskell knowledge, sharpen your functional programming skills, and just have fun with 25 functional programming puzzles to tie your brain in knots.

Challenge and exercise your functional programming knowledge by tackling these 20 fun, funky, and functional puzzles on Haskell programming topics such as lazy evaluation, Haskell syntax, type classes, and the type system. Gain new insight into why Haskell is the way it is. Build mind-bending self-referential and circular data structures, unpick the seams of reality with unsafePerformIO, build enhanced DSLs with QualifiedDo, and refactor without fear of the dreaded monomorphism restriction. Review or get introduced to Haskell's common quirks such as the unary minus and pattern guards while mastering newer language features up to GHC 9.12, including linear arrows and Or Patterns.

Employ powerful techniques and recognize common pitfalls as you solve fiendish puzzles across five different topic areas.

Don't sleep on the lazy evaluation puzzles: they'll challenge you to predict the behavior of programs that rely on laziness in unexpected ways. Think syntax and language extensions puzzles should be easy? Think again as you deal with the perversity of the unary minus operator, or puzzles based on new extensions like QualifiedDo. Prepare to be perplexed with Type Class puzzles on ad-hoc polymorphism, deriving strategies, and record fields. Want more? Try mixing classic ambiguous type puzzles with advanced new features like linear types.

After trying your hand at each puzzle, read through the solution to get more insight into key Haskell features, and use the references to build a reading list to dive deeper into new areas of the language.
By:  
Edited by:  
Series edited by:  
Imprint:   The Pragmatic Programmers
Country of Publication:   United States
Edition:   New edition
Dimensions:   Height: 234mm,  Width: 190mm, 
ISBN:   9798888651902
Pages:   100
Publication Date:  
Audience:   Professional and scholarly ,  Undergraduate
Format:   Paperback
Publisher's Status:   Forthcoming
Introduction Lazy Evaluation Looking for a Needle in a Stack of Infinities Haskell for Very Full Stack Developers Say Cheese Diving Head First into a Bottomless Pit The Least You Can Possibly Do Do You Even Lift? Syntax and Language Extensions Oh Em Dash Playing with Matches Many Roads, One Destination A View of the Future FQDN - Fully Qualified Do Notation Type Classes Traversing Tuples A Slightly Off-White Hat If At First You Don’t Succeed, Trie, Trie Again The Type System Round Trip Tickets A Grand Un-Unified Theory Non-Functional Dependencies Time Flies Like an Arrow Popular Libraries The Atomic Age Setters, and Other Kinds of Dogs

Rebecca Skinner is the author of Effective Haskell, and a software engineer with more than 10 years of experience in Haskell and functional programming across industries including fintech, security, and data science. She currently volunteers as a member of the Haskell.org committee.

See Also