Rational numbers, with numerator and denominator of some Integral type.
Note that Ratio's instances inherit the deficiencies from the type
parameter's. For example, Ratio Natural's Num instance has similar
problems to Numeric.Natural.Natural's.
Constructors
a :% a
Instances17NFData1, Lift, Enum, Eq, Fractional, Data, …
NFData1 RatioDefined in deepseq-1.5.0.0 · Control.DeepSeqAvailable on
base >=4.9Integral a => Lift (Ratio a)Defined in template-haskell-2.22.0.0 · Language.Haskell.TH.SyntaxIntegral a => Enum (Ratio a)Defined in ghc-internal-9.1003.0 · GHC.Internal.RealEq a => Eq (Ratio a)Defined in ghc-internal-9.1003.0 · GHC.Internal.RealIntegral a => Fractional (Ratio a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Real(Data a, Integral a) => Data (Ratio a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Data.DataIntegral a => Num (Ratio a)Defined in ghc-internal-9.1003.0 · GHC.Internal.RealIntegral a => Ord (Ratio a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Real(Integral a, Read a) => Read (Ratio a)Defined in ghc-internal-9.1003.0 · GHC.Internal.ReadIntegral a => Real (Ratio a)Defined in ghc-internal-9.1003.0 · GHC.Internal.RealIntegral a => RealFrac (Ratio a)Defined in ghc-internal-9.1003.0 · GHC.Internal.RealShow a => Show (Ratio a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Real(Storable a, Integral a) => Storable (Ratio a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.StorableNFData a => NFData (Ratio a)Defined in deepseq-1.5.0.0 · Control.DeepSeq(Binary a, Integral a) => Binary (Ratio a)Defined in binary-0.8.9.3 · Data.Binary.ClassHashable a => Hashable (Ratio a)Defined in hashable-1.4.7.0 · Data.Hashable.ClassIntegral a => Default (Ratio a)Defined in data-default-0.8.0.1 · Data.Default.Internal