foundation.hs changes for haskell syntax checking