Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stackage LTS-14.0 failure #68

Open
spacekitteh opened this issue Aug 6, 2019 · 11 comments
Open

Stackage LTS-14.0 failure #68

spacekitteh opened this issue Aug 6, 2019 · 11 comments

Comments

@spacekitteh
Copy link

I have the YAML and CLI flags enabled.

etc               >     Ambiguous occurrence `exitSuccess'
etc               >     It could refer to either `RIO.exitSuccess',
etc               >                              imported from `RIO' at src\System\Etc\Internal\Resolver\Cli\Common.hs:10:1-20
etc               >                              (and originally defined in `rio-0.1.11.0:RIO.Prelude.Exit')
etc               >                           or `System.Exit.exitSuccess',
etc               >                              imported from `System.Exit' at src\System\Etc\Internal\Resolver\Cli\Common.hs:21:1-18
etc               >     |
etc               > 151 |       exitSuccess
etc               >     |       ^^^^^^^^^^^
etc               >
etc               > src\System\Etc\Internal\Resolver\Cli\Common.hs:155:7: error:
etc               >     Ambiguous occurrence `exitWith'
etc               >     It could refer to either `RIO.exitWith',
etc               >                              imported from `RIO' at src\System\Etc\Internal\Resolver\Cli\Common.hs:10:1-20
etc               >                              (and originally defined in `rio-0.1.11.0:RIO.Prelude.Exit')
etc               >                           or `System.Exit.exitWith',
etc               >                              imported from `System.Exit' at src\System\Etc\Internal\Resolver\Cli\Common.hs:21:1-18
etc               >     |
etc               > 155 |       exitWith exitCode
`
@spacekitteh
Copy link
Author

This still occurs in 14.1. @qrilka

@qrilka
Copy link
Contributor

qrilka commented Sep 17, 2019

@spacekitteh I couldn't reproduce it:

qrilka@qdesktop ~/ws/h/Haskell-etc $ stack build --stack-yaml=stack-lts-14.1.yaml && echo "exit code: $?"
exit code: 0
qrilka@qdesktop ~/ws/h/Haskell-etc $ cat stack-lts-14.1.yaml
resolver: lts-14.1
packages:
- 'etc'
- 'examples/etc-command-example'
- 'examples/etc-plain-example'
- 'examples/etc-embedded-config-example'
- 'examples/etc-compile-time-spec-check-example'
flags:
  etc:
    extra: true
    cli: true
    yaml: true

I use Stack-2.1

@spacekitteh
Copy link
Author

Hmm. Perhaps it is a windows-only bug?

@spacekitteh
Copy link
Author

Nope. Bizarre, when I used just that config, it worked; but when I include etc as a dependency in another project, and use lts-14.0 or 14.1 or 14.6, I get that error.

I am using Stack 2.2.0 (git), but I'm 99.9% sure it was occurring with 2.1 as well.

@spacekitteh
Copy link
Author

Here's the project: http://gitlab.com/spacekitteh/curiosity.git

@qrilka
Copy link
Contributor

qrilka commented Sep 18, 2019

Oh, I guess I see what's the problem: the library had no release since 0.4.1.0 and #67 has landed after that. Until @roman releases a new version you could add the current commit 5c88575 as a dependency into your stack.yaml. Hope this helps.

@TOTBWF
Copy link

TOTBWF commented Feb 11, 2020

I'm also experiencing this, would it make sense to cut a release soon?

@qrilka
Copy link
Contributor

qrilka commented Feb 11, 2020

@TOTBWF maybe it could make sense to contact @roman using some other means than Github - it could be possible that he has no time to maintain the package and new maintainer is needed.

@roosemberth
Copy link

roosemberth commented Nov 21, 2020

I'm hitting this aswell :( Is there any workaround ?

@qrilka
Copy link
Contributor

qrilka commented Nov 21, 2020

you could use the commit mentioned above @roosemberth

@roosemberth
Copy link

@qrilka Yes, sorry I didn't know how stack distributions work ><"

I added this to my stack configuration:

extra-deps:
- git: https://github.com/roman/Haskell-etc
  commit: 5c88575fa5d742aece4669c460e0ae72e039b45e
  subdir: etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants