{-# LANGUAGE TemplateHaskell, TypeFamilies, TypeOperators #-}
module Data.Units.Imperial.Misc where
import Data.Metrology
import Data.Metrology.TH
import Data.Units.SI
import Data.Units.Imperial.Nautical
import Language.Haskell.TH
declareDerivedUnit "Knot" [t| NauticalMile :/ Hour |] 1 (Just "kn")
declareDerivedUnit "InchOfWater" [t| Pascal |] 249.08891 (Just "inAq")
declareDerivedUnit "PoundForce" [t| Newton |] 4.4482216152605 (Just "lbf")
declareDerivedUnit "TonForce" [t| PoundForce |] 2240 (Just "tf")
declareDerivedUnit "Horsepower" [t| Watt |] 745.69987158227022 (Just "hp")
declareDerivedUnit "BritishThermalUnit" [t| Joule |] 1055.05585257348 (Just "Btu")
declareDerivedUnit "Therm" [t| BritishThermalUnit |] 100000 (Just "thm")
declareDerivedUnit "FootCandle" [t| Lux |] 10.763910416709 (Just "fc")
declareDerivedUnit "Fahrenheit" [t| Kelvin |] (5/9) (Just "°F")
speeds :: [Name]
speeds :: [Name]
speeds = [ ''Knot ]
temperatures :: [Name]
temperatures :: [Name]
temperatures = [ ''Fahrenheit ]
illuminances :: [Name]
illuminances :: [Name]
illuminances = [ ''FootCandle ]
forces :: [Name]
forces :: [Name]
forces = [ ''PoundForce, ''TonForce ]
energies :: [Name]
energies :: [Name]
energies = [ ''FootPoundForce, ''BritishThermalUnit, ''Therm ]
powers :: [Name]
powers :: [Name]
powers = [ ''Horsepower ]