TypeCache typo and module exposure
This commit is contained in:
parent
00b5781ec5
commit
f18d0a8bac
@ -855,7 +855,7 @@ getMessageRender = do
|
|||||||
|
|
||||||
-- | Use a per-request cache to avoid performing the same action multiple times.
|
-- | 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.
|
-- 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.
|
-- 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.
|
-- This means that another module can create its own newtype wrapper to cache the same type from a different action without any cache conflicts.
|
||||||
|
|||||||
@ -19,7 +19,7 @@ type KeyedTypeMap = HashMap (TypeRep, ByteString) Dynamic
|
|||||||
|
|
||||||
-- | avoid performing the same action multiple times.
|
-- | avoid performing the same action multiple times.
|
||||||
-- Values are stored by their type, the result of typeOf from Typeable.
|
-- 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.
|
-- 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.
|
-- This means that another module can create its own newtype wrapper to cache the same type from a different action without any cache conflicts.
|
||||||
|
|||||||
@ -74,7 +74,6 @@ library
|
|||||||
Yesod.Core.Widget
|
Yesod.Core.Widget
|
||||||
Yesod.Core.Internal
|
Yesod.Core.Internal
|
||||||
Yesod.Core.Types
|
Yesod.Core.Types
|
||||||
Yesod.Core.TypeCache
|
|
||||||
other-modules: Yesod.Core.Internal.Session
|
other-modules: Yesod.Core.Internal.Session
|
||||||
Yesod.Core.Internal.Request
|
Yesod.Core.Internal.Request
|
||||||
Yesod.Core.Class.Handler
|
Yesod.Core.Class.Handler
|
||||||
@ -86,6 +85,7 @@ library
|
|||||||
Yesod.Core.Class.Yesod
|
Yesod.Core.Class.Yesod
|
||||||
Yesod.Core.Class.Dispatch
|
Yesod.Core.Class.Dispatch
|
||||||
Yesod.Core.Class.Breadcrumbs
|
Yesod.Core.Class.Breadcrumbs
|
||||||
|
Yesod.Core.TypeCache
|
||||||
Paths_yesod_core
|
Paths_yesod_core
|
||||||
|
|
||||||
Yesod.Routes.TH
|
Yesod.Routes.TH
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user