Hello. First I'd like to thank for great job c2hs is doing. However I find a few points where it could be better.
1. New marshallers. Sometimes pointer + defaults are not good enough. Maybe something like {#marshaller cname [into hname] in='hname[-*]' out='hname[-*]#} would be helpful. Possibly overriding default marshallers would also be helpful (for example if string is encoded in UTF-8). 2. Most of the C2HS library can be done as default elements. What's the point of defining cIntConv as fromIntegral? Why not simply not insert fromIntegral or Prelude.fromIntegral? 3. I find that many times I'd like to insert a simply variable into argument. So I find out that: {#fun ... { withNullPtr- `Ptr ...', ... } -> ...#} where withNullPtr f = f nullPtr I guess that {#fun ... { nullPtr% `Ptr ...', ... } -> ...#} or similar or {#fun ... { ($nullPtr)- `Ptr ...' } -> ...#} would be helpful (the second notation allows any arbitrary Haskell function to be executed which is also usefult. Regards
signature.asc
Description: This is a digitally signed message part
_______________________________________________ C2hs mailing list C2hs@haskell.org http://www.haskell.org/mailman/listinfo/c2hs