Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revitalise System.Posix.DynamicLinker.Module #260

Open
Bodigrim opened this issue Nov 18, 2022 · 0 comments
Open

Revitalise System.Posix.DynamicLinker.Module #260

Bodigrim opened this issue Nov 18, 2022 · 0 comments

Comments

@Bodigrim
Copy link
Contributor

  1. This module has virtually no documentation: there is neither a high-level overview of the API, nor any haddocks for individual functions.
  2. withModule function is partial and will throw an error Prelude.tail: empty list when mdir is Just "". This must be dealt with one way or another.

withModule :: Maybe String
-> String
-> [RTLDFlags]
-> (Module -> IO a)
-> IO a
withModule mdir file flags p = do
let modPath = case mdir of
Nothing -> file
Just dir -> dir ++ if ((head (reverse dir)) == '/')
then file
else ('/':file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant