Jef*_*att 0 monads haskell functor applicative
我最近在Exercism上为ISBN Verifier练习编写了一个解决方案,当我通过pointfree.io运行这个函数时:
\c -> isDigit c || c == 'X'
Run Code Online (Sandbox Code Playgroud)
我回来了:
liftM2 (||) isDigit ('X' ==)
Run Code Online (Sandbox Code Playgroud)
为什么pointfree.io选择liftM2从Control.Monad,而不是liftA2从Control.Applicative?