“Monads are NOT about side effects. They are about composition. There are ways to express side effects using pure functions. But if you want to compose them, you need a monad”. Watch this video:
Part 1: Compare 3 paradigms:
- Object- Oriented
- Functional Programming
Introduction to Haskell
Part 2: Example – The 8 Queens Problem
Note: A simpler Haskell coding here.
Morphism: 态射 (Mapping : 映射)
Functor (F): 函子
Facebook rewrote the SPAM rule-based AI engine (“Sigma“) with Haskell functional programming to filter 1 million requests / second.
The Myths about Haskell : Academia, Not for Production ?
Why Facebook chooses Haskell Functional language for Spam rule engine ?