Skip to content
Snippets Groups Projects
Commit 081376c3 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel :man_dancing:
Browse files

Fix Haddock markup

parent 8a40424a
No related branches found
No related tags found
No related merge requests found
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
-- Stability : provisional -- Stability : provisional
-- Portability : non-portable (requires POSIX) -- Portability : non-portable (requires POSIX)
-- --
-- DLOpen and friend -- @dlopen(3)@ and friends
-- Derived from GModule.chs by M.Weber & M.Chakravarty which is part of c2hs -- Derived from @GModule.chs@ by M.Weber & M.Chakravarty which is part of c2hs.
-- I left the API more or less the same, mostly the flags are different. -- I left the API more or less the same, mostly the flags are different.
-- --
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
...@@ -44,12 +44,12 @@ import Foreign.C.Types ...@@ -44,12 +44,12 @@ import Foreign.C.Types
import Foreign.C.String ( CString ) import Foreign.C.String ( CString )
-- |On some hosts (e.g. SuSe and Ubuntu Linux) 'RTLD_NEXT' (and -- |On some hosts (e.g. SuSe and Ubuntu Linux) @RTLD_NEXT@ (and
-- 'RTLD_DEFAULT') are not visible without setting the macro -- @RTLD_DEFAULT@) are not visible without setting the macro
-- '_GNU_SOURCE'. Since we don't want to define this macro, you can use -- @_GNU_SOURCE@. Since we don\'t want to define this macro, you can use
-- the function 'haveRtldNext' to check wether the flag `Next` is -- the function 'haveRtldNext' to check wether the flag `Next` is
-- available. Ideally, this will be optimized by the compiler so that it -- available. Ideally, this will be optimized by the compiler so that it
-- should be as efficient as an #ifdef. -- should be as efficient as an @#ifdef@.
-- --
-- If you fail to test the flag and use it although it is undefined, -- If you fail to test the flag and use it although it is undefined,
-- 'packDL' will throw an error. -- 'packDL' will throw an error.
...@@ -98,9 +98,9 @@ packRTLDFlag RTLD_LOCAL = #const RTLD_LOCAL ...@@ -98,9 +98,9 @@ packRTLDFlag RTLD_LOCAL = #const RTLD_LOCAL
-- |Flags for 'System.Posix.DynamicLinker.dlsym'. Notice that 'Next' -- |Flags for 'System.Posix.DynamicLinker.dlsym'. Notice that 'Next'
-- might not be available on your particular platform! Use -- might not be available on your particular platform! Use
-- `haveRtldNext`. -- 'haveRtldNext'.
-- --
-- If 'RTLD_DEFAULT' is not defined on your platform, `packDL` `Default` -- If 'RTLD_DEFAULT' is not defined on your platform, 'packDL' 'Default'
-- reduces to 'nullPtr'. -- reduces to 'nullPtr'.
data DL = Null | Next | Default | DLHandle (Ptr ()) deriving (Show) data DL = Null | Next | Default | DLHandle (Ptr ()) deriving (Show)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment