diff options
Diffstat (limited to 'libraries/base/GHC/Ptr.hs')
-rw-r--r-- | libraries/base/GHC/Ptr.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libraries/base/GHC/Ptr.hs b/libraries/base/GHC/Ptr.hs index 1bc4cac1ea..e4021ee115 100644 --- a/libraries/base/GHC/Ptr.hs +++ b/libraries/base/GHC/Ptr.hs @@ -93,9 +93,7 @@ minusPtr (Ptr a1) (Ptr a2) = I# (minusAddr# a1 a2) ------------------------------------------------------------------------ -- Function pointers for the default calling convention. --- 'FunPtr' has a phantom role for similar reasons to 'Ptr'. Note --- that 'FunPtr's role cannot become nominal without changes elsewhere --- in GHC. See Note [FFI type roles] in GHC.Tc.Gen.Foreign. +-- 'FunPtr' has a phantom role for similar reasons to 'Ptr'. type role FunPtr phantom data FunPtr a = FunPtr Addr# deriving (Eq, Ord) -- ^ A value of type @'FunPtr' a@ is a pointer to a function callable |