Add a program to generate a Haskell source file containing the primitives environment.
It will be used to generate the primitives environment in the compiler.