Skip to content

Commit

Permalink
Fix documentation in Mocking module
Browse files Browse the repository at this point in the history
- Without a type annotation somewhere, it won't work
- The final argument is an `Either`
  • Loading branch information
pbrisbin committed Oct 24, 2023
1 parent b8288b1 commit 71322b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions library/Control/Monad/AWS/MockT.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
-- spec = do
-- describe "someAction" $ do
-- it "works" $ do
-- let matcher = 'SendMatcher' (const True) -- match all calls
-- $ 'newListBucketsResponse' -- return no buckets
-- & 'listBucketsResponse_buckets' ?~ []
-- let matcher =
-- 'SendMatcher' (const @_ @ListBuckets True) -- match all calls
-- $ Right
-- $ 'newListBucketsResponse' -- return no buckets
-- & 'listBucketsResponse_buckets' ?~ []
--
-- names <- 'runMockT' $ 'withMatcher' matcher $ someAction
-- names `shouldBe` []
Expand Down

0 comments on commit 71322b3

Please sign in to comment.