Use explicit language extensions & remove extension fields from base.cabal
[ghc-base.git] / Control / Concurrent / SampleVar.hs
index 68e4b30..ca68a38 100644 (file)
@@ -1,3 +1,5 @@
+{-# LANGUAGE CPP #-}
+
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Control.Concurrent.SampleVar
@@ -34,6 +36,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 +64,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