@@ -53,6 +53,25 @@ render z_root = execWriter $ do
53
53
return ()
54
54
tell " {-# OPTIONS_GHC -Wno-missing-import-lists #-}\n "
55
55
tell " {-# OPTIONS_GHC -w #-}\n "
56
+ tell " \n "
57
+ tell " {-|\n "
58
+ tell " Module : Paths_"
59
+ tell (zManglePkgName z_root (zPackageName z_root))
60
+ tell " \n "
61
+ tell " Description : Data file location, and package version and installation\n "
62
+ tell " directories.\n "
63
+ tell " \n "
64
+ tell " WARNING: This module was generated by Cabal. Any modifications will be\n "
65
+ tell " overwritten if the module is regenerated.\n "
66
+ tell " \n "
67
+ tell " This module exports a function to locate data files, and values that record\n "
68
+ tell " the version of the package and some directories which the package has been\n "
69
+ tell " configured to be installed into.\n "
70
+ tell " \n "
71
+ tell " For further information about Cabal's options for its configuration step, and\n "
72
+ tell " their default values, see the Cabal User Guide.\n "
73
+ tell " -}\n "
74
+ tell " \n "
56
75
tell " module Paths_"
57
76
tell (zManglePkgName z_root (zPackageName z_root))
58
77
tell " (\n "
@@ -101,17 +120,63 @@ render z_root = execWriter $ do
101
120
tell " catchIO = Exception.catch\n "
102
121
return ()
103
122
tell " \n "
123
+ tell " -- |The package version.\n "
104
124
tell " version :: Version\n "
105
125
tell " version = Version "
106
126
tell (zVersionDigits z_root)
107
127
tell " []\n "
108
128
tell " \n "
129
+ tell " -- |If the argument is a filename, the result is the name of a corresponding\n "
130
+ tell " -- file on the system on which the program is running, if the file were listed\n "
131
+ tell " -- in the @data-files@ field of the package's Cabal package description file.\n "
132
+ tell " -- No check is performed that the given filename is listed in that field.\n "
109
133
tell " getDataFileName :: FilePath -> IO FilePath\n "
110
134
tell " getDataFileName name = do\n "
111
135
tell " dir <- getDataDir\n "
112
136
tell " return (dir `joinFileName` name)\n "
113
137
tell " \n "
114
- tell " getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath\n "
138
+ tell " -- |The location of the directory specified by Cabal's @--bindir@ option (where\n "
139
+ tell " -- executables that the user might invoke are installed). This can be overridden\n "
140
+ tell " -- at runtime using the environment variable "
141
+ tell (zManglePkgName z_root (zPackageName z_root))
142
+ tell " _bindir.\n "
143
+ tell " getBinDir :: IO FilePath\n "
144
+ tell " \n "
145
+ tell " -- |The location of the directory specified by Cabal's @--libdir@ option (where\n "
146
+ tell " -- object libraries are installed). This can be overridden at runtime using the\n "
147
+ tell " -- environment variable "
148
+ tell (zManglePkgName z_root (zPackageName z_root))
149
+ tell " _libdir.\n "
150
+ tell " getLibDir :: IO FilePath\n "
151
+ tell " \n "
152
+ tell " -- |The location of the directory specified by Cabal's @--dynlibdir@ option\n "
153
+ tell " -- (where dynamic libraries are installed). This can be overridden at runtime\n "
154
+ tell " -- using the environment variable "
155
+ tell (zManglePkgName z_root (zPackageName z_root))
156
+ tell " _dynlibdir.\n "
157
+ tell " getDynLibDir :: IO FilePath\n "
158
+ tell " \n "
159
+ tell " -- |The location of the directory specified by Cabal's @--datadir@ option (where\n "
160
+ tell " -- architecture-independent data files are installed). This can be overridden at\n "
161
+ tell " -- runtime using the environment variable "
162
+ tell (zManglePkgName z_root (zPackageName z_root))
163
+ tell " _datadir.\n "
164
+ tell " getDataDir :: IO FilePath\n "
165
+ tell " \n "
166
+ tell " -- |The location of the directory specified by Cabal's @--libexedir@ option\n "
167
+ tell " -- (where executables that are not expected to be invoked directly by the user\n "
168
+ tell " -- are installed). This can be overridden at runtime using the environment\n "
169
+ tell " -- variable "
170
+ tell (zManglePkgName z_root (zPackageName z_root))
171
+ tell " _libexedir.\n "
172
+ tell " getLibexecDir :: IO FilePath\n "
173
+ tell " \n "
174
+ tell " -- |The location of the directory specified by Cabal's @--sysconfdir@ option\n "
175
+ tell " -- (where configuration files are installed). This can be overridden at runtime\n "
176
+ tell " -- using the environment variable "
177
+ tell (zManglePkgName z_root (zPackageName z_root))
178
+ tell " _sysconfdir.\n "
179
+ tell " getSysconfDir :: IO FilePath\n "
115
180
tell " \n "
116
181
let
117
182
z_var0_function_defs = do
0 commit comments