Hi Haskell-cafe<div><br></div><div>My problem: I'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'm trying to do this in a function:</div>
<div><br></div><div>getEndPosition = do</div><div> (a,b,c) <- alexGetInput</div><div> return a</div><div><br></div><div><br></div><div>Unfortunately, the type of a is 'Alex AlexPosn' instead of just 'AlexPosn'</div>
<div>How do I strip the Alex so I'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>