From eb779fb0f69cf301e9a404f57b6527ce45f3f180 Mon Sep 17 00:00:00 2001 From: Greg Weber Date: Mon, 6 May 2013 16:57:13 -0500 Subject: [PATCH] document UniqueList --- yesod-core/Yesod/Core/Types.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yesod-core/Yesod/Core/Types.hs b/yesod-core/Yesod/Core/Types.hs index 49c68d4a..bf3e1f2a 100644 --- a/yesod-core/Yesod/Core/Types.hs +++ b/yesod-core/Yesod/Core/Types.hs @@ -300,6 +300,8 @@ data Header = data Location url = Local url | Remote Text deriving (Show, Eq) +-- | A diff list that does not directly enforce uniqueness. +-- When creating a widget Yesod will use nub to make it unique. newtype UniqueList x = UniqueList ([x] -> [x]) data Script url = Script { scriptLocation :: Location url, scriptAttributes :: [(Text, Text)] }