Skip to content

Commit

Permalink
removed comparePos (that equalled compare)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn-agbkb.informatik.uni-bremen.de/Hets/trunk@8861 cec4b9c1-7d33-0410-9eda-942365e851bb
  • Loading branch information
Christian Maeder authored and Christian Maeder committed Sep 18, 2007
1 parent 8861ccb commit cca95d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions Common/Id.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ appRange (Range l1) (Range l2) = Range $ l1 ++ l2
concatMapRange :: (a -> Range) -> [a] -> Range
concatMapRange f = Range . concatMap (rangeToList . f)

comparePos :: Pos -> Pos -> Ordering
comparePos = compare

-- | construct a new position
newPos :: String -> Int -> Int -> Pos
newPos = SourcePos
Expand Down
2 changes: 1 addition & 1 deletion HasCASL/Unify.hs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ showDocWithPos :: Type -> ShowS
showDocWithPos a = let p = getRange a in
showChar '\'' . showDoc a . showChar '\''
. noShow (isNullRange p) (showChar ' ' .
showParen True (showPos $ maximumBy comparePos (rangeToList p)))
showParen True (showPos $ maximum (rangeToList p)))

uniResult :: String -> Type -> String -> Type -> Result Subst
uniResult s1 a s2 b = Result [Diag Hint ("in type\n" ++ " " ++ s1 ++ " " ++
Expand Down

0 comments on commit cca95d3

Please sign in to comment.