[Implement searching
Neil Mitchell**20080804234824] {
hunk ./src/Web/Action.hs 14
+import Data.Range
+import Data.Binary.Defer.Index
hunk ./src/Web/Action.hs 71
- ["
Searched for " ++ qstr ++ "
"
- ,"todo
"
- ]
+ ["Searched for " ++ qstr ++ "
"] ++
+ ["" ++ showTagHTML sug ++ "
" | Just sug <- [suggestQuery dbs q]] ++
+ if null res then
+ ["No results found
"]
+ else
+ [""] ++ map (f . renderResult) res ++ ["
"]
hunk ./src/Web/Action.hs 78
+ res = searchRange (rangeStartCount 0 25) dbs q
+ f (m,r,v) = "" ++ maybe "" showModule m ++
+ " | " ++ showTagHTML r ++ " |
"
+
hunk ./src/Web/Action.hs 87
-
-
hunk ./src/res/hoogle.css 77
-p {
+p, table {
hunk ./src/res/hoogle.css 91
+.mod {
+ vertical-align: bottom;
+ text-align: right;
+ font-size: 8pt;
+}
+
+
}