From f18d0a8bac1a88823e228a93f761a7ccad6d9ac0 Mon Sep 17 00:00:00 2001 From: Greg Weber Date: Sat, 20 Sep 2014 20:57:27 -0700 Subject: [PATCH] TypeCache typo and module exposure --- yesod-core/Yesod/Core/Handler.hs | 2 +- yesod-core/Yesod/Core/TypeCache.hs | 2 +- yesod-core/yesod-core.cabal | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/yesod-core/Yesod/Core/Handler.hs b/yesod-core/Yesod/Core/Handler.hs index faf5f183..36f8f5c4 100644 --- a/yesod-core/Yesod/Core/Handler.hs +++ b/yesod-core/Yesod/Core/Handler.hs @@ -855,7 +855,7 @@ getMessageRender = do -- | Use a per-request cache to avoid performing the same action multiple times. -- Values are stored by their type, the result of typeOf from Typeable. --- Therefore, you should use differnt newtype wrappers at each cache site. +-- Therefore, you should use different newtype wrappers at each cache site. -- -- For example, yesod-auth uses an un-exported newtype, CachedMaybeAuth and exports functions that utilize it such as maybeAuth. -- This means that another module can create its own newtype wrapper to cache the same type from a different action without any cache conflicts. diff --git a/yesod-core/Yesod/Core/TypeCache.hs b/yesod-core/Yesod/Core/TypeCache.hs index 62356d33..3b68f8c2 100644 --- a/yesod-core/Yesod/Core/TypeCache.hs +++ b/yesod-core/Yesod/Core/TypeCache.hs @@ -19,7 +19,7 @@ type KeyedTypeMap = HashMap (TypeRep, ByteString) Dynamic -- | avoid performing the same action multiple times. -- Values are stored by their type, the result of typeOf from Typeable. --- Therefore, you should use differnt newtype wrappers at each cache site. +-- Therefore, you should use different newtype wrappers at each cache site. -- -- For example, yesod-auth uses an un-exported newtype, CachedMaybeAuth and exports functions that utilize it such as maybeAuth. -- This means that another module can create its own newtype wrapper to cache the same type from a different action without any cache conflicts. diff --git a/yesod-core/yesod-core.cabal b/yesod-core/yesod-core.cabal index 9a55a686..7559c52e 100644 --- a/yesod-core/yesod-core.cabal +++ b/yesod-core/yesod-core.cabal @@ -74,7 +74,6 @@ library Yesod.Core.Widget Yesod.Core.Internal Yesod.Core.Types - Yesod.Core.TypeCache other-modules: Yesod.Core.Internal.Session Yesod.Core.Internal.Request Yesod.Core.Class.Handler @@ -86,6 +85,7 @@ library Yesod.Core.Class.Yesod Yesod.Core.Class.Dispatch Yesod.Core.Class.Breadcrumbs + Yesod.Core.TypeCache Paths_yesod_core Yesod.Routes.TH