Re: problems with working with Handles
On Fri, Jun 13, 2003 at 10:57:21AM -0400, Dean Herington wrote:
Tomasz Zielonka wrote:
One can also use Strategies module that comes with GHC (in package concurrent), for example:
Could you tell me more specifically where to find the Strategies module in GHC? I couldn't find it in the documentation.
[tomekz@green load]$ ghci -package concurrent ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.0, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \____/\/ /_/\____/|_| Type :? for help. Loading package base ... linking ... done. Loading package concurrent ... linking ... done. Prelude> :m + Strategies Prelude Strategies> :m + IO Prelude Strategies IO> h <- openFile "/etc/termcap" ReadMode Prelude Strategies IO> cs <- hGetContents h Prelude Strategies IO> putStrLn "hmm" `demanding` rnf cs hmm Prelude Strategies IO> hClose h Prelude Strategies IO> length cs 737535 Prelude Strategies IO> Note that you have to use -package Strategies option. I couldn't find this module in the hierarchical libraries. The same works in GHC 5.04.3 To GHC developers: What is the status of this module? Can I assume that future versions of GHC will have it?
Thanks. Dean
Best regards, Tom -- .signature: Too many levels of symbolic links
participants (1)
-
Tomasz Zielonka