Commit Graph

3 Commits

Author SHA1 Message Date
Dylan Yudaken
e5f95d6213 move minimum supported version to GHC 8.2
Summary: Bump the minimum Haxl version to GHC 8.2, which at this point is 2.5 years old but more importantly has many features that are really helpful in Haxl (such as the hs_try_put_mvar API function, which is really useful for BackgroundFetch)

Reviewed By: josefs

Differential Revision: D19327952

fbshipit-source-id: f635068fe9fb8f1d1f0d83ccbf9c3c04947183a0
2020-01-10 01:32:54 -08:00
Anubhav Bindlish
327d85f658 Add an IORef for non-memoized logs
Summary:
This diff provides a way to do logs from a haxl computation, but not
have them memoized. This is a better alternative than doing arbitrary IO from
haxl.

Reviewed By: xich

Differential Revision: D17809398

fbshipit-source-id: 1cfe6fe24df09f12d352a18a1a78486b0a9976f8
2019-10-08 11:10:37 -07:00
Anubhav Bindlish
b03f2e5102 Add correctness tests
Summary:
Most important thing I want to test is that when a memoized
computation happens again - the writes are indeed duplicated in the
environment. This diff adds tests for different ways memoized computation can
happen in conjunction with non-memoized computation..

Reviewed By: simonmar

Differential Revision: D14386667

fbshipit-source-id: a03a9a41697def968bf6e11ad66b9dd9f3a9a7f1
2019-04-10 09:48:57 -07:00