
Dear Haskeller, I have a little issue in using GHCi as follows: === Prelude> length "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" <interactive>:1:254: lexical error in string/character literal at character '\EOT' === It seems to me that GHCi doesn't allow me to type more than some specified length of a command. Is this interpretation correct? How can I make it longer? This issue is quite important at least to me. My tool is just a simple Haskell program. I don't like to add any extra interactive environment, but I like to just use GHCi as an interactive environment for my tool. I strongly believe that this ides is pervasive among many haskellers. Thanks in advance for your help/feedback in advance. Kwanghoon

On Sunday 28. February 2010 08.54.38 Kwanghoon Choi wrote:
=== Prelude> length "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaa" <interactive>:1:254: lexical error in string/character literal at character '\EOT' ===
It seems to me that GHCi doesn't allow me to type more than some specified length of a command. Is this interpretation correct? How can I make it longer?
Which platform is this? That works perfectly here. Even 1000 characters seems to work. If this is on *nix, maybe it has something to do with readline / editline / whatever is used now? -- Erlend Hamberg “Everything will be ok in the end. If its not ok, its not the end.” GPG/PGP: 0xAD3BCF19 45C3 E2E7 86CA ADB7 8DAD 51E7 3A1A F085 AD3B CF19

Am Sonntag 28 Februar 2010 08:54:38 schrieb Kwanghoon Choi:
Dear Haskeller,
I have a little issue in using GHCi as follows:
=== Prelude> length "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa" <interactive>:1:254: lexical error in string/character literal at character '\EOT' ===
Hm, Prelude> length "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" 99 Prelude> length "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" 549 And it shouldn't get an \EOT anyway, also column 254 is way past the String.
It seems to me that GHCi doesn't allow me to type more than some specified length of a command.
There's some limit (memory, terminal buffer), but in practice, you shouldn't ever come near it.
Is this interpretation correct? How can I make it longer?
This issue is quite important at least to me. My tool is just a simple Haskell program. I don't like to add any extra interactive environment, but I like to just use GHCi as an interactive environment for my tool. I strongly believe that this ides is pervasive among many haskellers.
So, ghci got the command from your tool and not from you typing at the prompt? Then it seems your tool outputs unwanted \EOT characters, it might be worth to check.
Thanks in advance for your help/feedback in advance.
Kwanghoon

Thank you all for your replies.
I am using Ubuntu and Emacs GTK+ Version 2.12.9. Nothing else is used by me.
My tool is just a Haskell program, and I load it using GHCi to run.
Is the emacs that limits the length of the command then?
Best regards,
Kwanghoon
On Sun, Feb 28, 2010 at 4:54 PM, Kwanghoon Choi
Dear Haskeller,
I have a little issue in using GHCi as follows:
=== Prelude> length "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" <interactive>:1:254: lexical error in string/character literal at character '\EOT' ===
It seems to me that GHCi doesn't allow me to type more than some specified length of a command. Is this interpretation correct? How can I make it longer?
This issue is quite important at least to me. My tool is just a simple Haskell program. I don't like to add any extra interactive environment, but I like to just use GHCi as an interactive environment for my tool. I strongly believe that this ides is pervasive among many haskellers.
Thanks in advance for your help/feedback in advance.
Kwanghoon
participants (3)
-
Daniel Fischer
-
Erlend Hamberg
-
Kwanghoon Choi