haskell-primitive rebuild