diff options
author | Ben Gamari <ben@smart-cactus.org> | 2023-01-18 14:33:52 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-01-28 02:57:59 -0500 |
commit | 56c1bd986ac13e3a1fe1149f011480e44f857f5a (patch) | |
tree | c5cf6a50a461de93072b9f338f4381be8ed47ec1 /docs | |
parent | 77fdbd3f7798ae7095a6a22c3674c08c86a91c6c (diff) | |
download | haskell-56c1bd986ac13e3a1fe1149f011480e44f857f5a.tar.gz |
Revert "CApiFFI: add ConstPtr for encoding const-qualified pointer return types (#22043)"
This reverts commit 99aca26b652603bc62953157a48e419f737d352d.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/9.6.1-notes.rst | 3 | ||||
-rw-r--r-- | docs/users_guide/exts/ffi.rst | 12 |
2 files changed, 0 insertions, 15 deletions
diff --git a/docs/users_guide/9.6.1-notes.rst b/docs/users_guide/9.6.1-notes.rst index f0961348f3..e78972a919 100644 --- a/docs/users_guide/9.6.1-notes.rst +++ b/docs/users_guide/9.6.1-notes.rst @@ -167,9 +167,6 @@ Runtime system ``ghc`` library ~~~~~~~~~~~~~~~ -- Add `Foreign.C.Types.ConstPtr` was added to encode ``const``-qualified pointer return - types in foreign declarations when using ``CApiFFI`` extension. - ``ghc-heap`` library ~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/users_guide/exts/ffi.rst b/docs/users_guide/exts/ffi.rst index f23c223279..b490ac662d 100644 --- a/docs/users_guide/exts/ffi.rst +++ b/docs/users_guide/exts/ffi.rst @@ -437,18 +437,6 @@ specified. The syntax looks like: :: data {-# CTYPE "unistd.h" "useconds_t" #-} T = ... newtype {-# CTYPE "useconds_t" #-} T = ... -In case foreign declarations contain ``const``-qualified pointer return -type, `ConstPtr` from :base-ref:`Foreign.C.Types` may be used to -encode this, e.g. :: - - foreign import capi "header.h f" f :: CInt -> ConstPtr CInt - -which corresponds to - -.. code-block:: c - - const *int f(int); - ``hs_thread_done()`` ~~~~~~~~~~~~~~~~~~~~ |