You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, my program returns within seconds with the below function, but runs forever when the first occurrence of f1' is replaced with the equivalent f1 m.
import qualified Data.Map as M
combine :: (Ord k) => (M.Map k v -> [(k, v)]) -> (M.Map k v -> [(k, v)])
-> (M.Map k v -> [(k, v)])
combine f1 f2 m =
let f1' = f1 m
f2' = f2 (m `M.union` M.fromList f1') -- program does not terminate when f1' is replace with f1 m
in f1' ++ f2'
Not sure if this expected or known, but I cannot explain it, so reporting it in case it's worth further investigation.
Let's see if we can reproduce this behavior in a small file.
If not, if you are interested, we could give you access to the complete project that has this behavior.
Hey, my program returns within seconds with the below function, but runs forever when the first occurrence of
f1'
is replaced with the equivalentf1 m
.Not sure if this expected or known, but I cannot explain it, so reporting it in case it's worth further investigation.
I am using
containers-0.7
andghc-9.10.1
.(@pacastega)
The text was updated successfully, but these errors were encountered: