How do you use Control.Applicative to write cleaner Haskell?

后端 未结 3 1235
野趣味
野趣味 2020-12-12 10:49

In a recent answer to a style question, I wrote

main = untilM (isCorrect 42) (read `liftM` getLine)

and

isCorrect num guess         


        
3条回答
提交回复
热议问题