@@ -220,17 +220,9 @@ distributeMapOverDynPure = fmap dmapToMap . distributeDMapOverDynPure . mapWithF
220220
221221-- | Convert a list with 'Dynamic' elements into a 'Dynamic' of a list with
222222-- non-'Dynamic' elements, preserving the order of the elements.
223+{-# DEPRECATED distributeListOverDynPure "Use 'distributeListOverDyn' instead" #-}
223224distributeListOverDynPure :: Reflex t => [Dynamic t v] -> Dynamic t [v]
224−distributeListOverDynPure =
225− fmap (map fromDSum . DMap.toAscList) .
226− distributeDMapOverDynPure .
227− DMap.fromDistinctAscList .
228− zipWith toDSum [0..]
229− where
230− toDSum :: Int -> Dynamic t a -> DSum (Const2 Int a) (Dynamic t)
231− toDSum k v = Const2 k :=> v
232− fromDSum :: DSum (Const2 Int a) Identity -> a
233− fromDSum (Const2 _ :=> Identity v) = v
225+distributeListOverDynPure = distributeListOverDyn
234226
235227--TODO: Generalize this to functors other than Maps
236228-- | Combine a 'Dynamic' of a 'Map' of 'Dynamic's into a 'Dynamic'