Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
Fixes issue #3
  • Loading branch information
qnikst committed Jan 12, 2023
1 parent bcfc461 commit 09083d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ main = do
Cache.mkConfig 60 Monotonic
-- we create a cached version of computation
-- in order to hide implementation
let cachedTimeout input = Cache.requestOr cache input \i -> do
let cachedTimeout input = Cache.cacheIO cache \i -> do
threadDelay $ i * 1_000_000
pure i
-- We use our cached function
Expand Down
2 changes: 1 addition & 1 deletion src/System/Cache.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
-- Cache.'System.Cache.mkConfig' 60 'System.Clock.Seconds.MonotonicCoarse'
-- -- we create a cached version of computation
-- -- in order to hide implementation
-- let cachedTimeout = Cache.'System.Cache.mkCached' @cache@ \i -> do
-- let cachedTimeout = Cache.'System.Cache.cacheIO' @cache@ \\i -> do
-- threadDelay $ i * 1_000_000
-- pure i
-- -- We use our cached function
Expand Down

0 comments on commit 09083d8

Please sign in to comment.