diff --git a/retroclash-lib.cabal b/retroclash-lib.cabal
--- a/retroclash-lib.cabal
+++ b/retroclash-lib.cabal
@@ -3,9 +3,11 @@
 -- This file has been generated from package.yaml by hpack version 0.34.4.
 --
 -- see: https://github.com/sol/hpack
+--
+-- hash: 8f9ca051aa92c6c0a5af71f156fa0e2a1312206a17ed5f78de27b0bb14b7527c
 
 name:           retroclash-lib
-version:        0.1.2
+version:        0.1.2.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,5 +112,6 @@
     , monoidal-containers ==0.6.*
     , mtl
     , template-haskell
+    , th-orphans >=0.13.11
     , 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)
 
