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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
module CPM.Query.Configuration
( CurryEntity(..), defaultShowRequests, curryInfoURL
, packageVersionRequests, moduleRequests
, classRequests, typeRequests, operationRequests
)
where
data CurryEntity = Operation | Type | Class | Unknown
deriving (Eq, Show)
defaultShowRequests :: CurryEntity -> [String]
defaultShowRequests cent = case cent of
Operation -> [ "documentation", "cass-deterministic", "cass-total"
, "cass-terminating", "cass-demand", "failfree" ]
Type -> [ "documentation", "definition" ]
Class -> [ "documentation", "definition" ]
Unknown -> []
curryInfoURL :: String
curryInfoURL = "https://cpm.curry-lang.org/webapps/curry-info/run.cgi"
packageVersionRequests :: [String]
packageVersionRequests =
["documentation", "categories", "dependencies", "modules"]
moduleRequests :: [String]
moduleRequests =
[ "documentation", "sourcecode", "cass-unsafemodule"
, "classes", "types", "operations" ]
classRequests :: [String]
classRequests = ["documentation", "methods", "definition"]
typeRequests :: [String]
typeRequests = ["documentation", "constructors", "definition"]
operationRequests :: [String]
operationRequests =
[ "documentation", "definition", "signature", "infix", "precedence"
, "cass-demand", "cass-deterministic", "cass-indeterministic"
, "cass-solcomplete", "cass-terminating", "cass-total", "cass-values"
, "failfree" ]
|