Changeset 5493 for src/Pugs/Internals.hs
- Timestamp:
- 07/12/05 14:34:10 (3 years ago)
- svk:copy_cache_prev:
- 7501
- Files:
-
- 1 modified
-
src/Pugs/Internals.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Internals.hs
r5291 r5493 134 134 typA = show $ typeOf (undefined :: a) 135 135 typB = show $ typeOf (undefined :: b) 136 instance Eq (a -> b) where137 _ == _ = False138 instance Ord (a -> b) where139 compare _ _ = LT136 instance (Typeable a, Typeable b) => Eq (a -> b) where 137 x == y = show x == show y 138 instance (Typeable a, Typeable b) => Ord (a -> b) where 139 compare x y = compare (show x) (show y) 140 140 instance Eq Dynamic where 141 _ == _ = False141 x == y = show x == show y 142 142 instance Ord Dynamic where 143 compare _ _ = LT143 compare x y = compare (show x) (show y) 144 144 145 145 internalError :: String -> a
