{"action":"closed","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/1268","labels_url":"https://api.github.com/repos/purescript/purescript/issues/1268/labels{/name}","comments_url":"https://api.github.com/repos/purescript/purescript/issues/1268/comments","events_url":"https://api.github.com/repos/purescript/purescript/issues/1268/events","html_url":"https://github.com/purescript/purescript/issues/1268","id":95238835,"number":1268,"title":"Easier FFI inclusion for `psc` command-line","user":{"login":"mjgpy3","id":1709849,"avatar_url":"https://avatars.githubusercontent.com/u/1709849?v=3","gravatar_id":"","url":"https://api.github.com/users/mjgpy3","html_url":"https://github.com/mjgpy3","followers_url":"https://api.github.com/users/mjgpy3/followers","following_url":"https://api.github.com/users/mjgpy3/following{/other_user}","gists_url":"https://api.github.com/users/mjgpy3/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgpy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgpy3/subscriptions","organizations_url":"https://api.github.com/users/mjgpy3/orgs","repos_url":"https://api.github.com/users/mjgpy3/repos","events_url":"https://api.github.com/users/mjgpy3/events{/privacy}","received_events_url":"https://api.github.com/users/mjgpy3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/purescript/purescript/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/purescript/purescript/milestones/10","html_url":"https://github.com/purescript/purescript/milestones/0.9.0","labels_url":"https://api.github.com/repos/purescript/purescript/milestones/10/labels","id":858709,"number":10,"title":"0.9.0","description":"","creator":{"login":"paf31","id":630306,"avatar_url":"https://avatars.githubusercontent.com/u/630306?v=3","gravatar_id":"","url":"https://api.github.com/users/paf31","html_url":"https://github.com/paf31","followers_url":"https://api.github.com/users/paf31/followers","following_url":"https://api.github.com/users/paf31/following{/other_user}","gists_url":"https://api.github.com/users/paf31/gists{/gist_id}","starred_url":"https://api.github.com/users/paf31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paf31/subscriptions","organizations_url":"https://api.github.com/users/paf31/orgs","repos_url":"https://api.github.com/users/paf31/repos","events_url":"https://api.github.com/users/paf31/events{/privacy}","received_events_url":"https://api.github.com/users/paf31/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":9,"state":"open","created_at":"2014-11-08T21:18:46Z","updated_at":"2015-08-25T22:28:25Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-07-15T16:43:42Z","updated_at":"2015-08-25T22:28:25Z","closed_at":"2015-08-25T22:28:25Z","body":"Hello all,\r\n\r\nI tend to compile my PureScript code using `psc` directly a good amount. Is there value in making JS FFI files included more easily? I can think of a couple approaches off the top of my head, the one that sounds most promising is a new flag, something like:\r\n```\r\npsc --auto-ffi-ext=js ...\r\n```\r\nHere it would simply look for files near the `*.purs` files, with the same names (except `js` in place of `purs`), and automatically include them as if they were given to `--ffi`.\r\n\r\nOther approaches I can think of are:\r\n 1. Simply assuming the file with the same name (but different extension) is an FFI\r\n 2. Allowing the user to type the JS file name, without the `--ffi` flag, inspect the extension, and conclude it's an FFI\r\n\r\nThoughts?"}}