Skip to content

Commit

Permalink
use operators +, -, * provided by class num
Browse files Browse the repository at this point in the history
git-svn-id: https://svn-agbkb.informatik.uni-bremen.de/Hets/trunk@17136 cec4b9c1-7d33-0410-9eda-942365e851bb
  • Loading branch information
sternk committed Aug 7, 2012
1 parent 16557be commit 588e765
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Comorphisms/Hs2HOLCFaux.hs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ mthFunctor = ["fmap"]
mthFractional = ["/","recip","fromRational"]
mthAll = mthEq ++ mthOrd ++ mthEnum ++ mthNum
++ mthIntegral ++ mthFractional ++ mthBounded
aweLits = mthMonad ++ mthFunctor ++ mthEq
aweLits = mthMonad ++ mthFunctor ++ mthEq ++ ["+", "-", "*"]

nameListA, nameListB, nameListC, nameListD :: [String]
nameListE, nameListF, nameListH :: [String]
Expand Down Expand Up @@ -423,9 +423,9 @@ trOSym s = case s of
"<=" -> "leq"
">" -> "more"
">=" -> "meq"
"+" -> "add"
"*" -> "prod"
"-" -> "diff"
"+" -> "+"
"*" -> "*"
"-" -> "-"
"^" -> "pow"
"^^" -> "fpow"
"++" -> "bconcat"
Expand Down
2 changes: 1 addition & 1 deletion Haskell/test/HOL/mrec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ data Natx a = Zx | Sx a (Natx a)
fun1 :: Natx Int -> (Natx Int, Int)
fun1 x = case x of
Zx -> (Zx, 0)
Sx n k -> (Sx n (fst (fun1 k)), n * (fun2 k))
Sx n k -> (Sx n (fst (fun1 k)), n * (fun2 k) - 0)

fun2 :: Natx Int -> Int
fun2 x = case x of
Expand Down

0 comments on commit 588e765

Please sign in to comment.