Skip to content

Commit

Permalink
Support GHC 9.2.8 in the OSS build (#1147)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebookincubator/zstrong#1147

Reviewed By: josefs

Differential Revision: D68326697
  • Loading branch information
Simon Marlow authored and facebook-github-bot committed Jan 20, 2025
1 parent 9f5383c commit e5dd742
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 23 deletions.
5 changes: 4 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ tests: True
-- necessary to use a haskeline <0.8 with GHCs that ship with base >= 4.14
allow-newer: haskeline:base

-- we use haskell-names < 0.10, but need to override some upper bounds
allow-newer: haskell-names:aeson, haskell-names:bytestring

-- https://github.com/TomMD/entropy/issues/75
constraints: entropy < 0.4.1.9

index-state: 2022-12-25T00:00:00Z
index-state: 2025-01-17T00:00:00Z

package glean
flags: -fbthrift
Expand Down
33 changes: 16 additions & 17 deletions glean.cabal.in
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,16 @@ common deps
random,
regex-base,
regex-pcre,
ghc-prim,
base >=4.11.1 && <4.15,
base >=4.11.1 && <4.17,
array ^>=0.5.2.0,
async ^>=2.2.1,
attoparsec ^>=0.13.2.3,
attoparsec >=0.13.2.3 && <0.15,
unordered-containers ^>=0.2.9.0,
containers,
contravariant ^>=1.5,
text ^>=1.2.3.0,
bytestring ^>=0.10.8.2,
vector ^>=0.12.0.1,
bytestring >=0.10.8.2 && <0.12,
vector >=0.12.0.1 && <0.14,
transformers ^>=0.5.6.2,
network-uri ^>=2.6.1.0,
stm ^>=2.5.0.0,
Expand All @@ -157,15 +156,15 @@ common deps
mtl ^>=2.2.2,
unix ^>=2.7.2.2,
process ^>=1.6.3.0,
prettyprinter >=1.2.1 && <1.7,
prettyprinter >=1.2.1 && <1.8,
time >=1.8.0.2 && <1.12,
binary ^>=0.8.5.1,
deepseq ^>=1.4.3.0,
hashable >=1.2.7.0 && <1.4,
hashable >=1.2.7.0 && <1.6,
tar ^>=0.5.1.0,
ghc-prim >=0.5.2.0 && <0.7,
ghc-prim >=0.5.2.0 && <0.9,
parsec ^>=3.1.13.0,
haxl >= 2.1.2.0 && < 2.4,
haxl >= 2.1.2.0 && < 2.6,
hinotify ^>= 0.4.1

common hsc2hs-cpp
Expand Down Expand Up @@ -917,7 +916,7 @@ executable glean-server
glean:core,
glean:db,
glean:util,
haskeline >=0.7.3 && <0.8,
haskeline >=0.7.3 && <0.9,
json

library shell-lib
Expand All @@ -943,7 +942,7 @@ library shell-lib
glean:indexers,
glean:util,
glean:lsif,
haskeline >=0.7.3 && <0.8,
haskeline >=0.7.3 && <0.9,
json,
monad-control,
prettyprinter-ansi-terminal,
Expand Down Expand Up @@ -1324,7 +1323,7 @@ library bench-util
Glean.Util.Benchmark
build-depends:
glean:stubs,
criterion
criterion < 1.6

executable query-bench
import: fb-haskell, fb-cpp, deps, exe
Expand All @@ -1343,7 +1342,7 @@ executable query-bench
glean:schema,
glean:test-lib,
glean:util,
criterion
criterion < 1.6

executable rename-bench
import: fb-haskell, fb-cpp, deps, exe
Expand All @@ -1359,7 +1358,7 @@ executable rename-bench
glean:schema,
glean:test-lib,
glean:util,
criterion
criterion < 1.6

executable user-query-bench
import: fb-haskell, fb-cpp, deps, exe
Expand All @@ -1376,7 +1375,7 @@ executable user-query-bench
glean:schema,
glean:test-lib,
glean:util,
criterion
criterion < 1.6

executable makefact-bench
import: fb-haskell, deps, exe
Expand All @@ -1391,7 +1390,7 @@ executable makefact-bench
glean:core,
glean:schema,
glean:test-lib,
criterion
criterion < 1.6

executable compile-bench
import: fb-haskell, fb-cpp, deps, exe
Expand All @@ -1408,7 +1407,7 @@ executable compile-bench
glean:schema,
glean:test-lib,
glean:util,
criterion,
criterion < 1.6,
criterion-measurement,
statistics,
vector-algorithms
Expand Down
6 changes: 3 additions & 3 deletions glean/hs/Glean/Angle/Lexer.x
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ encodeTextForAngle :: Text -> Text
encodeTextForAngle =
Text.decodeUtf8 . Lazy.toStrict . Aeson.encode . Aeson.String

alexGetUserState :: Alex AlexUserState
alexGetUserState = Alex $ \s@AlexState{alex_ust} -> Right (s, alex_ust)
alexGetUserState_ :: Alex AlexUserState
alexGetUserState_ = Alex $ \s@AlexState{alex_ust} -> Right (s, alex_ust)

getToken :: Alex (SrcLoc, Token)
getToken = do
inp__@(_,_,_,n) <- alexGetInput
sc <- alexGetStartCode
ust <- alexGetUserState
ust <- alexGetUserState_
case alexScanUser ust inp__ sc of
AlexEOF -> alexEOF
AlexError ((AlexPn _ line column),_,_,_) ->
Expand Down
4 changes: 2 additions & 2 deletions glean/lang/clang/glean-clang.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ common deps
ansi-terminal ^>= 0.11,
array ^>=0.5.2.0,
async ^>=2.2.1,
base >=4.11.1 && <4.15,
base >=4.11.1 && <4.17,
containers,
data-default,
deepseq ^>=1.4.3.0,
Expand All @@ -55,7 +55,7 @@ common deps
text ^>=1.2.3.0,
thrift-lib,
unordered-containers ^>=0.2.9.0,
vector ^>=0.12.0.1,
vector >=0.12.0.1 && <0.14,

common exe
ghc-options: -threaded
Expand Down

0 comments on commit e5dd742

Please sign in to comment.