From 104bf6bfa0d52f6b51992df98dcc17232fc7b75d Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Sat, 10 Jul 2021 13:53:04 +0300 Subject: Clarify that malloc, free etc. are the ones from stdlib.h --- libraries/base/Foreign/Marshal/Alloc.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libraries/base') diff --git a/libraries/base/Foreign/Marshal/Alloc.hs b/libraries/base/Foreign/Marshal/Alloc.hs index 76398b80a6..3d20393368 100644 --- a/libraries/base/Foreign/Marshal/Alloc.hs +++ b/libraries/base/Foreign/Marshal/Alloc.hs @@ -37,6 +37,11 @@ -- aligned for that type. Array allocation routines need to obey the same -- alignment constraints for each array element. -- +-- The underlying implementation is wrapping the @@ +-- @malloc@, @realloc@, and @free@. +-- In other words it should be safe to allocate using C-@malloc@, +-- and free memory with 'free' from this module. +-- ----------------------------------------------------------------------------- module Foreign.Marshal.Alloc ( -- cgit v1.2.1