diff options
Diffstat (limited to 'HsBot.hs')
| -rw-r--r-- | HsBot.hs | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -32,14 +32,17 @@ instance Ord Karma where data Conf = Conf { line :: String, loggs :: [String], maxLoggs :: Int, users :: [User], karmas :: [Karma] } deriving (Show, Read) -data User = User { userName :: String, userPts :: Int } deriving (Show, Read) +data User = User { userName :: String, userPts :: Int } deriving (Show, Read) instance Eq User where x == y = (userPts x) == (userPts y) instance Ord User where x < y = (userPts x) < (userPts y) x > y = (userPts x) > (userPts y) - x >= y = not (x < y) + x >= y = not (maxLoggMessages :: Int +maxLoggMessages = 10 + +x < y) x <= y = not (x > y) class Render a where render :: a -> String |
