Skip to content

Add indented interpolated values feature #11

Open
@Martoon-00

Description

@Martoon-00

Clarification and motivation

What would be a replacement for this?:

build ... = mconcat
  [ "Error:"
  , indentF 2 $ build thing1  -- potentially multiline text
  , ""
  , "Extra:"
  , indentF 2 $ build thing2
  ]

Probably we need some special construct for this, this can look like

build ... = [int||
  Error:
    #|{thing1}

  Extra:
    #|s{thing2}
  |]

where #| stands for preserving the current indentation for the multiline text.

Acceptance criteria

  • It is possible to automatically indent the text produced during interpolation.
  • Corner cases, defaults, other use-cases and thought through.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality that may worth a new release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions