Did not compile with Cabal

grid did not compile when using "cabal install grid". With a dependency on ghc-prim and deleting definitions of foldr' and foldl' allows compilation.