haskell / c2hs

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

Unable to build documentation #253

Closed poscat0x04 closed 3 years ago

poscat0x04 commented 4 years ago

using cabal:

<no location info>: error:
    module ‘main:Main’ is defined in multiple files: src/Main.hs
                                                     src/C2HS/C/Names.hs
                                                     src/C2HS/C/Trav.hs
                                                     src/C2HS/Gen/Header.hs
Warning: Failed to build documentation for exe:c2hs from c2hs-0.28.6.
georgefst commented 3 years ago

Turns out this is a very misleading error message. Can be fixed by removing 6 lines across 4 files, where there are comments beginning with *.

georgefst commented 3 years ago

Those *s are actually serving a purpose in terms of formatting, but perhaps they could be replaced with something like -.