We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1543b15 commit 5e5eaaaCopy full SHA for 5e5eaaa
src/Distribution/Server/Framework/HtmlFormWrapper.hs
@@ -181,9 +181,10 @@ parsePathTmpl v = parseKey
181
parseJVal s = JSON.decode (BS8.pack s)
182
183
accumJPaths :: [JPath] -> Maybe JSON.Value
184
-accumJPaths js = foldr (\j r v -> case insertJPath j v of
185
- Nothing -> Nothing
186
- Just v' -> r v') Just js JSON.Null
+accumJPaths js = f JSON.Null
+ where
+ f :: JSON.Value -> Maybe JSON.Value
187
+ f = foldr (\ j r -> insertJPath j >=> r) Just js
188
189
insertJPath :: JPath -> JSON.Value -> Maybe JSON.Value
190
insertJPath (JField f p) JSON.Null = do
0 commit comments