title: Haskell -- how to use multiple modules in the same file?
body: <p>Sorry this is a dumb question, but I cannot figure out how to put multiple modules in the same file. Suppose the file is named <em>A.hs</em>. If I put module <em>B</em> first, i.e.</p>
  
  <pre><code>module B where ...
  module A where ...
  </code></pre>
  
  <p>it complains that it expected <em>A</em> when I run "ghci A" (It's not top-level, so I don't want to call "ghci A.hs"). The other way around, and it complains "parse error on input module").</p>
  
  <p>There's a related bug here, <a href="http://hackage.haskell.org/trac/ghc/ticket/2428" rel="noreferrer">http://hackage.haskell.org/trac/ghc/ticket/2428</a> . Is there actually no way to get this, even if the other module is only used locally?</p>