Sorry, this looks like one of those wired-in limitations that we can increase 
arbitrarily but which will take quite a bit of effort to completely eliminate.

If you always run the generated programs with a copy of Hugs that you compile
yourself, all you need to do is increase the value of MAX_TOKEN in input.c
and rebuild.  You'll still have an arbitrary limit but if you set it to 
30000 or so, it'll be no worse than ghc.

--
Alastair Reid              Yale Haskell Project Hacker
[EMAIL PROTECTED]  http://WWW.CS.Yale.EDU/homes/reid-alastair/


> When writing a program that generates programs, I often wish to write
> very long strings (see the end of this mail for an example).
> Unfortunately, Hugs 1.3 could only parse scripts with strings no
> longer than 250 characters, and Hugs 1.4 (971118) only upto 500
> characters.
> 
> Frankly, this is a pain.  Instead of writing:
> 
> > ... = showString "..."
> 
> I end up writing:
> 
> > ... = showString ("..."++"...")
> 
> Yuck.  Instead of neatly quoting a large section of Haskell, I have to
> wade in and place "++"s at strategic points.
> 
> Would it be possible to allow arbitrarily long strings (tokens)?
> 
> nhc13 and ghc all seem to allow strings up to (at least) 30000
> characters long, which should be enough, I think. :-)
> 
> Cheers,
> 
> Graeme.


Reply via email to