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
I will print the type anyway, so we don't need :type
I.typeChecksWithDetails contents >>= \ case
Left errs -> throw $ I.WontCompile errs
Right s ->
if s == "Op ()" then do -- execute, print nothing
-- TODO: need timeout for evaluation of pattern:
x <- I.interpret contents (I.as :: C.Op ())
-- have timeout for execution of pattern:
liftIO $ void $ timeout (1 * second) $ C.exec tidal x
else do -- print type and value
message stdout $ "type : " <> s
if isPrefixOf "IO" s then do
message stderr "cannot show value, will not execute action"
else do
v <- I.eval contents
message stdout $ "value: " <> v
The text was updated successfully, but these errors were encountered:
see haskell-hint/hint#101
I will print the type anyway, so we don't need
:type
The text was updated successfully, but these errors were encountered: