title: Compiling separate modules in GHC
body: <p>I am really struggling to do what must be a very simple thing in GHC: I have a program that works and compiles fine, but when I split it so that part of the code is in a separate module I can't get it to work. The separate module is called FICutilities</p>
  
  <blockquote>
    <p>ghc -o FICutilities FICutilities.hs
    C:\ghc\ghc-6.10.1/libHSrts.a(Main.o):Main.c:(.text+0x7): undefined reference to
    <code>__stginit_ZCMain'
    C:\ghc\ghc-6.10.1/libHSrts.a(Main.o):Main.c:(.text+0x36): undefined reference to
    </code>ZCMain_main_closure'
    collect2: ld returned 1 exit status</p>
  </blockquote>
  
  <p>As far as I can see this is because there is no main function, but I don't want one in this module. I am using version 6.10.1 because I can't get more recent ones to work.</p>
  
  <p>Please can someone help?! Thanks, Clare.</p>