Fpunfold

Fpunfold

fpunfold is a resource for learning Functional Programming and grow yourself as a Programmer. Its' Free!

Dynamic Programming in Haskell 09/01/2022

New post after a while! Here we see how Dynamic Programming looks like in Haskell!
https://fpunfold.com/2022/01/09/haskell-dp.html

Dynamic Programming in Haskell In today’s post we’ll see how Dynamic Programming algorithms can be implemented in Haskell in an idiomatic way.

08/06/2020

Today's post features Monad-friendly pure functions. Pure functions returning some common Monads such as Either are often not compatible with monadic contexts and calling them from within other monads is a hassle due to the lifting involved. Checkout out post that describes a way to tweak these functions to make them work with other Monads!

Pure functions and Monads - fpunfold Pure functions are not inherently compatible with monads. We can tweak them to use Haskell typeclasses to make them more generic and thus compatible with Monadic contexts.

Making a Calculator with Applicative Parsec in Haskell 18/05/2020

style of programming in has a very feel to it that we love. Here's our take at a simple calculator app using written in style.

Making a Calculator with Applicative Parsec in Haskell Today's post highlights the succinctness of Applicative style of coding in Haskell. We'll make a simple Calculator app using Parsec library. We love the functional feel of Applicative code. Do you?

Applicative Functor for Beginners 12/05/2020

are that offer some more functionality over regular functors. They allow applying arbitrary functions to arguments wrapped in Applicatives while maintaining their context. Find more about Applicatives at below.

Applicative Functor for Beginners Applicative functors are functors that offer a few more helpful properties over simple functors. They introduce function that applies any arbitrary function on arguments wrapped in Applicative contexts while merging the contexts together. Applicatives are often useful in parsing.