{"action":"opened","issue":{"url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/3774","repository_url":"https://api.github.com/repos/idris-lang/Idris-dev","labels_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/3774/labels{/name}","comments_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/3774/comments","events_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/3774/events","html_url":"https://github.com/idris-lang/Idris-dev/issues/3774","id":223176154,"number":3774,"title":":exec error message","user":{"login":"ankhers","id":750786,"avatar_url":"https://avatars1.githubusercontent.com/u/750786?v=3","gravatar_id":"","url":"https://api.github.com/users/ankhers","html_url":"https://github.com/ankhers","followers_url":"https://api.github.com/users/ankhers/followers","following_url":"https://api.github.com/users/ankhers/following{/other_user}","gists_url":"https://api.github.com/users/ankhers/gists{/gist_id}","starred_url":"https://api.github.com/users/ankhers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankhers/subscriptions","organizations_url":"https://api.github.com/users/ankhers/orgs","repos_url":"https://api.github.com/users/ankhers/repos","events_url":"https://api.github.com/users/ankhers/events{/privacy}","received_events_url":"https://api.github.com/users/ankhers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-20T19:37:53Z","updated_at":"2017-04-20T19:37:53Z","closed_at":null,"body":"I was recently playing around with the REPL and wanted to see an example output from `System.time`. So I did the following\r\n\r\n```\r\nIdris> :module System\r\n*System> :exec time\r\nmain:When checking argument value to function Prelude.Basics.the:\r\n        Type mismatch between\r\n                IO Integer (Type of time)\r\n        and\r\n                Integer (Expected type)\r\n```\r\n\r\nI was expecting to get a value from the function. I have since found that `:exec` only works with functions that return unit.\r\n\r\nIf this is intentional, I would suggest a better error message stating that `:exec` only works for things that return unit."}}
{"actor":{"display_login":"ankhers"}}