Having just bought a new computer and done a fresh install of Haskell and the Copilot libraries, I found that the Struct in Copilot.Compile.C99 was using the name typeName instead of typename, so I was getting an error in code that used typename. Unless I accidentally installed a non-standard version of copilot-c99 package, it might be worth updating the manual to reflect this.