title: Writing Haskell interpreter in C++ (using ghc or hugs as library)
body: <p>I'm writing a C++ application that needs to interpret and evaluate haskell code. This code isn't known at compile time but given by the user.
  Is there a way to use a haskell compiler/interpreter (like GHCi or hugs) as a library?</p>
  
  <ul>
  <li>I found FFI but this seems only to work for haskell code that is known at compile time.</li>
  <li>I found the GHC API and hint, but they seem only to work when I want to interpret haskell code from out of haskell.</li>
  </ul>