mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 08:17:40 +03:00
Why won't roc format let me have blank lines between comments?!
In Elm and Haskell I often like to break up a file into sections using big comments It should be OK for files to get big in these languages, as discussed in [The life of a file](https://www.youtube.com/watch?v=XpDsk374LDE) And when they do, I want blank lines!
This commit is contained in:
parent
3ca64462f1
commit
1cda52ed19
@ -65,7 +65,6 @@ Handler state := [
|
||||
# -------------------------------
|
||||
# VIEW FUNCTIONS
|
||||
# -------------------------------
|
||||
|
||||
## Define an HTML Element
|
||||
element : Str -> (List (Attribute state), List (Html state) -> Html state)
|
||||
element = \tagName ->
|
||||
@ -105,7 +104,6 @@ attrSize = \attr ->
|
||||
# -------------------------------
|
||||
# STATIC HTML
|
||||
# -------------------------------
|
||||
|
||||
appendRenderedStatic : Str, Html [] -> Str
|
||||
appendRenderedStatic = \buffer, node ->
|
||||
when node is
|
||||
@ -155,7 +153,6 @@ appendRenderedStaticAttr = \{ buffer, styles }, attr ->
|
||||
# -------------------------------
|
||||
# TRANSLATE STATE TYPE
|
||||
# -------------------------------
|
||||
|
||||
# translate : Html c, (p -> c), (c -> p) -> Html p # TODO: use this type signature when it no longer triggers a type checker bug
|
||||
translate : Html _, (_ -> _), (_ -> _) -> Html _
|
||||
translate = \node, parentToChild, childToParent ->
|
||||
@ -249,7 +246,6 @@ keepStaticAttr = \attr ->
|
||||
# -------------------------------
|
||||
# EVENT HANDLING
|
||||
# -------------------------------
|
||||
|
||||
insertHandler : List (Result (Handler state) [NoHandler]), Handler state -> { index : Nat, lookup : List (Result (Handler state) [NoHandler]) }
|
||||
insertHandler = \lookup, newHandler ->
|
||||
when List.findFirstIndex lookup Result.isErr is
|
||||
|
Loading…
Reference in New Issue
Block a user