diff options
| author | pb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157> | 2009-11-29 16:55:45 +0000 |
|---|---|---|
| committer | pb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157> | 2009-11-29 16:55:45 +0000 |
| commit | 307e2f7ce58af0bd70fe4741da8c5dc4c1f82008 (patch) | |
| tree | db2f7f90efb0b5d9d8fbbd3399a9097a45b0a471 | |
| parent | 9c319a0f567fed743ddca699470df1164a2f0530 (diff) | |
git-svn-id: https://ssl.buetow.org/repos/hsbot/trunk@7 9f8f72e9-4bf4-416e-b76e-7d4203597157
| -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 |
