HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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