diff --git a/csound-expression-dynamic.cabal b/csound-expression-dynamic.cabal
--- a/csound-expression-dynamic.cabal
+++ b/csound-expression-dynamic.cabal
@@ -1,5 +1,5 @@
 Name:          csound-expression-dynamic
-Version:       0.3.7
+Version:       0.3.8
 Cabal-Version: >= 1.22
 License:       BSD3
 License-file:  LICENSE
@@ -25,7 +25,7 @@
   Ghc-Options:    -Wall
   Build-Depends:
         base >= 4.6, base < 5, data-default, containers, array, transformers >= 0.3, wl-pprint >= 1.2.1,
-        Boolean >= 0.1.0, data-fix >= 0.3.0, data-fix-cse >= 0.0.3, hashable,
+        Boolean >= 0.1.0, data-fix >= 0.3.0, data-fix-cse >= 0.0.3, hashable >=1.2.7.0,
         deriving-compat
   Hs-Source-Dirs:      src/
   default-language: Haskell2010
diff --git a/src/Csound/Dynamic/Types/Exp.hs b/src/Csound/Dynamic/Types/Exp.hs
--- a/src/Csound/Dynamic/Types/Exp.hs
+++ b/src/Csound/Dynamic/Types/Exp.hs
@@ -372,6 +372,7 @@
 ------------------------------------------------------
 -- hashable instances
 
+
 instance (Hashable a, Hashable b) => Hashable (PreInline a b)
 instance (Hashable a) => Hashable (InlineExp a)
 instance Hashable CondOp
@@ -392,8 +393,12 @@
 instance Hashable a => Hashable (RatedExp a)
 instance Hashable InstrId
 
-deriving instance Generic1 IM.IntMap
+
+#if MIN_VERSION_hashable(1,3,4)
+#else
 instance Hashable1 IM.IntMap
+#endif
+deriving instance Generic1 IM.IntMap
 instance Hashable a => Hashable1 (PreInline a)
 instance Hashable a => Hashable1 (Inline a)
 instance Hashable1 RatedExp
