Hi Haskell-cafe<div><br></div><div>My problem:  I&#39;m trying to obtain the current position of the lexer once it reaches the end of the file (line and row number).</div><div>I&#39;m trying to do this in a function:</div>
<div><br></div><div>getEndPosition = do</div><div>  (a,b,c) &lt;- alexGetInput</div><div>  return a</div><div><br></div><div><br></div><div>Unfortunately, the type of a is &#39;Alex AlexPosn&#39; instead of just &#39;AlexPosn&#39;</div>
<div>How do I strip the Alex so I&#39;m left with just a AlexPosn object?</div><div><br></div><div>Thanks,</div><div><br></div><div>Amit Deshwar</div><div>University of Calgary</div>