jesicabaxter / ndmitchell

Automatically exported from code.google.com/p/ndmitchell
0 stars 0 forks source link

Hoogle returns 200 OK for parse error #645

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. http://www.haskell.org/hoogle/
2. Enter "[a] -> (a - > m [b]) -> m [b]" (without quotes)
3. Webpage returns 200 OK status

What is the expected output? What do you see instead?
Webpage shouldn't return 200 OK

Please use labels and text to provide additional information.

Original issue reported on code.google.com by CharlesP...@googlemail.com on 1 Sep 2014 at 6:18

GoogleCodeExporter commented 8 years ago
EDIT: The API was used to find this, so the json returned is (in this case) :
{'parseError': 'Parse error 1:12: (line 1, column 12):\nunexpected " "\nBad 
symbol', 'version': '4.2.26'}

Original comment by CharlesP...@googlemail.com on 1 Sep 2014 at 6:20

GoogleCodeExporter commented 8 years ago
Thanks for the report, it somehow missed my notifications. I'll take a look at 
this in the context of Hoogle 5 (hosted at http://hoogle.haskell.org/) at some 
point.

Original comment by ndmitch...@gmail.com on 10 Mar 2015 at 9:44

GoogleCodeExporter commented 8 years ago
There is now no concept of a parse error, so this ticket is redundant.

Original comment by ndmitch...@gmail.com on 25 Apr 2015 at 6:18

GoogleCodeExporter commented 8 years ago
Is there? 

https://www.haskell.org/hoogle/?mode=json&hoogle=%5Ba%5D+-%3E+%28a+-+%3E+m+%5Bb%
5D%29+-%3E+m+%5Bb%5D

still results in 

{"parseError":"Parse error 1:12: (line 1, column 12):\nunexpected \" \"\nBad 
symbol","version":"4.2.26"}

Has a new version not been deployed yet?

Original comment by CharlesP...@googlemail.com on 27 Apr 2015 at 11:03

GoogleCodeExporter commented 8 years ago
The new one is at hoogle.haskell.org, and doesn't have any concept of parse 
errors, but also doesn't have a JSON API yet. I'm using 
https://github.com/ndmitchell/hoogle/issues/74 to track adding the JSON API.

Original comment by ndmitch...@gmail.com on 28 Apr 2015 at 7:58