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

Maybe the "withSomething" functions generated by C2HS should use names less possible to be used normally. #226

Open
Magicloud opened this issue Dec 28, 2018 · 0 comments

Comments

@Magicloud
Copy link

Sorry, I could not think of a more meaningful title right now. The case I talked about is:

Normally, in Haskell world, action requires finalizer or safe guard would be wrapped in withSomething function, like System.IO.withFile. C2HS also uses this naming style causes conflicts when I want to make such wapper without exposing the raw function bindings.

I have to use an "Internal" module containing raw bindings and import the type and marshaller. And another module containing my wrapper and import only type and bindings. Kind of unnecessary.

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

No branches or pull requests

1 participant