Two answers:
1. If you want to work in standard haskell, you can do that with
http://code.world/haskell, which puts you in standard Haskell mode. This is just like normal Haskell, so mod is already in scope. You can use a selection of commonly used packages, including base, containers, unordered-containers, text, bytestring... even QuickCheck. In this mode, to use CodeWorld's graphics library, you'll need to import the CodeWorld module, and the functions are more like standard Haskell. For example, translated has the type Double -> Double -> Picture -> Picture, instead of (Picture, Double, Double) -> Picture. The Guide button when you're in standard Haskell mode shows you API documentation for the CodeWorld module.
2. If you want to stay in the CodeWorld educational dialect, the function you're looking for is called remainder.
Thanks,
Chris