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
Reordering cond in infer in cats.context seems to resolve the issue.
(defn infer
"Given an optional value infer its context. If context is already set, it
is returned as is without any inference operation."
{:no-doc true}
([]
(when (nil? *context*)
(throw-illegal-argument "No context is set."))
*context*)
([v]
(cond
(satisfies? p/Contextual v)
(p/-get-context v)
(not (nil? *context*))
*context*
:else
(throw-illegal-argument
(str "No context is set and it can not be automatically "
"resolved from provided value")))))
In cats,
In Haskell,
The text was updated successfully, but these errors were encountered: