{"action":"opened","issue":{"url":"https://api.github.com/repos/dungpa/fantomas/issues/189","labels_url":"https://api.github.com/repos/dungpa/fantomas/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/dungpa/fantomas/issues/189/comments","events_url":"https://api.github.com/repos/dungpa/fantomas/issues/189/events","html_url":"https://github.com/dungpa/fantomas/issues/189","id":123581103,"number":189,"title":"should be `extern void` instead of `extern unit`","user":{"login":"ctaggart","id":80104,"avatar_url":"https://avatars.githubusercontent.com/u/80104?v=3","gravatar_id":"","url":"https://api.github.com/users/ctaggart","html_url":"https://github.com/ctaggart","followers_url":"https://api.github.com/users/ctaggart/followers","following_url":"https://api.github.com/users/ctaggart/following{/other_user}","gists_url":"https://api.github.com/users/ctaggart/gists{/gist_id}","starred_url":"https://api.github.com/users/ctaggart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctaggart/subscriptions","organizations_url":"https://api.github.com/users/ctaggart/orgs","repos_url":"https://api.github.com/users/ctaggart/repos","events_url":"https://api.github.com/users/ctaggart/events{/privacy}","received_events_url":"https://api.github.com/users/ctaggart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-23T00:30:09Z","updated_at":"2015-12-23T00:30:09Z","closed_at":null,"body":"Similar to #186, I'm just reading in a file, having Fantomas format it, then writing it back out. The file this time is:\r\n\r\nhttps://github.com/ctaggart/FsAst/blob/pinvoke/PInvoke.fs\r\n``` fsharp\r\n// https://msdn.microsoft.com/library/hh304361(v=vs.100).aspx\r\nmodule PInvoke\r\n\r\nopen System.Runtime.InteropServices\r\n\r\n[<DllImport(\"blas.dll\",EntryPoint=\"dgemm_\")>]\r\nextern void dgemm_\r\n  ( char *transa, char *transb, \r\n    int *m, int *n, int *k, \r\n    double *alpha, double *a, int *lda, \r\n    double *b, int *ldb, double *beta, \r\n    double *c, int *ldc );\r\n```\r\nWhen written back out, it has `unit` for the return type instead of `void`:\r\n``` fsharp\r\nmodule PInvoke\r\n\r\nopen System.Runtime.InteropServices\r\n\r\n[<DllImport(\"blas.dll\", EntryPoint = \"dgemm_\")>]\r\nextern unit dgemm_(char nativeptr transa, char nativeptr transb, int nativeptr m, int nativeptr n, int nativeptr k, double nativeptr alpha, double nativeptr a, int nativeptr lda, double nativeptr b, int nativeptr ldb, double nativeptr beta, double nativeptr c, int nativeptr ldc)\r\n```\r\n"}}