{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/3367","repository_url":"https://api.github.com/repos/purescript/purescript","labels_url":"https://api.github.com/repos/purescript/purescript/issues/3367/labels{/name}","comments_url":"https://api.github.com/repos/purescript/purescript/issues/3367/comments","events_url":"https://api.github.com/repos/purescript/purescript/issues/3367/events","html_url":"https://github.com/purescript/purescript/issues/3367","id":326031810,"node_id":"MDU6SXNzdWUzMjYwMzE4MTA=","number":3367,"title":"Quick Start Guide fail running pulp build/repl, \"Unable to parse module: unexpected \"else\"\"","user":{"login":"Michalaq","id":11447391,"node_id":"MDQ6VXNlcjExNDQ3Mzkx","avatar_url":"https://avatars1.githubusercontent.com/u/11447391?v=4","gravatar_id":"","url":"https://api.github.com/users/Michalaq","html_url":"https://github.com/Michalaq","followers_url":"https://api.github.com/users/Michalaq/followers","following_url":"https://api.github.com/users/Michalaq/following{/other_user}","gists_url":"https://api.github.com/users/Michalaq/gists{/gist_id}","starred_url":"https://api.github.com/users/Michalaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michalaq/subscriptions","organizations_url":"https://api.github.com/users/Michalaq/orgs","repos_url":"https://api.github.com/users/Michalaq/repos","events_url":"https://api.github.com/users/Michalaq/events{/privacy}","received_events_url":"https://api.github.com/users/Michalaq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-05-24T09:13:12Z","updated_at":"2018-06-01T14:45:01Z","closed_at":null,"author_association":"NONE","body":"The bug is probably due to mismatch of versions between purescript in npm (0.11.7) and libraries downloaded by pulp/bower.\r\n\r\n## Steps to reproduce:\r\n```bash\r\nnpm install -g purescript bower pulp\r\nmkdir bug\r\ncd bug\r\npulp init\r\npulp build  # or pulp repl or pulp psci\r\n```\r\n\r\n## Output:\r\n```\r\nError found:\r\nat bower_components/purescript-psci-support/src/PSCI/Support.purs line 21, column 1 - line 21, column 1\r\n\r\n  Unable to parse module:\r\n  unexpected \"else\"\r\n  expecting declaration or end of input\r\n\r\n\r\nSee https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,\r\nor to contribute content related to this error.\r\n```\r\n\r\nAnd the related code:\r\n\r\n```purescript\r\n-- | ...\r\ninstance evalEffect :: Eval a => Eval (Effect a) where\r\n  eval x = x >>= eval\r\nelse                            -- | <- This is the referenced line\r\ninstance evalShow :: Show a => Eval a where\r\n  eval = logShow\r\n```\r\n\r\n## Possible cause:\r\n\r\nMismatch in library version. AFAIK chain instances come with 0.12, but in npm you have only 0.11.7\r\n\r\n## Proposed fix:\r\n\r\nEither update purescript to 0.12 in npm or update quick start guide pointing to what to do to force pulp/bower download proper versions of libraries for 0.11.7.\r\n\r\nManual solution to get it working is:\r\n\r\n```bash\r\nmkdir working\r\ncd working\r\npulp init\r\nrm -rf bower_components\r\nsed -i \"s/4.0.0/3.0.0/g\" bower.json\r\nbower install\r\npulp build   # it now works, along with pulp build and pulp psci\r\n```\r\n\r\nBut honestly I wouldn't like to have to do this at my first encounter with purescript, following the quick start guide..."},"comment":{"url":"https://api.github.com/repos/purescript/purescript/issues/comments/393902896","html_url":"https://github.com/purescript/purescript/issues/3367#issuecomment-393902896","issue_url":"https://api.github.com/repos/purescript/purescript/issues/3367","id":393902896,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzkwMjg5Ng==","user":{"login":"AlexMouton","id":1989298,"node_id":"MDQ6VXNlcjE5ODkyOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/1989298?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexMouton","html_url":"https://github.com/AlexMouton","followers_url":"https://api.github.com/users/AlexMouton/followers","following_url":"https://api.github.com/users/AlexMouton/following{/other_user}","gists_url":"https://api.github.com/users/AlexMouton/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexMouton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexMouton/subscriptions","organizations_url":"https://api.github.com/users/AlexMouton/orgs","repos_url":"https://api.github.com/users/AlexMouton/repos","events_url":"https://api.github.com/users/AlexMouton/events{/privacy}","received_events_url":"https://api.github.com/users/AlexMouton/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T14:45:01Z","updated_at":"2018-06-01T14:45:01Z","author_association":"NONE","body":"I can field part of this: \n\n‘Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable.’\n\nSent from my iPhone\n\n> On Jun 1, 2018, at 7:41 AM, Daniel Rodríguez Rivero <notifications@github.com> wrote:\n> \n> I'm experiencing this problem with the lates version of everything. Which is the expected fix ? Which versions of purescript-xxx library should I use with 0.12 ?\n> \n> In which universe the middle digit on semver indicates a mayor release ? What's the purpose of the first digit then ?\n> \n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n"}}
{"actor":{"display_login":"AlexMouton"}}