Commit 836536c3 by Zachary Snow

remove newly unneeded Ord instances

parent 23d82c62
...@@ -61,7 +61,7 @@ data Expr ...@@ -61,7 +61,7 @@ data Expr
| Inside Expr [Expr] | Inside Expr [Expr]
| MinTypMax Expr Expr Expr | MinTypMax Expr Expr Expr
| Nil | Nil
deriving (Eq, Ord) deriving Eq
instance Show Expr where instance Show Expr where
show (Nil ) = "" show (Nil ) = ""
...@@ -125,7 +125,7 @@ instance Show Expr where ...@@ -125,7 +125,7 @@ instance Show Expr where
data Args data Args
= Args [Expr] [(Identifier, Expr)] = Args [Expr] [(Identifier, Expr)]
deriving (Eq, Ord) deriving Eq
instance Show Args where instance Show Args where
show (Args pnArgs kwArgs) = '(' : commas strs ++ ")" show (Args pnArgs kwArgs) = '(' : commas strs ++ ")"
...@@ -137,7 +137,7 @@ data PartSelectMode ...@@ -137,7 +137,7 @@ data PartSelectMode
= NonIndexed = NonIndexed
| IndexedPlus | IndexedPlus
| IndexedMinus | IndexedMinus
deriving (Eq, Ord) deriving Eq
instance Show PartSelectMode where instance Show PartSelectMode where
show NonIndexed = ":" show NonIndexed = ":"
...@@ -148,7 +148,7 @@ data DimsFn ...@@ -148,7 +148,7 @@ data DimsFn
= FnBits = FnBits
| FnDimensions | FnDimensions
| FnUnpackedDimensions | FnUnpackedDimensions
deriving (Eq, Ord) deriving Eq
data DimFn data DimFn
= FnLeft = FnLeft
...@@ -157,7 +157,7 @@ data DimFn ...@@ -157,7 +157,7 @@ data DimFn
| FnHigh | FnHigh
| FnIncrement | FnIncrement
| FnSize | FnSize
deriving (Eq, Ord) deriving Eq
instance Show DimsFn where instance Show DimsFn where
show FnBits = "$bits" show FnBits = "$bits"
......
...@@ -156,7 +156,7 @@ data Bit ...@@ -156,7 +156,7 @@ data Bit
| Bit1 | Bit1
| BitX | BitX
| BitZ | BitZ
deriving (Eq, Ord) deriving Eq
instance Show Bit where instance Show Bit where
show Bit0 = "0" show Bit0 = "0"
...@@ -186,7 +186,7 @@ data Number ...@@ -186,7 +186,7 @@ data Number
= UnbasedUnsized Bit = UnbasedUnsized Bit
| Decimal Int Bool Integer | Decimal Int Bool Integer
| Based Int Bool Base Integer Integer | Based Int Bool Base Integer Integer
deriving (Eq, Ord) deriving Eq
baseSize :: Integral a => Base -> a baseSize :: Integral a => Base -> a
baseSize Binary = 2 baseSize Binary = 2
......
...@@ -23,7 +23,7 @@ data UniOp ...@@ -23,7 +23,7 @@ data UniOp
| RedNor | RedNor
| RedXor | RedXor
| RedXnor | RedXnor
deriving (Eq, Ord) deriving Eq
instance Show UniOp where instance Show UniOp where
show LogNot = "!" show LogNot = "!"
...@@ -66,7 +66,7 @@ data BinOp ...@@ -66,7 +66,7 @@ data BinOp
| Le | Le
| Gt | Gt
| Ge | Ge
deriving (Eq, Ord) deriving Eq
instance Show BinOp where instance Show BinOp where
show LogAnd = "&&" show LogAnd = "&&"
...@@ -112,7 +112,7 @@ instance Show AsgnOp where ...@@ -112,7 +112,7 @@ instance Show AsgnOp where
data StreamOp data StreamOp
= StreamL = StreamL
| StreamR | StreamR
deriving (Eq, Ord) deriving Eq
instance Show StreamOp where instance Show StreamOp where
show StreamL = "<<" show StreamL = "<<"
......
...@@ -51,7 +51,7 @@ data Type ...@@ -51,7 +51,7 @@ data Type
| TypeOf Expr | TypeOf Expr
| TypedefRef Expr | TypedefRef Expr
| UnpackedType Type [Range] -- used internally | UnpackedType Type [Range] -- used internally
deriving (Eq, Ord) deriving Eq
instance Show Type where instance Show Type where
show (Alias xx rs) = printf "%s%s" xx (showRanges rs) show (Alias xx rs) = printf "%s%s" xx (showRanges rs)
...@@ -140,7 +140,7 @@ data Signing ...@@ -140,7 +140,7 @@ data Signing
= Unspecified = Unspecified
| Signed | Signed
| Unsigned | Unsigned
deriving (Eq, Ord) deriving Eq
instance Show Signing where instance Show Signing where
show Unspecified = "" show Unspecified = ""
...@@ -160,12 +160,12 @@ data NetType ...@@ -160,12 +160,12 @@ data NetType
| TWire | TWire
| TWand | TWand
| TWor | TWor
deriving (Eq, Ord) deriving Eq
data IntegerVectorType data IntegerVectorType
= TBit = TBit
| TLogic | TLogic
| TReg | TReg
deriving (Eq, Ord) deriving Eq
data IntegerAtomType data IntegerAtomType
= TByte = TByte
| TShortint | TShortint
...@@ -173,14 +173,14 @@ data IntegerAtomType ...@@ -173,14 +173,14 @@ data IntegerAtomType
| TLongint | TLongint
| TInteger | TInteger
| TTime | TTime
deriving (Eq, Ord) deriving Eq
data NonIntegerType data NonIntegerType
= TShortreal = TShortreal
| TReal | TReal
| TRealtime | TRealtime
| TString | TString
| TEvent | TEvent
deriving (Eq, Ord) deriving Eq
instance Show NetType where instance Show NetType where
show TSupply0 = "supply0" show TSupply0 = "supply0"
...@@ -216,7 +216,7 @@ instance Show NonIntegerType where ...@@ -216,7 +216,7 @@ instance Show NonIntegerType where
data Packing data Packing
= Unpacked = Unpacked
| Packed Signing | Packed Signing
deriving (Eq, Ord) deriving Eq
instance Show Packing where instance Show Packing where
show (Unpacked) = "" show (Unpacked) = ""
......
...@@ -7,5 +7,4 @@ type Identifier = String ...@@ -7,5 +7,4 @@ type Identifier = String
data Type data Type
instance Eq Type instance Eq Type
instance Ord Type
instance Show Type instance Show Type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment