wz1000 / HieDb

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

search def occname has expects a colon after classification char #66

Closed josephsumabat closed 8 months ago

josephsumabat commented 8 months ago

Occ names seem to have a colon separating them from their category (at least on GHC version 9.6.2) causing searchDef to fail. Possibly should be conditional on the ghc version (happy to edit this PR if that's the case) but unsure whether/when this changed.

sqlite> select occ from defs;
v:bindir
v:catchIO
v:datadir
v:dynlibdir
v:getBinDir
v:getDataDir
v:getDataFileName
v:getDynLibDir
wz1000 commented 8 months ago

Thanks! Sorry for the oversight, I will try to add some tests to exercise this code path.