haskell / haskell/hsc2hs

Line numbers don't match up

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

Description

I have the following hsc file. [Pcre2.hsc.txt](https://github.com/haskell/hsc2hs/files/2707789/Pcre2.hsc.txt)

I get in the generated .hs file

```
{-# LINE 81 "Pcre2.hsc" #-}
data C'pcre2_callout_block_8 = C'pcre2_callout_block_8{
c'pcre2_callout_block_8'version :: CUInt,
c'pcre2_callout_block_8'callout_number :: CUInt,
c'pcre2_callout_block_8'capture_top :: CUInt,
c'pcre2_callout_block_8'capture_last :: CUInt,
c'pcre2_callout_block_8'offset_vector :: Ptr CSize,
c'pcre2_callout_block_8'mark :: C'PCRE2_SPTR8,
c'pcre2_callout_block_8'subject :: C'PCRE2_SPTR8,
c'pcre2_callout_block_8'subject_length :: CSize,
c'pcre2_callout_block_8'start_match :: CSize,
c'pcre2_callout_block_8'current_position :: CSize,
c'pcre2_callout_block_8'pattern_position :: CSize,
c'pcre2_callout_block_8'next_item_length :: CSize,
c'pcre2_callout_block_8'callout_string_offset :: CSize,
c'pcre2_callout_block_8'callout_string_length :: CSize,
c'pcre2_callout_block_8'callout_string :: C'PCRE2_SPTR8,
c'pcre2_callout_block_8'callout_flags :: CUInt
} deriving (Eq,Show)
```

But this should be about line 46

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.