Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line numbers don't match up #14

Open
flip111 opened this issue Dec 24, 2018 · 0 comments
Open

Line numbers don't match up #14

flip111 opened this issue Dec 24, 2018 · 0 comments

Comments

@flip111
Copy link

flip111 commented Dec 24, 2018

I have the following hsc file. 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

@flip111 flip111 changed the title Build with stack LTS-13.0 Line numbers don't match up Dec 24, 2018
flip111 added a commit to flip111/hsc2hs that referenced this issue Dec 26, 2018
flip111 added a commit to flip111/hsc2hs that referenced this issue Dec 26, 2018
flip111 added a commit to flip111/hsc2hs that referenced this issue Dec 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant