-
Notifications
You must be signed in to change notification settings - Fork 20
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
Strange lines source code of conduit #7
Comments
http://hackage.haskell.org/package/conduit-1.3.0.2/docs/src/Data-Conduit-Combinators.html and https://github.com/snoyberg/conduit/blob/87e4c64300054014f1d3db1cbae4d67d5ca35292/conduit/src/Data/Conduit/Combinators.hs don't show lines from 1 to 251 shown by code explorer |
That's true, these lines were added by the C preprocessor (CPP). It's the correct behavior of Haskell code explorer at the moment. When CPP is only used for conditional compilation, then it is OK to show the source code before CPP pass: https://haskell-code-explorer.mfix.io/package/attoparsec-0.13.2.2/show/tests/QC/Combinator.hs#L5 (everything is readable and locations of Haskell identifiers are correct). However, CPP may also be used to add new lines of code (e.g., with Haskell code explorer attempts to choose the most 'readable' form of the source code (before CPP pass vs after CPP pass). The logic is the following (https://haskell-code-explorer.mfix.io/package/haskell-code-explorer-0.1.0.0/show/src/HaskellCodeExplorer/Preprocessor.hs#L65): if there is an The source code of I'm open to ideas on how to improve the "before CPP pass vs after CPP pass" logic. |
Namely https://haskell-code-explorer.mfix.io/package/conduit-1.3.0.2/show/src/Data/Conduit/Combinators.hs seems to contain some output from CPP preprocessor or some other tool
The text was updated successfully, but these errors were encountered: