gameServer/Store.hs
changeset 3435 4e4f88a7bdf2
parent 3425 ead2ed20dfd4
child 3501 a3159a410e5c
--- a/gameServer/Store.hs	Thu May 06 15:26:14 2010 +0000
+++ b/gameServer/Store.hs	Thu May 06 17:39:08 2010 +0000
@@ -23,12 +23,10 @@
 
 
 newtype ElemIndex = ElemIndex Int
-    deriving (Eq)
+    deriving (Eq, Show, Read)
 newtype MStore e = MStore (IORef (IntSet.IntSet, IntSet.IntSet, IOA.IOArray Int e))
 newtype IStore e = IStore (IntSet.IntSet, IA.Array Int e)
 
-instance Show ElemIndex where
-    show (ElemIndex i) = 'i' : show i
 
 firstIndex :: ElemIndex
 firstIndex = ElemIndex 0