haskell / haskell/c2hs

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

Open
#226 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
211
Forks
52
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.