From c586e7d2343fa735a9b27e0b1a201dd2cb2bc68e Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 21 Apr 2025 21:56:34 +0200 Subject: Add integer modulo operator --- src/AST/Pretty.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/AST/Pretty.hs') 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) -- cgit v1.2.3-70-g09d2