i have a function:
(*==) :: B -> (C -> IO a) -> IO a
basically, it takes b, does something to it to make c, performs the action
on c and returns the value.
the Bs are basically Doubles, so we'll consider them as such for now.
suppose I want to string together a bunch of these things...i can
On Tuesday, 2002-05-28, 18:57, CEST Simon Peyton-Jones wrote:
> Folks
>
> I'm back to tidying up the Haskell Report.
>
> In the Numeric library, there is the useful function
>
> readFloat :: RealFloat a => ReadS a
>
> But you can't use it for reading rationals, because Rational
> isn't i
> foldr, foldM, etc. derive a recursive computation from the
> recursive structure of an input list, so you have to feed
> one in. If you want to bypass the list, you could use
> IO-observations (getLine, isEOF) instead of list
> observations (head/tail, null):
Yes you can define it, I should ha
> Suppose I have a task I want to do to each line of a file,
> accumulate a result and output it,
>..
> I'd like to write something similar to
>
>main = do res <- foldX process_line initial_value getLine
> print res
> I feel this ought to be straightforward -- the structur
Dear all,
We are currently advertising a new lectureship in Nottingham. There
are no particular research areas specified for this position, but
applications in the area of the Foundations of Programming research
group (http://www.cs.nott.ac.uk/Research/fop/) would be most welcome.
Further detail
> Hal Daume III <[EMAIL PROTECTED]> writes:
>
> The gnu web page
> (www.gnu.org/manual/gmp-4.0.1/html_node/gmp_70.html) claims that Haskell
> (GHC) has bindings to GMP. Is this true? How can I access these
> routines?
Some Haskell systems mention that they use GMP to implement many
functions
Suppose I have a task I want to do to each line of a file,
accumulate a result and output it, I can write
main = do stuff <- getContents
print $ foldl process_line initial_value (lines stuff)
ie, it's obviously a fold
I can't see a way of doing the same thing directly on the
IO
> HTk, a graphical user interface toolkit and library for Haskell.
what are the differences to FranTk ( http://haskell.cs.yale.edu/FranTk/ ) ?
best regards,
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -