title: How do I force interpretation in Hint
body: <p>How do I force interpretation mode in Hint (Language.Haskell.Interpreter)?</p>
  
  <p>I have this code:</p>
  
  <pre><code>module Main where
  
  import Language.Haskell.Interpreter
  import Control.Monad
  
  main = do 
    res &lt;- runInterpreter (test "test")
    case res of
         Left e -&gt; putStrLn (show e)
         Right t -&gt; putStrLn (show t) 
    return ()
  
  test :: String -&gt; Interpreter ()
  test mname = 
    do
      loadModules [mname ++ ".hs"]
      setTopLevelModules ["Main"]
  </code></pre>
  
  <p>Will result in (based on the answers from <a href="https://stackoverflow.com/q/7134520/17500">here</a>):</p>
  
  <pre><code>NotAllowed "These modules are not interpreted:\nMain\n"
  </code></pre>
  
  <p>only if GHC finds test.o! </p>
  
  <p>I've tried</p>
  
  <pre><code>unsafeSetGhcOption ("-fbyte-code")
  </code></pre>