haskell / c2hs

c2hs is a pre-processor for Haskell FFI bindings to C libraries
http://hackage.haskell.org/package/c2hs
Other
198 stars 50 forks source link

Fix runtime error when adding `%` to an out param. #153

Closed deech closed 8 years ago

deech commented 8 years ago

Fixes a pattern match error.

deech commented 8 years ago

I couldn't get the regression test suite built so I'm not sure what's failing.

This fixes the issue where the phrase:

{# ... {} -> %'Blah' #}

throws a pattern match error.

ian-ross commented 8 years ago

Don't worry about the regression tests for the moment. There's an outstanding issue with at least one package - I caused a regression fixing something else and didn't notice. I'm not sure when I'll have time to do C2HS things next, since I'm busy with work, but I'll try to look over this some time this week and merge it. I also need to fix this issue that's breaking the regression tests...

ian-ross commented 8 years ago

Thanks! Looks harmless even though the regression tests are failing. I'm looking at the regressions right now anyway.