avoid head warnings with recent ghc versions
This commit is contained in:
parent
46d38b002d
commit
2567bc0e2c
1 changed files with 7 additions and 3 deletions
|
@ -49,11 +49,15 @@ mklibs top _installedbins = do
|
||||||
-- linker shims.
|
-- linker shims.
|
||||||
writeFile (fromOsPath (top </> literalOsPath "libdirs"))
|
writeFile (fromOsPath (top </> literalOsPath "libdirs"))
|
||||||
(unlines (map fromOsPath libdirs'))
|
(unlines (map fromOsPath libdirs'))
|
||||||
writeFile (fromOsPath (top </> literalOsPath "gconvdir"))
|
writeFile (fromOsPath (top </> literalOsPath "gconvdir")) $
|
||||||
(fromOsPath (parentDir $ Prelude.head gconvlibs))
|
case gconvlibs of
|
||||||
|
[] -> ""
|
||||||
|
(p:_) -> fromOsPath (parentDir p)
|
||||||
|
|
||||||
mapM_ (installLib installFile top) linkers
|
mapM_ (installLib installFile top) linkers
|
||||||
let linker = Prelude.head linkers
|
linker <- case linkers of
|
||||||
|
[] -> error "unable to find linker"
|
||||||
|
(l:_) -> return l
|
||||||
mapM_ (installLinkerShim top linker) exes
|
mapM_ (installLinkerShim top linker) exes
|
||||||
|
|
||||||
return (any hwcaplibdir libdirs)
|
return (any hwcaplibdir libdirs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue