[project @ 2003-10-21 13:24:31 by simonmar]
authorsimonmar <unknown>
Tue, 21 Oct 2003 13:24:31 +0000 (13:24 +0000)
committersimonmar <unknown>
Tue, 21 Oct 2003 13:24:31 +0000 (13:24 +0000)
commited492ba62440cdfced0a12e35415d701988a77b7
tree74bec9b69fd6710048bd785492b959bec5240db9
parent057101550d65351f0e84b6a537ee5c95245aaa6e
[project @ 2003-10-21 13:24:31 by simonmar]
Make the GHC implementation of peekCString run in constant stack-space
by checking the length of the array first and then working backwards
from the end.  Interestingly, this version is faster than the original.
Foreign/C/String.hs