-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Angles in degrees and radians. -- -- A simple little library for dealing with geometric angles. @package AC-Angle @version 1.0 -- | Deal with angles measured in degrees or radians. -- -- Names are kept deliberately different from the standard prelude to -- avoid name clashes. module Data.Angle -- | An angle in radians. newtype Radians x Radians :: x -> Radians x -- | An angle in degrees. newtype Degrees x Degrees :: x -> Degrees x -- | Convert from radians to degrees. degrees :: Floating x => Radians x -> Degrees x -- | Convert from degrees to radians. radians :: Floating x => Degrees x -> Radians x -- | Type-class for angles. class Angle a sine :: (Angle a, Floating x) => a x -> x cosine :: (Angle a, Floating x) => a x -> x tangent :: (Angle a, Floating x) => a x -> x arcsine :: (Angle a, Floating x) => x -> a x arccosine :: (Angle a, Floating x) => x -> a x arctangent :: (Angle a, Floating x) => x -> a x instance Eq x => Eq (Degrees x) instance Ord x => Ord (Degrees x) instance Show x => Show (Degrees x) instance Num x => Num (Degrees x) instance Fractional x => Fractional (Degrees x) instance Eq x => Eq (Radians x) instance Ord x => Ord (Radians x) instance Show x => Show (Radians x) instance Num x => Num (Radians x) instance Fractional x => Fractional (Radians x) instance Angle Degrees instance Angle Radians