X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Control%2FConcurrent%2FSampleVar.hs;h=7d1a00d7fe6f5fd77a0552a3477a070725497525;hb=6528f4e902ce806f6c6b394aad7084452df33e06;hp=68e4b308d69bb76f2eb33944425b785ec98329aa;hpb=a0f41d471ceda7da65d775cfd9eaca3262ec8291;p=ghc-base.git diff --git a/Control/Concurrent/SampleVar.hs b/Control/Concurrent/SampleVar.hs index 68e4b30..7d1a00d 100644 --- a/Control/Concurrent/SampleVar.hs +++ b/Control/Concurrent/SampleVar.hs @@ -34,6 +34,10 @@ import Control.Exception ( mask_ ) import Data.Functor ( (<$>) ) +import Data.Typeable + +#include "Typeable.h" + -- | -- Sample variables are slightly different from a normal 'MVar': -- @@ -58,6 +62,8 @@ newtype SampleVar a = SampleVar ( MVar ( Int -- 1 == full ) deriving (Eq) +INSTANCE_TYPEABLE1(SampleVar,sampleVarTc,"SampleVar") + -- |Build a new, empty, 'SampleVar' newEmptySampleVar :: IO (SampleVar a) newEmptySampleVar = do