Change foldl's to foldr's to get DataSource markdown renderer resolution showing up in the correct order.

This commit is contained in:
Dillon Kearns 2021-07-17 08:29:31 -07:00
parent d9f3372669
commit 93a595c869
2 changed files with 2 additions and 2 deletions

View File

@ -1567,7 +1567,7 @@ bumpHeadings by markdown =
allStaticHttp : List (DataSource a) -> DataSource (List a)
allStaticHttp =
List.foldl (DataSource.map2 (::)) (DataSource.succeed [])
List.foldr (DataSource.map2 (::)) (DataSource.succeed [])
bumpHeadingLevel : Block.HeadingLevel -> Block.HeadingLevel

View File

@ -418,7 +418,7 @@ resolve =
-}
combine : List (DataSource value) -> DataSource (List value)
combine =
List.foldl (map2 (::)) (succeed [])
List.foldr (map2 (::)) (succeed [])
{-| Like map, but it takes in two `Request`s.