summaryrefslogtreecommitdiff
path: root/Coolbal/Verbosity.hs
blob: e9b6cacc32dd6596d76d3fdb67136c84c1bd12a9 (plain)
1
2
3
4
5
6
7
8
9
module Coolbal.Verbosity where


data Verbosity = Quiet | Verbose
  deriving (Show, Eq, Ord)

intToVerbosity :: Int -> Verbosity
intToVerbosity n | n <= 0 = Quiet
intToVerbosity _ = Verbose