wz1000 / HieDb

Generates a references DB from .hie files
BSD 3-Clause "New" or "Revised" License
64 stars 24 forks source link

Improve ambiguity errors #16

Closed jhrcek closed 3 years ago

jhrcek commented 3 years ago

reportAmbiguousErr leaks SQLData constructors in CLI output.

Example

hiedb -D /home/jhrcek/.stack/hie/all.hiedb name-def '.~' 
UnitId could be any of: [SQLText "Control.Lens.Setter",SQLText "lens-4.18.1-3OARtXsBjjo1TqgI8pcyp8",SQLInteger 0,SQLNull,SQLInteger 0,SQLText "2020-11-28 09:09:29.225392603"],[SQLText "Relude.Extra.Lens",SQLText "relude-0.7.0.0-8JaQfOxwnDuGOQ2uEgoBBX",SQLInteger 0,SQLNull,SQLInteger 0,SQLText "2020-11-28 09:07:46.035048413"]

It would be more readable if the SQLData constructors were unwrapped and each of the "any-of" results were reported on separate line.

jhrcek commented 3 years ago

Fixed in https://github.com/wz1000/HieDb/pull/18