{"comment":{"url":"https://api.github.com/repos/Surume/SugoiH/comments/13104360","html_url":"https://github.com/Surume/SugoiH/commit/e4c0ee4bbcf0497fc47e9aa87208ef9a0c368d84#commitcomment-13104360","id":13104360,"user":{"login":"Surume","id":3624075,"avatar_url":"https://avatars.githubusercontent.com/u/3624075?v=3","gravatar_id":"","url":"https://api.github.com/users/Surume","html_url":"https://github.com/Surume","followers_url":"https://api.github.com/users/Surume/followers","following_url":"https://api.github.com/users/Surume/following{/other_user}","gists_url":"https://api.github.com/users/Surume/gists{/gist_id}","starred_url":"https://api.github.com/users/Surume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Surume/subscriptions","organizations_url":"https://api.github.com/users/Surume/orgs","repos_url":"https://api.github.com/users/Surume/repos","events_url":"https://api.github.com/users/Surume/events{/privacy}","received_events_url":"https://api.github.com/users/Surume/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"e4c0ee4bbcf0497fc47e9aa87208ef9a0c368d84","created_at":"2015-09-08T05:10:49Z","updated_at":"2015-09-08T05:10:49Z","body":"これだと動かない。\r\n\r\nwhere  のスコープはパターン毎になっているのでこの where の使い方だと name のパターンのみに適応される。\r\n\r\n```\r\ngreet :: String -> String\r\ngreet \"Juan\" = niceGreeting ++ \" Juan!\"\r\n    where niceGreeting = \"Hello! So very nice to see you,\"\r\ngreet \"Fernand\" = niceGreeting ++ \" Fernand!\"\r\n    where niceGreeting = \"Hello! So very nice to see you,\"\r\ngreet name = badGreeting ++ \" \" ++ name\r\n    where badGreeting = \"Oh! Pfft. It's you.\"\r\n```\r\n\r\nこうすれば一応使える"}}