<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:small">Hi All,</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small">I'm trying to extract elements from a Vector using 'head' and 'tail' function in Data.Vector package, but it gives me the following error now.</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"><interactive>:41:18:</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> Couldn't match expected type ‘Data.Vector.Vector a’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> with actual type ‘vector-0.10.9.1:Data.Vector.Vector Int’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> NB: ‘Data.Vector.Vector’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> is defined in ‘Data.Vector’ in package ‘vector-0.10.12.3’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> ‘vector-0.10.9.1:Data.Vector.Vector’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> is defined in ‘Data.Vector’ in package ‘vector-0.10.9.1’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> Relevant bindings include it :: a (bound at <interactive>:41:1)</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> In the first argument of ‘Data.Vector.head’, namely ‘it’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> In the expression: Data.Vector.head it</font></div></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small">It was working fine before.</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small">Any help would be appreciated. Thanks in advance! </div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><div><font face="georgia,serif">Regards, <br>Dananji Liyanage</font></div></div></div></div></div>
</div>