From: simonm Date: Tue, 12 May 1998 12:45:00 +0000 (+0000) Subject: [project @ 1998-05-12 12:45:00 by simonm] X-Git-Tag: Approx_2487_patches~706 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=cdf3461f6b9f1226b53718225da552447f04cccc;p=ghc-hetmet.git [project @ 1998-05-12 12:45:00 by simonm] add a specialise pragma and remove some GENERATE_SPECS --- diff --git a/ghc/lib/std/PrelBase.lhs b/ghc/lib/std/PrelBase.lhs index 092d4df..6ef5044 100644 --- a/ghc/lib/std/PrelBase.lhs +++ b/ghc/lib/std/PrelBase.lhs @@ -234,7 +234,7 @@ ord = (fromEnum :: Char -> Int) ord_0 :: Num a => a ord_0 = fromInt (ord '0') -{-# GENERATE_SPECS subtract a{Int} #-} +{-# SPECIALISE subtract :: Int -> Int -> Int #-} subtract :: (Num a) => a -> a -> a subtract x y = y - x \end{code} @@ -689,7 +689,6 @@ const x _ = x -- function composition {-# INLINE (.) #-} -{- GENERATE_SPECS (.) a b c -} (.) :: (b -> c) -> (a -> b) -> a -> c (.) f g x = f (g x) @@ -724,7 +723,6 @@ asTypeOf = const \begin{code} data Lift a = Lift a -{- GENERATE_SPECS data a :: Lift a -} \end{code} @@ -752,7 +750,6 @@ showString = (++) showParen :: Bool -> ShowS -> ShowS showParen b p = if b then showChar '(' . p . showChar ')' else p -{- GENERATE_SPECS showList__ a -} showList__ :: (a -> ShowS) -> [a] -> ShowS showList__ showx [] = showString "[]"