Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Helpers for dealing with formatting of Units
Synopsis
- toSentence :: MayHaveUnit u => u -> Sentence
- toSentenceUnitless :: MayHaveUnit u => u -> Sentence
Documentation
toSentence :: MayHaveUnit u => u -> Sentence Source #
Get the units, if they exist, and wrap them as a Sentence
. Default value is "--".
toSentenceUnitless :: MayHaveUnit u => u -> Sentence Source #
Similar to toSentence
, except default value is "Unitless".