diff options
author | Tom Smeding <t.j.smeding@uu.nl> | 2025-04-21 21:56:34 +0200 |
---|---|---|
committer | Tom Smeding <t.j.smeding@uu.nl> | 2025-04-21 21:56:34 +0200 |
commit | c586e7d2343fa735a9b27e0b1a201dd2cb2bc68e (patch) | |
tree | 9315228980b2c5983c785889b815aaab46534052 /src/AST | |
parent | 0dc5c31b023ee7d569bbc0df7615b2bf55ba01f5 (diff) |
Add integer modulo operator
Diffstat (limited to 'src/AST')
-rw-r--r-- | src/AST/Pretty.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/AST/Pretty.hs b/src/AST/Pretty.hs index da4f391..19c7cfc 100644 --- a/src/AST/Pretty.hs +++ b/src/AST/Pretty.hs @@ -343,6 +343,7 @@ operator ORecip{} = (Prefix, "recip") operator OExp{} = (Prefix, "exp") operator OLog{} = (Prefix, "log") operator OIDiv{} = (Infix, "`div`") +operator OMod{} = (Infix, "`mod`") ppSTy :: Int -> STy t -> String ppSTy d ty = ppTy d (unSTy ty) |