Build #3 for keera-hails-i18n-0.5.0
| Package | keera-hails-i18n-0.5.0 |
|---|
| Install | BuildFailed |
|---|---|
| Docs | NotTried |
| Tests | NotTried |
| Time submitted | 2020-04-15 21:17:34.676379344 UTC |
|---|---|
| Compiler | ghc-8.6.3 |
| OS | linux |
| Arch | x86_64 |
| Dependencies | MissingK-0.0.1, base-4.12.0.0, directory-1.3.3.0, filepath-1.4.2.1, glib-0.13.8.0, hgettext-0.1.3, setlocale-1.0.0.9, utf8-string-1.0.1.1 |
| Flags | -test-doc-coverage -test-hlint |
Code Coverage
No Code Coverage was submitted for this report.
Build log
[view raw]
Warning: The install command is a part of the legacy v1 style of cabal usage.
Please switch to using either the new project style and the new-install
command or the legacy v1-install alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.
For more information, see: https://wiki.haskell.org/Cabal/NewBuild
Resolving dependencies...
Starting random-1.1
Starting setlocale-1.0.0.9
Starting primitive-0.7.0.1
Starting hashable-1.3.0.0
Building setlocale-1.0.0.9
Building random-1.1
Building hashable-1.3.0.0
Building primitive-0.7.0.1
Completed setlocale-1.0.0.9
Starting syb-0.7.1
Building syb-0.7.1
Completed random-1.1
Starting utf8-string-1.0.1.1
Completed hashable-1.3.0.0
Starting unordered-containers-0.2.10.0
Building utf8-string-1.0.1.1
Building unordered-containers-0.2.10.0
Completed syb-0.7.1
Starting haskell-src-1.0.3.0
Building haskell-src-1.0.3.0
Completed utf8-string-1.0.1.1
Completed primitive-0.7.0.1
Starting vector-0.12.1.2
Building vector-0.12.1.2
Completed unordered-containers-0.2.10.0
Starting uniplate-1.6.12
Building uniplate-1.6.12
Completed uniplate-1.6.12
Completed haskell-src-1.0.3.0
Starting hgettext-0.1.3
Building hgettext-0.1.3
Completed hgettext-0.1.3
Completed vector-0.12.1.2
Starting hashtables-1.2.3.4
Building hashtables-1.2.3.4
Completed hashtables-1.2.3.4
Starting gtk2hs-buildtools-0.13.8.0
Building gtk2hs-buildtools-0.13.8.0
Completed gtk2hs-buildtools-0.13.8.0
Starting glib-0.13.8.0
Building glib-0.13.8.0
Completed glib-0.13.8.0
Starting MissingK-0.0.1
Building MissingK-0.0.1
Completed MissingK-0.0.1
Starting keera-hails-i18n-0.5.0
Building keera-hails-i18n-0.5.0
Failed to install keera-hails-i18n-0.5.0
Build log ( /home/builder/.cabal/logs/ghc-8.6.3/keera-hails-i18n-0.5.0-5EFVkWuBDJBHaUObcJiaO2.log ):
cabal: Entering directory '/tmp/cabal-tmp-13776/keera-hails-i18n-0.5.0'
Configuring keera-hails-i18n-0.5.0...
Preprocessing library for keera-hails-i18n-0.5.0..
Building library for keera-hails-i18n-0.5.0..
[1 of 2] Compiling Hails.I18N.Gettext ( src/Hails/I18N/Gettext.hs, dist/build/Hails/I18N/Gettext.o )
[2 of 2] Compiling Hails.I18N.Language ( src/Hails/I18N/Language.hs, dist/build/Hails/I18N/Language.o )
src/Hails/I18N/Language.hs:38:30: error:
• Couldn't match type ‘Maybe [Char]’ with ‘[Char]’
Expected type: String
Actual type: Maybe [Char]
• In the second argument of ‘($)’, namely ‘Just "."’
In a stmt of a 'do' block: bindTextDomain appName $ Just "."
In the second argument of ‘($)’, namely
‘do userDataDir <- getAppUserDataDirectory appName
let languageFile = userDataDir </> "default-language"
lang <- E.handle (anyway (return ""))
$ do (safeHead "" . lines) <$> readFile languageFile
unless (null lang)
$ E.handle (anyway (return ()))
$ do setLocale LC_ALL (Just lang)
setEnv "LANGUAGE" lang
....’
|
38 | bindTextDomain appName $ Just "."
| ^^^^^^^^
src/Hails/I18N/Language.hs:39:18: error:
• Couldn't match type ‘Maybe String’ with ‘[Char]’
Expected type: String
Actual type: Maybe String
• In the second argument of ‘($)’, namely ‘Just appName’
In a stmt of a 'do' block: textDomain $ Just appName
In the second argument of ‘($)’, namely
‘do userDataDir <- getAppUserDataDirectory appName
let languageFile = userDataDir </> "default-language"
lang <- E.handle (anyway (return ""))
$ do (safeHead "" . lines) <$> readFile languageFile
unless (null lang)
$ E.handle (anyway (return ()))
$ do setLocale LC_ALL (Just lang)
setEnv "LANGUAGE" lang
....’
|
39 | textDomain $ Just appName
| ^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-13776/keera-hails-i18n-0.5.0'
cabal: Error: some packages failed to install:
keera-hails-i18n-0.5.0-5EFVkWuBDJBHaUObcJiaO2 failed during the building
phase. The exception was:
ExitFailure 1
Test log
No test log was submitted for this report.