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.
|
||||
writeFile (fromOsPath (top </> literalOsPath "libdirs"))
|
||||
(unlines (map fromOsPath libdirs'))
|
||||
writeFile (fromOsPath (top </> literalOsPath "gconvdir"))
|
||||
(fromOsPath (parentDir $ Prelude.head gconvlibs))
|
||||
writeFile (fromOsPath (top </> literalOsPath "gconvdir")) $
|
||||
case gconvlibs of
|
||||
[] -> ""
|
||||
(p:_) -> fromOsPath (parentDir p)
|
||||
|
||||
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
|
||||
|
||||
return (any hwcaplibdir libdirs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue