[project @ 2005-02-25 10:42:24 by simonmar]
authorsimonmar <unknown>
Fri, 25 Feb 2005 10:42:24 +0000 (10:42 +0000)
committersimonmar <unknown>
Fri, 25 Feb 2005 10:42:24 +0000 (10:42 +0000)
Add instance Typeable Queue

Data/Queue.hs

index 91a7d34..6a06670 100644 (file)
@@ -24,10 +24,14 @@ module Data.Queue(
     ) where
 
 import Prelude -- necessary to get dependencies right
+import Data.Typeable
 
 -- | The type of FIFO queues.
 data Queue a = Q [a] [a] [a]
 
+#include "Typeable.h"
+INSTANCE_TYPEABLE1(Queue,queueTc,"Queue")
+
 -- Invariants for Q xs ys xs':
 --     length xs = length ys + length xs'
 --     xs' = drop (length ys) xs       -- in fact, shared (except after fmap)