drasil-docLang-0.1.26.0: A framework for code and document generation for scientific software - Document Language SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Drasil.DocumentLanguage.Units

Description

Helpers for dealing with formatting of Units

Synopsis

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".