In Haskell, when do we use in with let?
Short answer: Use let without in in the body of a do-block, and in the part after the | in a list comprehension. Anywhere else, use let … in …. The keyword let is used in three ways in Haskell. The first form is a let-expression. let variable = expression in expression This can be … Read more