Open saurabhnanda opened 3 months ago
If the following form is submitted...
<input type="text' name="photos[][id]" value="1" /> <input type="text' name="photos[][caption]" value="caption1" /> <input type="text' name="photos[][id]" value="2" /> <input type="text' name="photos[][caption]" value="caption2" /> <input type="text' name="photos[][id]" value="3" /> <input type="text' name="photos[][caption]" value="caption3" />
... does the library guarantee that the resultant values of the HashMap inside Form { unForm :: HashMap Text [Text] } will be in the same order as submitted by the browser, i.e. is the following result guaranteed?
HashMap
Form { unForm :: HashMap Text [Text] }
HashMap.fromList [ ("photos[][id]", ["1", "2", "3"]) , ("photos[][caption]", ["caption1", "caption2", "caption3"]) ]
There are some stable function variants, but somehow the documentation doesn't give the above clarity/comfort from my point of view.
stable
If the following form is submitted...
... does the library guarantee that the resultant values of the
HashMap
insideForm { unForm :: HashMap Text [Text] }
will be in the same order as submitted by the browser, i.e. is the following result guaranteed?There are some
stable
function variants, but somehow the documentation doesn't give the above clarity/comfort from my point of view.