title: How to view the SQL generated by an Opaleye query?
body: <p>In the <a href="https://github.com/tomjaguarpaw/haskell-opaleye/blob/master/Doc/Tutorial/TutorialBasic.lhs" rel="nofollow noreferrer">Opaleye Tutorial</a>, line 88 lists the following example <code>ghci</code> command.</p>
  
  <pre><code>ghci&gt; printSql personQuery
  </code></pre>
  
  <p><code>personQuery</code> there is a predefined query, and it appears that <code>printSql</code> is a function which prints the SQL generated by it.</p>
  
  <p>Where is this <code>printSql</code> function defined? I have searched through all the modules of the <a href="https://hackage.haskell.org/package/opaleye" rel="nofollow noreferrer">opaleye package</a> and do not see it defined there.</p>
  
  <p><strong>How can I see the SQL generated by an opaleye query?</strong></p>