title: Infer type of a string containing a Haskell expression
body: <p>I need a (quick and dirty) way to get some representation of the type of a Haskell expression that is given as a string.</p>
  
  <p>I currently see 3 options:</p>
  
  <ul>
  <li>Use GHC API -- however, the documentation loses me pretty quickly.</li>
  <li>Use some other type inference tool -- I've been suggested to try haskell-type-exts, but it fails to type all but the most trivial expressions. I don't know of any other such tool.</li>
  <li>Roll my own HM inferer -- I'd avoid this unless absolutely necessary</li>
  </ul>
  
  <p>I don't even need a complete solution, in the sense that a library/tool that can type a reasonable basic subset of Haskell would well suffice for me.</p>
  
  <p>So what is the simplest way to achieve this?</p>