hsdev-0.1.3.2: Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references etc.

Safe HaskellNone
LanguageHaskell98

Text.Format

Description

Format module

"My name is $, I am ${age} years old, I am from $" %~ ("Vasya" % ("age" %= 20) % "Moscow")
"My name is Vasya, I am 20 years old"

Documentation

class Format a where Source

Methods

format :: a -> String Source

class Hole a where Source

Methods

hole :: a -> FormatArgs Source

Instances

(%~) :: Hole a => String -> a -> Either String String infixr 1 Source

(~~) :: Hole a => String -> a -> String infixr 1 Source

(%) :: (Hole a, Hole b) => a -> b -> FormatArgs infixr 5 Source

(%=) :: Format a => String -> a -> (String, String) infixr 1 Source