Installation of haskell packages seems to be a mess. dev-haskell/mtl-2.2.1-r1 tries to downgrade dev-haskell/transformers from 0.5.2.0 to 0.4.3.0 which fails to build (0.5.2.0 does build OK) Then dev-haskell/memory-0.10 does not build with ghc-8.0.2 gives Preprocessing library memory-0.10... [ 1 of 28] Compiling Data.Memory.MemMap.Posix ( dist/build/Data/Memory/MemMap/Posix.hs, dist/build/Data/Memory/MemMap/Posix.o ) [ 2 of 28] Compiling Data.Memory.Internal.DeepSeq ( Data/Memory/Internal/DeepSeq.hs, dist/build/Data/Memory/Internal/DeepSeq.o ) [ 3 of 28] Compiling Data.Memory.Internal.Imports ( Data/Memory/Internal/Imports.hs, dist/build/Data/Memory/Internal/Imports.o ) [ 4 of 28] Compiling Data.Memory.PtrMethods ( Data/Memory/PtrMethods.hs, dist/build/Data/Memory/PtrMethods.o ) [ 5 of 28] Compiling Data.Memory.Internal.CompatPrim64 ( Data/Memory/Internal/CompatPrim64.hs, dist/build/Data/Memory/Internal/CompatPrim64.o ) [ 6 of 28] Compiling Data.Memory.Internal.CompatPrim ( Data/Memory/Internal/CompatPrim.hs, dist/build/Data/Memory/Internal/CompatPrim.o ) Data/Memory/Internal/CompatPrim.hs:80:23: error: * Variable not in scope: quotRemInt :: Int# -> Int# -> (# t1, t #) * Perhaps you meant one of these: `quotRemInt#' (imported from GHC.Prim), `quotRem' (imported from Prelude) Data/Memory/Internal/CompatPrim.hs:81:25: error: * Couldn't match a lifted type with an unlifted type When matching the kind of `Int#' * In the first argument of `(==#)', namely `r' In the first argument of `booleanPrim', namely `(r ==# 0)' In the expression: booleanPrim (r ==# 0) Data/Memory/Internal/CompatPrim.hs:81:31: error: * Couldn't match a lifted type with an unlifted type When matching the kind of `Int#' * In the second argument of `(==#)', namely `0' In the first argument of `booleanPrim', namely `(r ==# 0)' In the expression: booleanPrim (r ==# 0) Data/Memory/Internal/CompatPrim.hs:82:21: error: * Couldn't match a lifted type with an unlifted type When matching the kind of `Int#' * In the first argument of `f8', namely `q' In the expression: f8 q In the expression: if booleanPrim (r ==# 0) then f8 q else f1 v So, I have to give up. The dev-haskell packages are always the most difficult ones on my Gentoo system.
memory-0.14.1 should be compatible with ghc-8.0.2: https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-haskell/memory?id=3516e0bda499b9ae3734b50e7097e3dafeca7909 haskell-updater run should sort update path out.