-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please, inspect if demand & force is neede before {to,from}Value. #1003
Comments
To be honest - I am still lost in the type class jumps inside the forest of HLS jumps to type class definition & does not support jumping to instance implementation, there is no tool that show those instance connections. Seems like instance Convertible e t f m
=> FromValue Float m (NValue' t f m (NValue t f m)) where
fromValueMay =
pure .
\case
NVConstant' (NFloat b) -> pure b
NVConstant' (NInt i) -> pure $ fromInteger i
_ -> Nothing
fromValue = fromMayToValue TFloat
fromMayToValue
:: forall t f m a e
. ( Convertible e t f m
, FromValue a m (NValue' t f m (NValue t f m))
)
=> ValueType
-> NValue' t f m (NValue t f m)
-> m a
fromMayToValue t v =
maybe
(throwError $ Expectation @t @f @m t (Free v))
pure
=<< fromValueMay v That I'd reformulated the question: where |
From my understanding: Since
For
|
Originally posted by @layus in #948 (comment)
The text was updated successfully, but these errors were encountered: