vimeta-0.2.5.1: Frontend for video metadata tagging tools

Safe HaskellSafe
LanguageHaskell2010

Vimeta.Core.Format

Synopsis

Documentation

type FormatTable = Map Char (Maybe Text) Source #

Mapping of format characters to their possible replacement text.

fromFormatString Source #

Arguments

:: FormatTable

Format character mapping.

-> String

Name of format string.

-> Text

Input text.

-> Either String Text

Output text or error.

Replace format characters prefixed with a % with the replacement text found in the given Map.

formatYear :: Maybe Day -> Maybe Text Source #

Format a Day displaying just the year.

formatFullDate :: Maybe Day -> Maybe Text Source #

Format a Day using the XML schema notation.