Angus is right on the track. I would only modify
it slightly:
content_xxx :: String
content_xxx = (unsafePerformIO . readFile) "xxx"
From Hugs perspective content_xxx is a constant.
Your may easily demonstrate it this way:
:!echo blah > xxx
content_xxx ==> "blah"
:!echo Hello > xxx
content_xxx ==> "blah"
Jan
- openfile :: String -> String Hamilton Richards
- Re: openfile :: String -> String Lars Lundgren
- Re: openfile :: String -> String John Atwood
- Re: openfile :: String -> String Hamilton Richards
- RE: openfile :: String -> String Jan Skibinski
- RE: openfile :: String -> String Chris Angus
