Skip to content

Commit

Permalink
support GHC 9.0.1 (facebook#144)
Browse files Browse the repository at this point in the history
Summary:
new GHC 9.0 parser fails on space before strict operator

![image](https://user-images.githubusercontent.com/18636038/138489244-9321cc80-5bdf-4496-80ef-6afb289a2f13.png)

this pull request supports GHC 9.0 by removing this space.

Pull Request resolved: facebook#144

Reviewed By: josefs

Differential Revision: D33074741

Pulled By: watashi

fbshipit-source-id: 78579a041f939c0d9a0690a0e88f2ba881972332
  • Loading branch information
nalchevanidze authored and facebook-github-bot committed Dec 15, 2021
1 parent 461e12f commit 115b3be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc: ['8.10.2', '8.8.4', '8.6.5', '8.4.4', '8.2.2']
ghc: ['9.0.1', '8.10.2', '8.8.4', '8.6.5', '8.4.4', '8.2.2']

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Haxl/Core/DataCache.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ newtype DataCache res = DataCache (HashTable TypeRep (SubCache res))
--
data SubCache res =
forall req a . (Hashable (req a), Eq (req a)) =>
SubCache (req a -> String) (a -> String) ! (HashTable (req a) (res a))
SubCache (req a -> String) (a -> String) !(HashTable (req a) (res a))
-- NB. the inner HashMap is strict, to avoid building up
-- a chain of thunks during repeated insertions.

Expand Down

0 comments on commit 115b3be

Please sign in to comment.