diff options
author | ralf <unknown> | 2004-12-23 00:02:42 +0000 |
---|---|---|
committer | ralf <unknown> | 2004-12-23 00:02:42 +0000 |
commit | 097b24384a2e561fca70a6b3c4098b9e96196434 (patch) | |
tree | 68bb9f7cc67899a27f39e7fde5d74c3f8dcd3442 /libraries/base/GHC/ForeignPtr.hs | |
parent | 554bbc180ff1f404d149501f66c0dd2a6fa1d941 (diff) | |
download | haskell-097b24384a2e561fca70a6b3c4098b9e96196434.tar.gz |
[project @ 2004-12-23 00:02:41 by ralf]
Resolved stage1 issues related SPJ's
commit "Add more scoped type variables".
Incidentally, this provides some input for
the recent GHC list discussion on whether
to provide lex. scope for function signatures.
Not too many modules are affected! Good!
The example hslibs/data/edison/Seq/BinaryRandList.hs
was interesting in so far that indeed up-front
function signatures were given in one shot, so
one is really a bit confused to see type variables
in where clauses to clash with far-removed top-level
function signatures.
Ralf
Diffstat (limited to 'libraries/base/GHC/ForeignPtr.hs')
-rw-r--r-- | libraries/base/GHC/ForeignPtr.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/GHC/ForeignPtr.hs b/libraries/base/GHC/ForeignPtr.hs index 355d7a1e64..a418efcede 100644 --- a/libraries/base/GHC/ForeignPtr.hs +++ b/libraries/base/GHC/ForeignPtr.hs @@ -106,7 +106,7 @@ mallocForeignPtr :: Storable a => IO (ForeignPtr a) -- assume that the memory returned by 'mallocForeignPtr' has been -- allocated with 'Foreign.Marshal.Alloc.malloc'. mallocForeignPtr = doMalloc undefined - where doMalloc :: Storable a => a -> IO (ForeignPtr a) + where doMalloc :: Storable b => b -> IO (ForeignPtr b) doMalloc a = do r <- newIORef [] IO $ \s -> |