forked from iquiw/company-ghc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhoogle-search.feature
38 lines (36 loc) · 1.22 KB
/
hoogle-search.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Feature: Hoogle search
Scenario: Hoogle search results parsing
Given the buffer is empty
When I insert:
"""
Prelude abs :: Num a => a -> a
Prelude acosh :: Floating a => a -> a
Prelude all :: (a -> Bool) -> [a] -> Bool
Data.List all :: (a -> Bool) -> [a] -> Bool
Prelude and :: [Bool] -> Bool
package accelerate
System.IO appendFile :: FilePath -> String -> IO ()
Data.Monoid newtype All
Network.Socket accept :: Socket -> IO (Socket, SockAddr)
Control.Applicative class Applicative f => Alternative f
Control.Exception data ArithException
Control.Applicative module Control.Applicative
Test.QuickCheck.Exception type AnException = SomeException
Network.Socket AF_ARP :: Family
keyword case
Data.Array accumArray :: Ix i => (e -> a -> e) -> e -> (i, i) -> [(i, a)] -> Array i e
"""
And I parse hoogle search results
Then hoogle search candidates are:
"""
("abs" "acosh" "all" "all" "and" "appendFile"
"accept" "AF_ARP" "accumArray")
"""
Scenario: Hoogle search not found
Given the buffer is empty
When I insert:
"""
No results found
"""
And I parse hoogle search results
Then hoogle search candidates are "()"