snowleopard / hadrian

Hadrian: a new build system for the Glasgow Haskell Compiler. Now merged into the GHC tree!
https://gitlab.haskell.org/ghc/ghc/tree/master/hadrian
MIT License
208 stars 39 forks source link

Discrepancy in syntax in lookupValue and system.config #509

Closed chitrak7 closed 6 years ago

chitrak7 commented 6 years ago

The function lookupValue in Hadrian.Oracles.TextFile expects file in this syntax: -- | Lookup a value in a text file, tracking the result. Each line of the file -- is expected to have @key = value@ format.

This function is called with file system.config as an argument, but the lines in this files are of the format: key = @value@ e.g. cross-compiling = @CrossCompiling@ Thus creating a discrepancy and possible errors

snowleopard commented 6 years ago

@chitrak7 I think this is just a misunderstanding:

I can see how it can be a bit confusing. I suggest you build Haddock documentation by stack haddock and then you'll be able to read the documentation in HTML, where you'll see no @.