distance-0.1.0.0: Useful distance datatype and functions

Safe HaskellSafe
LanguageHaskell2010

Data.Distance

Synopsis

Documentation

data Distance Source #

An abstract distance. Use the provided smart constructors to create a meaningful distance. Note that on first sight a Num instance might seem desirable, but this would defeat the purpose of having transparent and explicitly constructed distances due to fromInteger.