Identity-based memoization (http://hackage.haskell.org/package/stable-memo)

#1Any has moved from GHC.Prim to GHC.Types in ghc-prim 0.5.1.0

This library fails to compile with ghc-prim version 0.5.1.0 and later because the All type was moved in that version.

For those versions, the line in Data.StableMemo.Internal

import GHC.Prim (Any)

needs to be changed to

import GHC.Types (Any)