Skip to content

Commit 72c926e

Browse files
committed
haskell: HACK: fix indexing on ghc 9.10
1 parent 9feee59 commit 72c926e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

glean/lang/haskell/HieIndexer/Index.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ toNamespace occ
144144
| GHC.isTvOcc occ = Hs.Namespace_tyvar
145145
| GHC.isTcOcc occ = Hs.Namespace_tycon
146146
| GHC.isDataOcc occ = Hs.Namespace_datacon
147+
#if MIN_VERSION_ghc(9,10,0)
148+
-- TODO: this is definitely wrong lol
149+
| GHC.isFieldOcc occ = Hs.Namespace_var_
150+
#endif
147151
| otherwise = error "toNamespace"
148152

149153
isRecFieldRef :: RecFieldContext -> Bool

0 commit comments

Comments
 (0)