HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

ModulePyF-0.11.5.0Haskell2010

PyF

A lot of quasiquoters to format and interpolate string expressions.

Contents
  1. Whitespace utilities
  2. Configuration
Synopsis
  • PackagePyF-0.11.5.0
  • Exports12
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePyF.hs
valuefmt :: QuasiQuoter

Generic formatter, can format an expression to any t as long as t is an instance of IsString.

module PyF.Class

Whitespace utilities

Removes the trailing whitespace of a string.

  • First line is ignored if it only contains whitespaces

  • All other line common indentation is removed, ignoring lines with only whitespaces.

Example1 expression
trimIndent "\n   hello\n   - a\n   - b\n   ""hello\n- a\n- b\n"

See fmtTrim for a quasiquoter with this behavior.

Configuration