title: Data.Text.ICU.Regex - How to get I16 value for find function?
body: <p>I'm trying to work with the <code>find</code> function from the <a href="http://hackage.haskell.org/package/text-icu-0.6.3.7/docs/Data-Text-ICU-Regex.html" rel="nofollow">Data.Text.ICU.Regex</a> module, and I see that its second argument requires an <code>I16</code> datatype defined in the <a href="http://hackage.haskell.org/package/text-1.1.0.0/docs/Data-Text-Foreign.html" rel="nofollow">Data.Text.Foreign</a> module.</p>
  
  <p>However, based on this module definition in Data.Text.Foreign</p>
  
  <pre><code>module Data.Text.Foreign
      (
      -- * Interoperability with native code
      -- $interop
        I16
  </code></pre>
  
  <p>it seems that the constructor for the <code>I16</code> newtype</p>
  
  <pre><code>-- | A type representing a number of UTF-16 code units.
  newtype I16 = I16 Int
      deriving (Bounded, Enum, Eq, Integral, Num, Ord, Read, Real, Show)
  </code></pre>
  
  <p>is not exported by the Data.Text.Foreign module.</p>
  
  <p>How can I make use of the <code>find</code> function if I'm not able to construct a value of type <code>I16</code>?</p>