ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
738 stars 134 forks source link

Signatures lacking spaces return generate no query #219

Closed gabejohnson closed 7 years ago

gabejohnson commented 7 years ago

Typing a->b->a into the search bar returns a list of unrelated results. I would expect the same results as a -> b -> a (a list of results headed by const).

I'm guessing delimiting on -> or inserting spaces would fix this.

ndmitchell commented 7 years ago

Thanks for the report. I deliberately allow identifiers to contain - in them as during the lexing I might be expecting a package name. To fix that, I demand that - can't be the end of an identifier, so it should work now.