hunt-framework / hayoo

Hackage search engine
56 stars 9 forks source link

Show results for similar types when primary result is empty #59

Open sras opened 7 years ago

sras commented 7 years ago

A search for LogStr -> String yields no result while LogStr -> ByteString does.

It would be great if Hayoo can show functions that work with similar types (at least for strings), when the original query does not have any matches.

alexbiehl commented 7 years ago

Hmm. can you point me to a function with the signature LogStr -> String? I could only find the ByteString one.

sras commented 7 years ago

Sorry. I think I didn't make myself clear.

It is not a bug report. But a feature request to show the results of (LogStr -> Text) and (LogStr -> ByteString) if the there is no result for (LogStr -> String), since Text, ByteString and String are all are similar.