Add a program to generate a Haskell source file containing the primitives environment.