Skip to content

Stack failed to configure project when Distribution.Simple.I18N.GetText is used #1299

Closed
@gromakovsky

Description

@gromakovsky

I am developing a project which needs internalization and I want to use gettext to achieve this. I have a simple Setup.hs which uses Distribution.Simple.I18N.GetText module from hgettext package:
import Distribution.Simple.I18N.GetText
main = gettextDefaultMain
When I run stack build --reconfigure -v I get the following output: https://gist.github.com/gromakovsky/d0ea603555218ceeed9d
I use build-type: Custom in my .cabal file. I've listed hgettext as build-depends for every target in .cabal file, but still get this error. Relevant parts of my stack.yaml:
resolver: lts-3.11
extra-deps:
- hgettext-0.1.30
After some searching I've found a similar issue: commercialhaskell/stackage#746
A workaround there was just to inline GetText module.
I guess this will work in my case, but I don't think this is a good solution.
By the way, if I use cabal directly, then everything gets installed smoothly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions