So pure. A literate Haskell word ladder program: breadth-first search through a dictionary, using the State and list monads to track the search fringe.
#haskell
Content tagged with "haskell"
Functional logfile processing. Check logs for a task running on multiple nodes at once, first with Perl’s diamond operator and hashes, then in Haskell.
Haskell type inference seems to catch an infinite loop at compile time. This HuntFunc talk walks through Hindley–Milner to show what’s really happening.
Can Haskell pattern matching spell out the rules of checkers? A literate Haskell program that rotates the board to test whether a side can still move.
If the code monkey thing doesn’t work out … My morning as guest host on WBHP’s The Morning Show with Toni & Gary: the razor wire, the booth, and the banter.
Discarding unused external modules. How ghc’s -ddump-minimal-imports option writes a minimal import list for a Haskell module, and where the result falls short.
Testing the Haskell way. Add a test program to a Cabal package with a build flag and a custom Setup.hs so cabal test runs it, plus the drawbacks.
Cracking the monads. Solving Project Euler Problem 32, pandigital products, in Haskell with Parsec and the Maybe monad, then a cleaner list-monad version.