[Haskell-cafe] a little parsec enhancement

Antoine Latter aslatter at gmail.com
Fri Sep 6 22:56:06 CEST 2013


The exported `mkPT` is equivalent to the old 'ParsecT' data constructor
from parsec 3.0.x.

I wouldn't mind exporting a similar alias for the new 'ParsecT' constructor
from 3.1.x.


On Fri, Sep 6, 2013 at 2:21 PM, Petr Pudlák <petr.mvd at gmail.com> wrote:

> Dne 09/05/2013 01:38 PM, Roman Cheplyaka napsal(a):
>
>  * Petr Pudlák <petr.mvd at gmail.com> [2013-09-05 11:18:25+0200]
>>
>>> Unfortunately |ParsecT| constructor isn't exported so I'm not able to
>>> implement it outside /parsec/.
>>>
>> No, but there's an 'mkPT' function which is equivalent to the ParsecT
>> constructor.
>>
>> (Although I, too, wish the ParsecT constructor were exposed.)
>>
>> Roman
>>
> Yes, I tried to use `mkPT`, but the result looked very complicated and I
> wasn't quite sure if it'll be working correctly in all cases. Implementing
> the same thing with the `ParsecT` constructor is simple and comprehensible.
>
>   Best regards,
>   Petr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130906/04266e55/attachment.htm>


More information about the Haskell-Cafe mailing list