haskell / haskell/c2hs

"pointer foreign finalizer fcide" not working

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

Description

Using
`C->Haskell Interface Version C->Haskell Compiler, version 0.28.1 Switcheroo, 1 April 2016`

I'm defining a pointer

``` haskell
data CChannel
{#pointer *channel as Channel foreign finalizer channel_destroy -> CChannel#}
```

However, the finalizer is only added in `{#fun#}` declarations in the same file. Fun declarations in other files don't get the finalizer.

The `.chi` file doesn't mention the finalizer function.

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.