{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -fplugin Data.UnitsOfMeasure.Plugin #-}
module Data.UnitsOfMeasure.Defs
( MkUnit
) where
import Data.UnitsOfMeasure
[u| m, kg, s, A, K, mol, cd |]
[u| km = 1000m, g = 0.001 kg |]
[u| Hz = s^-1
, N = kg m / s^2
, Pa = N / m^2
, J = N m
, W = J / s
, C = s A
, V = W / A
, F = C / V
, ohm = V / A
|]
[u| rad = 1 1
, sr = 1 1
|]
[u| min = 60 s
, h = 3600 s
, d = 86400 s
, ha = 10000 m^2
, l = 0.001 m^3
, t = 1000 kg
, au = 149597870700 m |]
[u| ft = 100 % 328 m, in = 0.0254 m, mi = 1609.344 m, mph = mi/h |]