packages feed

tilia-0.2.0.0: corpora/vendored/line-break/as-written/empty-line-under-a-short-line-out'.hs

{-# LANGUAGE QuasiQuotes #-}

module Main (main) where

short =
    fo

        -- An empty line under a line that ends left of the comment.
        a

long =
    foo

        -- The same under a line that ends right of it.
        a

rows =
    ( header
        ++ footer
    )

        -- An empty line under a closing parenthesis.
        : concatMap render items

options =
    [ flag "a"
    ]

        -- Options of this command alone.
        ++ commandFlags

alone =
    do

        -- An empty line under a do on its own line.
        x

after = do

    -- An empty line under a do at the end of a line.
    x

main = pure ()
    where
        page = [text|
  <p>A quoted page.</p>
|]

        title = "A page"