#include #include #include "haskell2c.h" #include char * primGetEnv (char* sym) { char* val; val = getenv(sym); if (!val) errno=ENOENT; return val; }