diff options
Diffstat (limited to 'src/atom.hs')
| -rw-r--r-- | src/atom.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/atom.hs b/src/atom.hs index d01b157..5f1b42c 100644 --- a/src/atom.hs +++ b/src/atom.hs @@ -30,6 +30,10 @@ _ /? (ARational 0) = Nothing (ARational a) /? (ARational b) = Just $ ARational (a / b) _ /? _ = Nothing +infixl 7 %? +(%?) :: Atom -> Atom -> Maybe Atom +_ %? _ = Nothing + infixr 8 ^? (^?) :: Atom -> Atom -> Maybe Atom (ARational a) ^? (ARational b) = Just $ ARational (a ** b) |
