Open lue-bird opened 2 months ago
Usually formatting things once should result in the same as formatting things twice in a row. Here's 2 exceptions I've encountered:
One: Parenthesized if-then-else in the else branch. For example:
a = if True then 0 else (if False then 1 else 2 )
first gets formatted to
a = if True then 0 else if False then 1 else 2
then finally
(edit: duplicate of https://github.com/avh4/elm-format/issues/634, sorry!)
Two: Having @docs TypeExposingVariants(..), elm-format correctly removes the (..) but then doesn't reorder the that member in the exposing list according to the docs tags. On another run, these get grouped correctly.
@docs TypeExposingVariants(..)
elm-format
(..)
Usually formatting things once should result in the same as formatting things twice in a row. Here's 2 exceptions I've encountered:
One: Parenthesized if-then-else in the else branch. For example:
first gets formatted to
then finally
(edit: duplicate of https://github.com/avh4/elm-format/issues/634, sorry!)
Two: Having
@docs TypeExposingVariants(..)
,elm-format
correctly removes the(..)
but then doesn't reorder the that member in the exposing list according to the docs tags. On another run, these get grouped correctly.