-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Useful distance datatype and functions
--   
--   A data type for distances with some useful utility functions
@package distance
@version 0.1.0.0

module Data.Distance

-- | An abstract distance. Use the provided smart constructors to create a
--   meaningful distance. Note that on first sight a <a>Num</a> instance
--   might seem desirable, but this would defeat the purpose of having
--   transparent and explicitly constructed distances due to
--   <a>fromInteger</a>.
data Distance
meters :: Double -> Distance
centimeters :: Double -> Distance
millimeters :: Double -> Distance
kilometers :: Double -> Distance
toMeters :: Distance -> Double
toCentimeters :: Distance -> Double
toMillimeters :: Distance -> Double
toKilometers :: Distance -> Double
instance GHC.Classes.Ord Data.Distance.Distance
instance GHC.Classes.Eq Data.Distance.Distance
instance GHC.Show.Show Data.Distance.Distance
instance GHC.Base.Monoid Data.Distance.Distance
