Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
add Complex.Complex
  • Loading branch information
coke committed Apr 16, 2012
1 parent adac868 commit 1f8d97f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pugs/src/Pugs/Prim.hs
Expand Up @@ -223,6 +223,7 @@ op1 "int" = op1Cast VInt
op1 "Int" = op1Cast VInt
op1 "Num" = op1Cast VNum
op1 "Rat" = op1Cast VRat
op1 "Complex" = op1Cast VComplex
op1 "+^" = op1Cast (VInt . pred . negate) -- Arbitrary precision complement- 0 ==> -1 / 1 ==> -2
op1 "~^" = op1Cast (VStr . mapStr complement)
op1 "?^" = op1 "!"
Expand Down Expand Up @@ -1921,6 +1922,7 @@ initSyms = seq (length syms) $ do
\\n Rat pre Rat safe (Rat: Any)\
\\n Rat pre Rat safe (Bool)\
\\n Rat pre Rat safe (Bool: Any)\
\\n Complex pre Complex safe (Complex)\
\\n Bool pre Bool safe ()\
\\n Bool pre Bool safe (Int)\
\\n Bool pre Bool safe (Num)\
Expand Down

0 comments on commit 1f8d97f

Please sign in to comment.