concept functional programming in category haskell

appears as: functional programming
Haskell in Depth

This is an excerpt from Manning's book Haskell in Depth.

There is a consensus within the Haskell community on the role of pure functions. We can get most of the advantages of functional programming when we use pure functions as much as possible. They are easier to combine with other functions. They cannot break annything in other parts of the program. We can also reason about their correctness.

Functional programming, in general, simplifies this approach due to a clear separation of code (functions) and data. We could write function signatures (with undefined) in their bodies, then write tests, run them to see how everything is broken, and then write functions bodies.

Get Programming with Haskell

This is an excerpt from Manning's book Get Programming with Haskell.

  • Explain the benefits of functional programming
  • The first topic you need to understand when learning Haskell is, what is functional programming? Functional programming has a reputation for being a challenging topic to master. Although this is undoubtedly true, the foundations of functional programming are surprisingly straightforward. The first thing you need to learn is what it means to have a function in a functional programming language. You likely already have a good idea of what using a function means. In this lesson, you’ll see the simple rules that functions must obey in Haskell that not only make your code easier to reason about, but also lead to entirely new ways of thinking about programming.