Git Product home page Git Product logo

hayoo's People

Contributors

alexbiehl avatar chrisreu avatar erantapaa avatar gjtorikian avatar n0ur avatar noobymatze avatar sebastian-philipp avatar ulfsauer0815 avatar uweschmidt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hayoo's Issues

Suggetion: Launch search by Enter

I love hayoo and use it very intensively. How about launching search by pressing enter key while still focusing text field? I would safe seconds - you don't need to leave keyboard and find your mouse.

Suggest linking to version specific pages on Hackage

A suggestion for linking to docs on Hackage...

Currently Hayoo is linking to the "latest version" of a package on Hackage via a url which does not include a version id, e.g.:

http://hackage.haskell.org/package/persistent/docs/Database-Persist-Sql.html#v:runSqlConn

(You can search for runSql in Hayoo to have this link show up in the results.)

However, the docs for more and more recent uploads to Hackage are not getting generated - in fact, they are not even being attempted. For instance, the link above goes to a "Not Found" page because the docs for the latest version of persistent don't exist and as of now the status is still "Docs pending" - meaning that no attempts to build the docs have been made.

A solution to this problem is to have Hayoo use version specific links when linking to Hackage. The version specific link should always work because the Hoogle index file and the Haddocks pages are generated at the same time. Thus, a Hoogle index file for a specific version implies that the Haddocks for that version also exist. Moreover, Hayoo would be sending users to accurate documentation - docs which are guaranteed to match what is presented in the Hayoo search results.

For some reason more and more recently uploaded packages on Hackage do not have docs even though previous versions of the same package do have docs. The problem seems to have started around the end of November 2015.

I've created a report which provides data on the problem:

http://erantapaa.github.io/doc-status-2016-07-08/report.html

Each row represents a recent package upload for which Haddock generation has not been attempted.

If you click on the number on the left most column it will pop up an English explanation of what the data in that row means. Good examples are rows 41-45 are similar ones.

Clicking on related methods in search results gives Internal Error

Starting with a search for Int -> [a] -> Maybe a, I get two responses: getI :: Int -> [a] -> Maybe a and el :: Int -> [a] -> Maybe a. Good so far, but the first result mentions !!, the second mentions tryIndex, and both links produce Internal Error: (line 1, column 49): unexpected "S" expecting digit

The query being executed is:

((name:!'!!' package:!base module:!'Data.List')^SC {unScore = 100.0}) OR ((name:!'!!' package:!base)^SC {unScore = 10.0}) OR name:!'!!'

The complaint seems to be about (...)^SC

Connection Error when searching for symbols

The search "syntactic :$" or "syntactic :+:" (without quotes) both cause a connection error:

Connection Error: StatusCodeException (Status {statusCode = 404, statusMessage = "Not Found"}) [("Transfer-Encoding","chunked"),("Date","Tue, 30 Sep 2014 13:10:21 GMT"),("Server","Warp/3.0.0.3"),("Content-Type","application/json"),("X-Response-Body-Start","{\n \"msg\": \"mentioned context(s) do not exist: [\\\"syntactic\\\"]\",\n \"code\": 404\n}")] (CJ {expose = []})

Next Page button does not load next page

Search for "[a] -> Maybe a" and then press "Next Page". It briefly flashes "Loading..." but then goes back to be the "Next Page" button. However, nothing else changes, i.e., no new results are displayed.

Next button with weird behavior

The next (page) button shows some weird behavior. Try e.g. foldl stringmap, this gives a single result,
pressing the next button appends this single result a 2. time.

For a query with more results, e.g. abc the effect is somewhat similar, pressing next appends
all already shown result and a few more.

add search plugin for firefox

I would find it incredibly helpful if there were a firefox search plugin for Hayoo, perhaps along the lines of the search plugin for Hoogle. Are there any plans for this to happen?

ideas for better rendering for docs of results

I've been experimenting with different ways of presenting the doc section for returned matches.
Here are some ideas -- feedback is very welcome.

Demo 1 - Adding a More/Less link

In this demo a More/Less link is added to those documentation sections which are too long or multi-line.

Note that in on the max page not all results have a More/Less link - it's only added when needed.

I'm still experimenting with alternative ways of implementing the More/Less control. Perhaps use an icon (like ►) in the left margin of the doc section.

Demo 2 - Trim lines using CSS

This demo just uses CSS to trim the first line of the doc section to the page width. Subsequent paragraphs and pre blocks are hidden. I haven't implemented a toggle control, but I'm sure one could be added.

There are some entries (on the max page) which have more docs to display, e.g. glGetBooleanv) but there is no visual indication that there is more.

searching for (^?!) and foldl' fails

but would it be possible to change the lexical syntax to match Haskell's syntax? I.e. any valid Haskell identifier is also a valid search query.

Order results by library popularity

Some recent updates made Hayoo searching very inconvenient, since now it often outputs anything but the expected results. For instance, searching for evalState does not even include the obviously expected result from the "transformers" package in the first page.

Search fails due to "No space left on device"

Any query yields the following error message:

Connection Error: StatusCodeException (Status {statusCode = 500, statusMessage = "Internal Server Error"}) 
[ ("Transfer-Encoding","chunked")
, ("Date","Fri, 04 Sep 2015 05:47:07 GMT")
, ("Server","Warp/3.0.13.1")
, ("Content-Type","text/plain; charset=utf-8")
, ("X-Response-Body-Start","hunt.log: commitBuffer: resource exhausted (No space left on device)")
, ("X-Request-URL","POST http://localhost:3000/eval")
] (CJ {expose = []})

signature search: normalizing to type variables

"Maybe I'm just unclear about what Yahoo indexed. 'Maybe String -> String' doesn't have "fromJust" in the first page of hits, but "Maybe a -> a" is just fine."

we don't need to put this into the index, but the query generator could normalize this to Maybe a -> a

Ability to just get unique packages containing module

I'm thinking of trying to build some functionality into IHaskell which automatically suggests packages to install when trying to import a module that doesn't exist (for example by copying and pasting example code). I was thinking of using the Hayoo JSON API to do the lookup, however if I search for for example Prelude, which I know is offered by a number of Hackage packages, I get the first 20 hits full of functions from base Prelude... Is there currently a way to just show all the packages that provide a certain module? If not, could we add it? I could do a pull request if it was something you might be willing to add. Or do you know of any other programmatic/API way of getting this information currently, apart from Hayoo?

forall in signatures

Search query: zipM

Displayed result: zipMono :: a -> a -> a) -> v -> v -> v
Expected result: zipMono :: Proxy c -> (forall a. c a => a -> a -> a) -> v -> v -> v

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.