Fw: [Haskell-cafe] IO within parser

Bulat Ziganshin bulat.ziganshin at gmail.com
Sun Aug 12 02:33:00 EDT 2007

Hello Gregory,

Sunday, August 12, 2007, 9:32:04 AM, you wrote:

>> I've been struggling with writing a parser that needs to parse include
>> files within source files.  

Parsec can't accomplish with without using unsafePerformIO because
it's monad is pure. it's algorithmically impossible to have any i/o
actions inside it. there was plans to rewrite Parsec in
monad-transformer way and afair it was even one of GSOC projects

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list