Skip to content

Commit 69d79c7

Browse files
committed
haskell: HACK: fix indexing on ghc 9.10
2 parents 4961acc + d2aebf6 commit 69d79c7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

glean/hs/Glean/Query/Thrift/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import Data.IORef
4747
import qualified Data.Map as Map
4848
import Data.Maybe
4949
import Data.Proxy
50-
import Data.Text as Text
50+
import Data.Text as Text hiding (show)
5151
import qualified Data.Text.Encoding as Text
5252
import Compat.Prettyprinter hiding ((<>))
5353
import qualified Data.Vector as Vector

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)