diff --git a/retroclash-lib.cabal b/retroclash-lib.cabal
--- a/retroclash-lib.cabal
+++ b/retroclash-lib.cabal
@@ -4,10 +4,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: 63033a7be2d6ae3d881c517aef6195d61a5d85ec40614c32287bfaccb2176dc4
+-- hash: aa099865dc012dbd6398d27ca852c4156d87b4f2a135826025a0d3774d5fff80
 
 name:           retroclash-lib
-version:        0.1.0
+version:        0.1.0.1
 synopsis:       Code shared across the code samples in the book "Retrocomputing with Clash"
 description:    Clash components useful when implementing, or interfacing with,
                 retro-computers:
@@ -110,6 +110,7 @@
     , lift-type ==0.1.*
     , monoidal-containers ==0.6.*
     , mtl
-    , template-haskell
+    , template-haskell >=2.16 && <3
+    , th-orphans >=0.13
     , transformers
   default-language: Haskell2010
diff --git a/src/RetroClash/Memory.hs b/src/RetroClash/Memory.hs
--- a/src/RetroClash/Memory.hs
+++ b/src/RetroClash/Memory.hs
@@ -37,6 +37,7 @@
 import Data.Map.Monoidal as Map
 
 import Language.Haskell.TH hiding (Type)
+import Language.Haskell.TH.Instances
 import LiftType
 import Type.Reflection (Typeable)
 
