Skip to content
jovanhan2 edited this page Nov 8, 2018 · 2 revisions

Overview

Most linters are simply checking

  • styling(tabs, spaces)

Questions

What is Monad?

Find and match:
    mapM, foldM, forM, replicateM, sequence, zipWithM
    not at the last line of a do statement, or to the left of >>
    Use let x = y instead of x <- return y, unless x is contained
    within y, or bound more than once in that do block.
<TEST>
yes = do mapM print a; return b -- mapM_ print a
yes = do _ <- mapM print a; return b -- mapM_ print a
no = mapM print a
no = do foo ; mapM print a
yes = do (bar+foo) -- (bar+foo)

Clone this wiki locally