column-limit

DescriptionMax line length for automatic line breaking
Options
  • none
  • Any non-negative integer
Defaultnone
Ormolunone
Sincev0.12.0.0

If set to a number, fourmolu will try to break up lines longer than that many characters.

WARNING: Setting this option may break idempotence.

Examples

rootUsers :: [String]
rootUsers = ["root"]

adminUsers :: [String]
adminUsers = ["hunter2", "elon.musk", "simon.peyton.jones"]

regularUsers :: [String]
regularUsers = ["alice", "bob", "charlie", "david", "eve", "felicia", "greg", "hailey", "isaac"]
rootUsers :: [String]
rootUsers = ["root"]

adminUsers :: [String]
adminUsers =
    [ "hunter2"
    , "elon.musk"
    , "simon.peyton.jones"
    ]

regularUsers :: [String]
regularUsers =
    [ "alice"
    , "bob"
    , "charlie"
    , "david"
    , "eve"
    , "felicia"
    , "greg"
    , "hailey"
    , "isaac"
    ]
rootUsers :: [String]
rootUsers = ["root"]

adminUsers :: [String]
adminUsers = ["hunter2", "elon.musk", "simon.peyton.jones"]

regularUsers :: [String]
regularUsers =
    [ "alice"
    , "bob"
    , "charlie"
    , "david"
    , "eve"
    , "felicia"
    , "greg"
    , "hailey"
    , "isaac"
    ]

For more examples, see the test files.