Skip to content

Instantly share code, notes, and snippets.

@wwalker
Last active June 11, 2021 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wwalker/a38c3fee2f868c158ab7f55c43d9a56e to your computer and use it in GitHub Desktop.
Save wwalker/a38c3fee2f868c158ab7f55c43d9a56e to your computer and use it in GitHub Desktop.
cabal-dependency-licenses build failing
@~/git/matterhorn ✘ ((50200.2.0-1321-g0be2a81d)) $ ./scripts/local-mkrelease.sh
Cloning into 'cabal-dependency-licenses'...
remote: Enumerating objects: 171, done.
remote: Total 171 (delta 0), reused 0 (delta 0), pack-reused 171
Receiving objects: 100% (171/171), 30.92 KiB | 15.46 MiB/s, done.
Resolving deltas: 100% (90/90), done.
/tmp/tmp.EQtq9zJeM5/cabal-dependency-licenses
Wrote tarball sdist to
/tmp/tmp.EQtq9zJeM5/cabal-dependency-licenses/dist-newstyle/sdist/cabal-dependency-licenses-0.2.0.1.1.tar.gz
Resolving dependencies...
Build profile: -w ghc-8.10.5 -O1
In order, the following will be built (use -v for more details):
- cabal-dependency-licenses-0.2.0.1.1 (exe:cabal-dependency-licenses) (requires build)
Starting cabal-dependency-licenses-0.2.0.1.1 (exe:cabal-dependency-licenses)
Building cabal-dependency-licenses-0.2.0.1.1 (exe:cabal-dependency-licenses)
Failed to build exe:cabal-dependency-licenses from
cabal-dependency-licenses-0.2.0.1.1.
Build log (
/home/wwalker/.cabal/logs/ghc-8.10.5/cabal-dependency-licenses-0.2.0.1.1-e-cabal-dependency-licenses-a1783f5555644306d82bf33a619823613735eaf62b6edbd4d272d31be01a54bb.log
):
Configuring executable 'cabal-dependency-licenses' for cabal-dependency-licenses-0.2.0.1.1..
Preprocessing executable 'cabal-dependency-licenses' for cabal-dependency-licenses-0.2.0.1.1..
Building executable 'cabal-dependency-licenses' for cabal-dependency-licenses-0.2.0.1.1..
[1 of 1] Compiling Main ( src/Main.hs, dist/build/cabal-dependency-licenses/cabal-dependency-licenses-tmp/Main.o )
src/Main.hs:156:38: error:
• Couldn't match expected type ‘t0 a0’
with actual type ‘Distribution.Utils.ShortText.ShortText’
• In the first argument of ‘null’, namely ‘copyrightStr’
In the expression: null copyrightStr
In the expression:
case null copyrightStr of
True -> ", no copyright notice available"
False -> ", Copyright " ++ copyrightStr
|
156 | crNotice = case null copyrightStr of
| ^^^^^^^^^^^^
src/Main.hs:158:48: error:
• Couldn't match expected type ‘[Char]’
with actual type ‘Distribution.Utils.ShortText.ShortText’
• In the second argument of ‘(++)’, namely ‘copyrightStr’
In the expression: ", Copyright " ++ copyrightStr
In a case alternative: False -> ", Copyright " ++ copyrightStr
|
158 | False -> ", Copyright " ++ copyrightStr
| ^^^^^^^^^^^^
src/Main.hs:159:55: error:
• Couldn't match expected type ‘[Char]’
with actual type ‘Distribution.Utils.ShortText.ShortText’
• In the first argument of ‘(++)’, namely ‘synopsis’
In the second argument of ‘(++)’, namely
‘synopsis ++ crNotice ++ ")"’
In the second argument of ‘(++)’, namely
‘" (" ++ synopsis ++ crNotice ++ ")"’
|
159 | putStrLn $ "- " ++ getName ipi ++ " (" ++ synopsis ++ crNotice ++ ")"
| ^^^^^^^^
cabal: Failed to build exe:cabal-dependency-licenses from
cabal-dependency-licenses-0.2.0.1.1. See the build log above for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment