Module

Whine.Core.CaseBranchIndentation

Package
purescript-whine-core
Repository
collegevine/purescript-whine

Checks that in a case expression all branches are either single-line or multi-line, not a mix.

-- Good:
case x of
  Just y -> y
  Nothing -> 0

-- Good:
case x of
  Just y ->
    y
  Nothing ->

-- Bad:
case x of
  Just y -> y
  Nothing ->
    0

#rule Source

rule :: JSON -> Rule