This file is indexed.

/usr/share/doc/libghc-language-haskell-extract-doc/html/language-haskell-extract.txt is in libghc-language-haskell-extract-doc 0.2.1-6build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Module to automatically extract functions from the local code.
--   
--   <tt>language-haskell-extract</tt> contains some useful helper
--   functions on top of Template Haskell.
--   
--   <tt>functionExtractor</tt> extracts all functions after a
--   regexp-pattern.
--   
--   <pre>
--   foo = "test"
--   boo = "testing"
--   bar = $(functionExtractor "oo$")
--   </pre>
--   
--   will automagically extract the functions ending with <tt>oo</tt> such
--   as
--   
--   <pre>
--   bar = [("foo",foo), ("boo",boo)]
--   </pre>
--   
--   This can be useful if you wish to extract all functions beginning with
--   test (for a test-framework) or all functions beginning with wc (for a
--   web service).
--   
--   <tt>functionExtractorMap</tt> works like <tt>functionsExtractor</tt>
--   but applies a function over all function-pairs.
--   
--   This functions is useful if the common return type of the functions is
--   a type class.
--   
--   Example:
--   
--   <pre>
--   secondTypeclassTest =
--     do let expected = ["45", "88.8", "\"hej\""]
--            actual = $(functionExtractorMap "^tc" [|\n f -&gt; show f|] )
--        expected @=? actual
--   
--   tcInt :: Integer
--   tcInt = 45
--   
--   tcDouble :: Double
--   tcDouble = 88.8
--   
--   tcString :: String
--   tcString = "hej"
--   </pre>
@package language-haskell-extract
@version 0.2.1

module Language.Haskell.Extract

-- | Extract the names and functions from the module where this function is
--   called.
--   
--   <pre>
--   foo = "test"
--   boo = "testing"
--   bar = $(functionExtractor "oo$")
--   </pre>
--   
--   will automagically extract the functions ending with <a>oo</a> such as
--   
--   <pre>
--   bar = [("foo",foo), ("boo",boo)]
--   </pre>
functionExtractor :: String -> ExpQ

-- | Extract the names and functions from the module and apply a function
--   to every pair.
--   
--   Is very useful if the common denominator of the functions is just a
--   type class.
--   
--   <pre>
--   secondTypeclassTest =
--     do let expected = ["45", "88.8", "\"hej\""]
--            actual = $(functionExtractorMap "^tc" [|\n f -&gt; show f|] )
--        expected @=? actual
--   
--   tcInt :: Integer
--   tcInt = 45
--   
--   tcDouble :: Double
--   tcDouble = 88.8
--   
--   tcString :: String
--   tcString = "hej"
--   </pre>
functionExtractorMap :: String -> ExpQ -> ExpQ

-- | Extract the name of the current module.
locationModule :: ExpQ