@@ -27,11 +27,9 @@ import Data.Proxy (Proxy(..))
27import GHC.Generics (Generic, Rep(..))
27import GHC.Generics (Generic, Rep(..))
28import GHC.Real (Ratio(..))
28import GHC.Real (Ratio(..))
31−XXX Will be added in the future
32import Streamly.Internal.Data.Unbox.TH
31import Streamly.Internal.Data.Unbox.TH
33−import Language.Haskell.TH
32+#endif
36import Streamly.Internal.Data.Unbox
34import Streamly.Internal.Data.Unbox
37 ( PeekRep(..)
35 ( PeekRep(..)
@@ -51,11 +49,9 @@ import Test.Hspec as H
52--------------------------------------------------------------------------------
50--------------------------------------------------------------------------------
56#ifdef USE_TH
52#ifdef USE_TH
57#define MODULE_NAME "Data.Unbox.Deriving.TH"
53#define MODULE_NAME "Data.Unbox.Deriving.TH"
58−#define DERIVE_UNBOX(typ) $(makeUnbox ''typ)
54+#define DERIVE_UNBOX(typ) $(deriveUnbox ''typ)
60#define MODULE_NAME "Data.Unbox.Deriving.Generic"
56#define MODULE_NAME "Data.Unbox.Deriving.Generic"
61#define DERIVE_UNBOX(typ) deriving instance Unbox (typ)
57#define DERIVE_UNBOX(typ) deriving instance Unbox (typ)