si-bytes-0.1: Byte with type-level units (e.g. B, KB, MB, ...).
Safe HaskellNone
LanguageHaskell2010

Data.Bytes.Formatting.Direction

Description

Provides formatters for Direction.

Since: 0.1

Synopsis

Documentation

data DirectionFormat Source #

Determines how to format the direction units.

Examples

Expand
>>> def @DirectionFormat
DirectionFormatLong

Since: 0.1

Constructors

DirectionFormatShort

Since: 0.1

DirectionFormatLong

Since: 0.1

data DirectedFormatter Source #

Formats bytes over floating types.

Examples

Expand
>>> def @DirectedFormatter
MkDirectedFormatter {caseFormat = CaseFormatLower, directionFormat = DirectionFormatLong}

Since: 0.1

formatDirection :: Directed a => DirectedFormatter -> a -> Text Source #

Formats a directed value with the given formatter.

Since: 0.1

directedFormatterUnix :: DirectedFormatter Source #

"unix"-style formatter:

  • Upper case.
  • Short spelling.

For example: 7 U.

Since: 0.1

directedFormatterVerbose :: DirectedFormatter Source #

Verbose formatter:

  • Lower case.
  • Full spelling.

For example: 7 down.

Since: 0.1