Trouble with NHC?

"Robert M. Solovay" <[email protected]> Sun, 21 May 2006 03:31:48 -0700 (PDT)
Newsgroups gmane.comp.lang.haskell.nhc.user
Message-ID <Pine.GSO.4.63.0605210329080.23808@blue3>
I am trying to compile the following simple program:

module Main where
import System.Environment

main :: IO ()
main = do args <- getArgs
           putStrLn ("Hello, " ++ args !! 0)

I get the following error message:

solovay@chaos Haskell_Scheme]$ nhc98 program1.hs
I/O error (user-defined), call to function `userError':
   Can't open any of:
  ./System/Environment.hi
  /usr/local/include/nhc98/packages/base/System/Environment.hi
  /usr/local/include/nhc98/System/Environment.hi
  when trying to read System.Environment.

 	Have I installed nhc98 incorrectly? Or what is it I'm doing wrong?

 	Thanks,

 	--Bob Solovay