Wed, 15 Nov 2000 18:42:29 +0100, George Russell <[EMAIL PROTECTED]> pisze:
> What I want instead is a function which
>(a) opens the file;
>(b) slurps the complete contents compactly into an array;
>(c) closes the file;
>(d) makes the contents of the array available as a String.
A
> > So, I can't quite work out what went wrong in your case. If the build
> > didn't detect GMP 2, then it should have just used the one in the tree.
>
> Obviously, when linking, it did not use the one in the tree :-(
> Conclusion: The Linux linker does not behave like other linkers or
> there i
George Russell writes:
> The
>readFile :: FilePath -> IO String
> action returns the contents of the associated file. This is
> almost what
> I want, but not quite, because readFile is lazy. Hence if
> the string is
> only partly read, the file is still open. What I want
> instead is a
> > > So, I can't quite work out what went wrong in your case.
> If the build
> > > didn't detect GMP 2, then it should have just used the
> one in the tree.
> >
> > Obviously, when linking, it did not use the one in the tree :-(
> > Conclusion: The Linux linker does not behave like other link