Haskell interface: generate lookup function cppTypeCasadiPrim