@@ -102,7 +102,7 @@ class ToForm a where
102 default toForm :: (Generic a, GToForm (Rep a)) => a -> Form
102 default toForm :: (Generic a, GToForm (Rep a)) => a -> Form
103 toForm = genericToForm
103 toForm = genericToForm
105−instance ToForm [(T.Text, T.Text)] where toForm = Form . M.fromList
105+instance ToForm [(T.Text, T.Text)] where toForm = fromList
106instance ToForm (M.Map T.Text T.Text) where toForm = Form
106instance ToForm (M.Map T.Text T.Text) where toForm = Form
107instance ToForm Form where toForm = id
107instance ToForm Form where toForm = id
@@ -191,7 +191,7 @@ class FromForm a where
191 fromForm = genericFromForm
191 fromForm = genericFromForm
193instance FromForm Form where fromForm = return
193instance FromForm Form where fromForm = return
194−instance FromForm [(T.Text, T.Text)] where fromForm = return . M.toList . unForm
194+instance FromForm [(T.Text, T.Text)] where fromForm = toList
195instance FromForm (M.Map T.Text T.Text) where fromForm = return . unForm
195instance FromForm (M.Map T.Text T.Text) where fromForm = return . unForm
197-- | A 'Generic'-based implementation of 'fromForm'.
197-- | A 'Generic'-based implementation of 'fromForm'.