Verified Commit 0b15ed10 authored by Camil Staps's avatar Camil Staps 🚀

Cleanup; update readme for reorganisation

parent b86128cf
......@@ -78,7 +78,9 @@ fields:
The third element of the array contains data specific to the kind of result.
It is easiest to look in `backend/Cloogle.dcl` at the types
It is easiest to look in
at the types
`FunctionResultExtras`, `TypeResultExtras`, `ClassResultExtras`,
`MacroResultExtras` and `ModuleResultExtras` to get an idea of the fields
that may be returned.
......@@ -13,6 +13,8 @@ from TCPIP import :: IPAddress, :: Port, instance toString IPAddress
import Control.Applicative
import Control.Monad
import qualified Data.Foldable as Foldable
from Data.Foldable import class Foldable, instance Foldable Maybe
from Data.Func import $
import Data.Functor
import Data.List
......@@ -103,9 +105,7 @@ where
# suggestions = mbType >>= flip (suggs name) db
# w = seq [cachePages
(toRequestCacheKey req) CACHE_PREFETCH 0 zero suggs
\\ (req,suggs) <- mb2list suggestions] w
mb2list Nothing = []; mb2list (Just xs) = xs
\\ (req,suggs) <- 'Foldable'.concat suggestions] w
# suggestions
= sortBy (\a b -> snd a > snd b) <$>
filter ((<) (length results) o snd) <$>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment