Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
2da1e48c
Commit
2da1e48c
authored
Apr 27, 2011
by
Ian Lynagh
Browse files
Add a type signature for getPrefixDirRel on Windows
parent
7eb960f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/Simple/Build/PathsModule.hs
View file @
2da1e48c
...
...
@@ -191,6 +191,7 @@ pkgPathEnvVar pkg_descr var =
get_prefix_win32
::
String
get_prefix_win32
=
"getPrefixDirRel :: FilePath -> IO FilePath
\n
"
++
"getPrefixDirRel dirRel = try_size 2048 -- plenty, PATH_MAX is 512 under Win32.
\n
"
++
" where
\n
"
++
" try_size size = allocaArray (fromIntegral size) $
\\
buf -> do
\n
"
++
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment