From: simonmar Date: Mon, 17 Nov 2003 14:28:49 +0000 (+0000) Subject: [project @ 2003-11-17 14:28:49 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~244 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=69c5228776f837d5d7276ff2953c4a98b1908915;p=ghc-hetmet.git [project @ 2003-11-17 14:28:49 by simonmar] GC dead code. --- diff --git a/ghc/compiler/basicTypes/BasicTypes.lhs b/ghc/compiler/basicTypes/BasicTypes.lhs index cb08941..fbc6bc8 100644 --- a/ghc/compiler/basicTypes/BasicTypes.lhs +++ b/ghc/compiler/basicTypes/BasicTypes.lhs @@ -14,17 +14,15 @@ types that \begin{code} module BasicTypes( - Version, bumpVersion, initialVersion, bogusVersion, + Version, bumpVersion, initialVersion, Arity, DeprecTxt, - Unused, unused, - Fixity(..), FixityDirection(..), defaultFixity, maxPrecedence, - arrowFixity, negateFixity, negatePrecedence, + negateFixity, compareFixity, IPName(..), ipNameName, mapIPName, @@ -37,7 +35,7 @@ module BasicTypes( Boxity(..), isBoxed, - TupCon(..), tupParens, tupleParens, + TupCon(..), tupleParens, OccInfo(..), seqOccInfo, isFragileOcc, isOneOcc, isDeadOcc, isLoopBreaker, @@ -63,22 +61,6 @@ import Outputable %************************************************************************ %* * -\subsection[Unused]{Unused} -%* * -%************************************************************************ - -Used as a placeholder in types. - -\begin{code} -type Unused = () - -unused :: Unused -unused = error "Unused is used!" -\end{code} - - -%************************************************************************ -%* * \subsection[Arity]{Arity} %* * %************************************************************************ @@ -97,9 +79,6 @@ type Arity = Int \begin{code} type Version = Int -bogusVersion :: Version -- Shouldn't look at these -bogusVersion = error "bogusVersion" - bumpVersion :: Version -> Version bumpVersion v = v+1 @@ -181,9 +160,6 @@ defaultFixity = Fixity maxPrecedence InfixL negateFixity :: Fixity negateFixity = Fixity negatePrecedence InfixL -- Precedence of unary negate is wired in as infixl 6! -arrowFixity :: Fixity -- Fixity of '->' in types -arrowFixity = Fixity 0 InfixR - negatePrecedence :: Int negatePrecedence = 6 \end{code} @@ -316,9 +292,6 @@ data TupCon = TupCon Boxity Arity instance Eq TupCon where (TupCon b1 a1) == (TupCon b2 a2) = b1==b2 && a1==a2 -tupParens :: TupCon -> SDoc -> SDoc -tupParens (TupCon b _) p = tupleParens b p - tupleParens :: Boxity -> SDoc -> SDoc tupleParens Boxed p = parens p tupleParens Unboxed p = ptext SLIT("(#") <+> p <+> ptext SLIT("#)")