How to use "BinaryString.uncons()" but with a type distinct from Word8? : <p>I have a binary string. I want to split it into head and tail. The close candidate is from <code>bytestring</code> is:</p>

<pre><code>uncons :: ByteString -&gt; Maybe (Word8, ByteString) 
</code></pre>

<p>But I want to split it such that the head would be, say, of type <code>Word16</code> instead of <code>Word8</code>. Or <code>Word32</code>. Or anything else.</p>

<p>How can I do that?</p>
