HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleuglymemo-0.1.0.1Haskell98

Data.MemoUgly

  • 2 values
  • Packageuglymemo-0.1.0.1
  • Exports2
  • LanguageHaskell98
  • LicenceLicenseRef-PublicDomain
  • SourceMemoUgly.hs
valuememoIO
  1. :: Ord a
  2. => (a -> b)

    Function to memoize

  3. -> IO (a -> IO b)
#

Memoize the given function by allocating a memo table, and then updating the memo table on each function call.

valuememo
  1. :: Ord a
  2. => (a -> b)

    Function to memoize

  3. -> a
  4. -> b
#

The pure version of memoIO.