ndmitchell / hoogle

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

fix unicode search #328

Closed obfusk closed 4 years ago

obfusk commented 4 years ago

fixes #324

I haven't exhaustively tested whether this breaks anything, but it works locally with:

$ cat misc/sample-data/foo-1.0/foo.txt
@url http://eghmitchell.co.uk/
@package foo
@version 1.0

module Foo
@url #a_foo
猫 :: String
x猫 :: String
neko :: String
(≠) :: Eq a => a -> a -> Bool
(/=) :: Eq a => a -> a -> Bool
$ cabal run hoogle -- generate --local=misc/sample-data/foo-1.0/
$ cabal run hoogle -- server -p 8888 --host 127.0.0.1

--> http://localhost:8888/?hoogle=≠ works :)

I did find that is not indexed by generate, but that's a bug in haskell-src-exts.

ndmitchell commented 4 years ago

Awesome!