support GHC 9.0.1 (#144)

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: https://github.com/facebook/Haxl/pull/144

Reviewed By: josefs

Differential Revision: D33074741

Pulled By: watashi

fbshipit-source-id: 78579a041f939c0d9a0690a0e88f2ba881972332
This commit is contained in:
nalchevanidze 2021-12-14 16:40:59 -08:00 committed by Facebook GitHub Bot
parent 461e12f4d7
commit 115b3be9f4
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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.