Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
(>/) :: (Fractional x, Functor f, z ~ f x) => z -> x -> z infixl 7 Source #
(/<) :: (Fractional x, Functor f, Coercible (f x) ((f ^- 1) x)) => x -> f x -> (f ^- 1) x infixl 7 Source #
(>*<) :: (Num x, Coercible (f x) x, Coercible (f' x) x, Applicative (f >*< f')) => f x -> f' x -> (f >*< f') x infixl 7 Source #
(>/<) :: (Fractional x, Coercible (f x) x, Coercible (f' x) x, Applicative (f >/< f')) => f x -> f' x -> (f >/< f') x infixl 7 Source #
(>+<) :: (Num x, Applicative f, z ~ f x) => z -> z -> z infixl 6 Source #
(>-<) :: (Num x, Applicative f, z ~ f x) => z -> z -> z infixl 6 Source #
nthRoot :: (KnownNat n, Floating x, Functor f, Coercible (f x) (NthRoot n f x)) => Proxy n -> f x -> NthRoot n f x Source #
type SquareRoot d = NthRoot 2 d Source #
squareRoot :: (Coercible (f x) (SquareRoot f x), Floating x, Functor f) => f x -> SquareRoot f x Source #
hypercube :: (KnownNat n, Num x, Functor f, Coercible (f x) ((f ^+ n) x)) => Proxy n -> f x -> (f ^+ n) x Source #
type family Plus a b where ... Source #
Plus (Negative 0) x = x | |
Plus x (Negative 0) = x | |
Plus (Positive 0) x = x | |
Plus x (Positive 0) = x | |
Plus (Positive m) (Positive n) = Positive (m + n) | |
Plus (Positive m) (Negative n) = Plus (Positive (m - 1)) (Negative (n - 1)) | |
Plus (Negative m) (Positive n) = Plus (Negative (m - 1)) (Positive (n - 1)) | |
Plus (Negative m) (Negative n) = Negative (m + n) |
type family d >*< d' where ... infixl 7 Source #
(SI i ii iii iv v vi vii) >*< (SI i' ii' iii' iv' v' vi' vii') = Pretty (SI (Plus i i') (Plus ii ii') (Plus iii iii') (Plus iv iv') (Plus v v') (Plus vi vi') (Plus vii vii')) | |
(Planck i ii iii iv v) >*< (Planck i' ii' iii' iv' v') = Pretty (Planck (Plus i i') (Plus ii ii') (Plus iii iii') (Plus iv iv') (Plus v v')) |
type family d >/< d' where ... infixl 7 Source #
(SI i ii iii iv v vi vii) >/< (SI i' ii' iii' iv' v' vi' vii') = Pretty (SI (Minus i i') (Minus ii ii') (Minus iii iii') (Minus iv iv') (Minus v v') (Minus vi vi') (Minus vii vii')) | |
(Planck i ii iii iv v) >/< (Planck i' ii' iii' iv' v') = Pretty (Planck (Minus i i') (Minus ii ii') (Minus iii iii') (Minus iv iv') (Minus v v')) |
type family Pretty d where ... Source #
Pretty (SI N2 N1 P3 P2 Z Z Z) = Siemens | |
Pretty (SI N2 N1 P4 P2 Z Z Z) = Farad | |
Pretty (SI N2 Z Z Z Z Z P1) = Lux | |
Pretty (SI N1 P1 N2 Z Z Z Z) = Pascal | |
Pretty (SI Z Z N1 Z Z P1 Z) = Katal | |
Pretty (SI Z Z Z Z Z Z Z) = One | |
Pretty (SI Z Z Z Z Z Z P1) = Candela | |
Pretty (SI Z Z Z Z Z P1 Z) = Mole | |
Pretty (SI Z Z Z Z P1 Z Z) = Kelvin | |
Pretty (SI Z Z Z P1 Z Z Z) = Ampere | |
Pretty (SI Z Z P1 Z Z Z Z) = Second | |
Pretty (SI Z Z P1 P1 Z Z Z) = Coulomb | |
Pretty (SI Z P1 N2 N1 Z Z Z) = Tesla | |
Pretty (SI Z P1 Z Z Z Z Z) = Kilogram | |
Pretty (SI P1 Z Z Z Z Z Z) = Metre | |
Pretty (SI P1 P1 N2 Z Z Z Z) = Newton | |
Pretty (SI P2 P1 N3 N2 Z Z Z) = Ohm | |
Pretty (SI P2 P1 N3 N1 Z Z Z) = Volt | |
Pretty (SI P2 P1 N3 Z Z Z Z) = Watt | |
Pretty (SI P2 P1 N2 N2 Z Z Z) = Henry | |
Pretty (SI P2 P1 N2 N1 Z Z Z) = Weber | |
Pretty (SI P2 P1 N2 Z Z Z Z) = Joule | |
Pretty d = d |