{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/pursuit/issues/66","labels_url":"https://api.github.com/repos/purescript/pursuit/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/purescript/pursuit/issues/66/comments","events_url":"https://api.github.com/repos/purescript/pursuit/issues/66/events","html_url":"https://github.com/purescript/pursuit/issues/66","id":62802074,"number":66,"title":"Search functions and instances as well as types and type classes","user":{"login":"alexchandel","id":637714,"avatar_url":"https://avatars.githubusercontent.com/u/637714?v=3","gravatar_id":"","url":"https://api.github.com/users/alexchandel","html_url":"https://github.com/alexchandel","followers_url":"https://api.github.com/users/alexchandel/followers","following_url":"https://api.github.com/users/alexchandel/following{/other_user}","gists_url":"https://api.github.com/users/alexchandel/gists{/gist_id}","starred_url":"https://api.github.com/users/alexchandel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexchandel/subscriptions","organizations_url":"https://api.github.com/users/alexchandel/orgs","repos_url":"https://api.github.com/users/alexchandel/repos","events_url":"https://api.github.com/users/alexchandel/events{/privacy}","received_events_url":"https://api.github.com/users/alexchandel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-18T21:13:06Z","updated_at":"2015-03-19T05:55:22Z","closed_at":null,"body":"For example, in addition to the datatype `Signal`, searching \"Signal\" should give me functions that have a  `Signal` in their type, as well as instances of `Signal`."},"comment":{"url":"https://api.github.com/repos/purescript/pursuit/issues/comments/83349254","html_url":"https://github.com/purescript/pursuit/issues/66#issuecomment-83349254","issue_url":"https://api.github.com/repos/purescript/pursuit/issues/66","id":83349254,"user":{"login":"hdgarrood","id":1270186,"avatar_url":"https://avatars.githubusercontent.com/u/1270186?v=3","gravatar_id":"","url":"https://api.github.com/users/hdgarrood","html_url":"https://github.com/hdgarrood","followers_url":"https://api.github.com/users/hdgarrood/followers","following_url":"https://api.github.com/users/hdgarrood/following{/other_user}","gists_url":"https://api.github.com/users/hdgarrood/gists{/gist_id}","starred_url":"https://api.github.com/users/hdgarrood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdgarrood/subscriptions","organizations_url":"https://api.github.com/users/hdgarrood/orgs","repos_url":"https://api.github.com/users/hdgarrood/repos","events_url":"https://api.github.com/users/hdgarrood/events{/privacy}","received_events_url":"https://api.github.com/users/hdgarrood/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T05:55:22Z","updated_at":"2015-03-19T05:55:22Z","body":"I absolutely agree that it's valuable to know what implements what. But I don't think having instances appear in search results is a good way to achieve that. I'd much rather the flow be:\r\n\r\n* Search for a type or type class\r\n* The type/type class appears in results\r\n* You click on it and are taken to Haddock style documentation, which then lists all instances that the type/type class has, together with the modules (and packages) that each instance is in.\r\n\r\n> The Rust documentation for a given type class displays every instance known to rust-doc at the time.\r\n\r\nLooking at the Rust documentation, it appears they take a similar approach to what I outlined above. The Search function doesn't appear to tell you anything about trait implementations directly, you have to go to a particular result's page first. For example:\r\n\r\n* [Search results for \"Debug\"](http://doc.rust-lang.org/std/collections/struct.BTreeMap.html?search=Debug) - no information about trait implementations\r\n* [Page for the \"Debug\" trait](http://doc.rust-lang.org/std/fmt/trait.Debug.html) - includes list of all implementations."}}