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
Normalize (a :<|> b) = Normalize a :<|> Normalize b may lead to a common prefix and therefore needs to be applied again.
However just applying Normalize (Normalize a :<|> Normalize b) obviously results in a loop.
We need a better way to apply Normalize until a fix-point is reached.
The text was updated successfully, but these errors were encountered:
I wonder if we need the normalization at all.
We already apply MergeLayers from Servant.Hateoas.Layer.Merge which gets rid of the multiple Layers for the same endpoint problem.
In Servant.Hateoas.Layer there is below type-family for normalizing an API to a shared prefix form:
Normalize (a :<|> b) = Normalize a :<|> Normalize b
may lead to a common prefix and therefore needs to be applied again.However just applying
Normalize (Normalize a :<|> Normalize b)
obviously results in a loop.We need a better way to apply
Normalize
until a fix-point is reached.The text was updated successfully, but these errors were encountered: