• Simon Marlow's avatar
    FIX #3079, dodgy parsing of LANGUAGE pragmas · c197fe60
    Simon Marlow authored
    I ended up rewriting this horrible bit of code, using (yikes) lazy I/O
    to slurp in the source file a chunk at a time.  The old code tried to
    read the file a chunk at a time, but failed with LANGUAGE pragmas
    because the parser for LANGUAGE has state and the state wasn't being
    saved between chunks.  We're still closing the Handle eagerly, so
    there shouldn't be any problems here.
HeaderInfo.hs 9.63 KB