This is a simple question about reusing a piece of Haskell code
I had an interactive program which used a function of type
prg :: String - String
prg =
{- for example -} \(c:cs) - "first char = " ++ [c]
To run that program I used
run :: IO ()
run = interact prg
Now, I want to reuse
There is no need for "." or [^abc] as Haskell list operators
can be used to "simulate" them. The following is from the C
lexer and matches all visible characters and all characters
except newline, respectively:
visible = alt [' '..'\127']
anyButNL = alt (['\0'..'\255'] \\
On 25-Sep-2000, Simon Peyton-Jones [EMAIL PROTECTED] wrote:
I couldn't find a description of the virtual machine or its
instruction set, though I downloaded the bits. Indeed, I concluded
that it must, implicitly, be a JVM implementation, which is why they
didn't specify it. Has anyone else
I have thought of a few "functional patterns"
... there may be repeats in these as they were rattled off last night when I
was half asleep.
I must have missed some though ... anyone?
I have placed this list on the Haskell Wiki, at
http://haskell.org/wiki/wiki?CommonHaskellIdioms
Please,
hmm. Actually I wanted to write CGI scripts, interpreted by Hugs. Is
this Socket.hi only a lib for GHC? I mean is there anything simular for
Hugs? I would prefer to develop my CGI's with Hugs (for I don't have GHC
on my system) and run them as scripts.
OK, the `cheat' way to do it would
I think it would be useful if you could post the reparser stuff.
I think it would be really cool if we could parse the xml in a lazy fashion
so that the entire tree might not come into memory at once.
i.e.
let x=parse xml
in
(y,z)=processXml(someAlgebra,x)
like the circular rep-min
On Mon, Sep 25, 2000 at 05:17:15PM +0200, Jose Emilio Labra Gayo wrote:
I had an interactive program which used a function of type
prg :: String - String
prg =
{- for example -} \(c:cs) - "first char = " ++ [c]
To run that program I used
run :: IO ()
run = interact prg
Now,
Doug Ransom [EMAIL PROTECTED] wrote,
There is no need for "." or [^abc] as Haskell list operators
can be used to "simulate" them. The following is from the C
lexer and matches all visible characters and all characters
except newline, respectively:
visible = alt [' '..'\127']