@@ -14,12 +14,14 @@ module Web.Internal.FormUrlEncoded where
1414
1515#if __GLASGOW_HASKELL__ < 710
1616import Control.Applicative
17+import Data.Traversable
1718#endif
1819
1920import Control.Arrow ((***))
2021import Control.Monad ((<=<))
2122import qualified Data.ByteString.Lazy as BSL
2223import qualified Data.ByteString.Lazy.Char8 as BSL8
24+import qualified Data.Foldable as F
2325import Data.Hashable (Hashable)
2426import Data.HashMap.Strict (HashMap)
2527import qualified Data.HashMap.Strict as HashMap
@@ -450,7 +452,7 @@ encodeAsForm = encodeForm . toForm
450452-- >>> lookupKey "name" [("name", "Oleg"), ("name", "David")]
451453-- ["Oleg","David"]
452454lookupKey :: Text -> Form -> [Text]
453−lookupKey key = concat . HashMap.lookup key . unForm
455+lookupKey key = F.concat . HashMap.lookup key . unForm
454456
455457-- | Lookup a unique value for a key.
456458-- Fail if there is zero or more than one value.