diff --git a/Data/Yarr/Flow.hs b/Data/Yarr/Flow.hs
--- a/Data/Yarr/Flow.hs
+++ b/Data/Yarr/Flow.hs
@@ -14,7 +14,7 @@
     dzipElems, dzipElemsM,
 
     -- * High level shortcuts
-    traverse, zipElems, mapElems, mapElemsM,
+    Data.Yarr.Flow.traverse, zipElems, mapElems, mapElemsM,
 
     -- ** Cartesian products
     cartProduct2, icartProduct2, icartProduct2M,
diff --git a/Data/Yarr/Repr/Foreign.hs b/Data/Yarr/Repr/Foreign.hs
--- a/Data/Yarr/Repr/Foreign.hs
+++ b/Data/Yarr/Repr/Foreign.hs
@@ -24,7 +24,7 @@
 import Foreign
 import Foreign.ForeignPtr
 import Foreign.Marshal.Alloc
-import Foreign.Marshal.MissingAlloc
+import Foreign.Marshal.MissingAlloc as FMMA
 
 import Data.Yarr.Base as B
 import Data.Yarr.Fusion
@@ -170,7 +170,7 @@
 newEmpty :: (Shape sh, Storable a, Integral a) => sh -> IO (UArray F L sh a)
 {-# INLINE newEmpty #-}
 newEmpty sh = do
-    arr <- internalNew callocBytes sh
+    arr <- internalNew FMMA.callocBytes sh
     arr `deepseq` return ()
     return arr
 
diff --git a/Data/Yarr/Utils/FixedVector/VecTuple.hs b/Data/Yarr/Utils/FixedVector/VecTuple.hs
--- a/Data/Yarr/Utils/FixedVector/VecTuple.hs
+++ b/Data/Yarr/Utils/FixedVector/VecTuple.hs
@@ -17,6 +17,14 @@
         inline = pragInlD name Inline ConLike AllPhases
     in [fd, inline]
 
+#if MIN_VERSION_template_haskell(2,11,0)
+newtypeInstD' ctxt tc tys con derivs =
+    let kindSig = Nothing
+    in newtypeInstD ctxt tc tys kindSig con (cxt derivs)
+#else
+newtypeInstD' = newtypeInstD
+#endif
+
 makeVecTupleInstance arityType a = do
 
     let n = arity a
@@ -30,7 +38,7 @@
         tupleType = foldl appT (tupleT n) $ replicate n e
 
     familyInst <-
-        newtypeInstD
+        newtypeInstD'
             (cxt [])
             ''VecTuple
             [arityType, e]
diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -10,3 +10,4 @@
   request.
 * Changes in 1.4.0.0: This works (and will only work) with the
   breaking change release of fixed-vector 0.8.0.0.
+* Changes in 1.4.0.2: Build with GHC 7.10 and 8.0.
diff --git a/yarr.cabal b/yarr.cabal
--- a/yarr.cabal
+++ b/yarr.cabal
@@ -1,5 +1,5 @@
 Name:                yarr
-Version:             1.4.0.1
+Version:             1.4.0.2
 Synopsis:            Yet another array library
 Description:
     Yarr is a new blazing fast dataflow framework (array library),
@@ -44,12 +44,12 @@
 
 Library
     build-depends:
-        base >=4.6 && <4.8,
-        ghc-prim         == 0.3.*,
-        deepseq          == 1.3.*,
+        base             >= 4.6 && < 4.10,
+        ghc-prim         >= 0.3 && < 0.6,
+        deepseq          >= 1.3 && < 1.5,
         fixed-vector     >= 0.8 && < 0.9,
-        primitive        == 0.6,
-        template-haskell >= 2.8 && < 2.10,
+        primitive        >= 0.6 && < 0.7,
+        template-haskell >= 2.8 && < 2.12,
         missing-foreign  == 0.1.1
 
     extensions:
