packages feed

MicroHs-0.17.4.0 / lib / Data / Ratio_Type.hs

module Data.Ratio_Type(module Data.Ratio_Type) whereimport qualified Prelude()              -- do not import Preludeimport Primitivesimport Data.Integer_Typeimport {-# SOURCE #-} Data.Typeabledata Ratio a = !a :% !atype Rational = Ratio Integer_integerToRational :: Integer -> Rational_integerToRational x = x :% (1::Integer)_mkRational :: Integer -> Integer -> Rational_mkRational = (:%)