{-| Module : Mod35 Description : Test if modulus 3 or 5 Copyright : © Frank Jung, 2019 License : GPL-3 Tests whether value a integer value is modulus 3 or modulus 5. >>> mod35 15 -} module Mod35 (mod35) where -- | Test if modulus 3 or 5. mod35 :: Int -- ^ value to test -> Bool -- ^ true if modulus 3 and/or 5 mod35 :: Int -> Bool mod35 Int n = Int n Int -> Int -> Int forall a. Integral a => a -> a -> a `mod` Int 3 Int -> Int -> Bool forall a. Eq a => a -> a -> Bool == Int 0 Bool -> Bool -> Bool || Int n Int -> Int -> Int forall a. Integral a => a -> a -> a `mod` Int 5 Int -> Int -> Bool forall a. Eq a => a -> a -> Bool == Int 0