roman / Haskell-etc

Declarative configuration spec for Haskell projects
MIT License
47 stars 7 forks source link

Stackage LTS-14.0 failure #68

Open spacekitteh opened 5 years ago

spacekitteh commented 5 years ago

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 commented 5 years ago

This still occurs in 14.1. @qrilka

qrilka commented 5 years ago

@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 commented 5 years ago

Hmm. Perhaps it is a windows-only bug?

spacekitteh commented 5 years ago

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 commented 5 years ago

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

qrilka commented 5 years ago

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 commented 4 years ago

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

qrilka commented 4 years ago

@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 commented 3 years ago

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

qrilka commented 3 years ago

you could use the commit mentioned above @roosemberth

roosemberth commented 3 years ago

@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