Giter Club home page Giter Club logo

hgettext's People

Contributors

andreasabel avatar avdv avatar hvr avatar jtojnar avatar nh002 avatar nomeata avatar trofi avatar vasylp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hgettext's Issues

Maintainer wanted

This is a stable package which I just updated to GHC 9.8 (just bumping upper bounds of dependencies).

@NH002 Looking at the reverse dependencies (3), you stood out as an active user of this package. Would you take over this package? I am not using it myself.

Build failure with haskell-src-exts 1.18

> /tmp/stackage-build8$ stack unpack hgettext-0.1.30
Unpacked hgettext-0.1.30 to /tmp/stackage-build8/hgettext-0.1.30/
> /tmp/stackage-build8/hgettext-0.1.30$ runghc -clear-package-db -global-package-db -package-db=/var/stackage/work/builds/nightly/pkgdb Setup configure --package-db=clear --package-db=global --package-db=/var/stackage/work/builds/nightly/pkgdb --libdir=/var/stackage/work/builds/nightly/lib --bindir=/var/stackage/work/builds/nightly/bin --datadir=/var/stackage/work/builds/nightly/share --libexecdir=/var/stackage/work/builds/nightly/libexec --sysconfdir=/var/stackage/work/builds/nightly/etc --docdir=/var/stackage/work/builds/nightly/doc/hgettext-0.1.30 --htmldir=/var/stackage/work/builds/nightly/doc/hgettext-0.1.30 --haddockdir=/var/stackage/work/builds/nightly/doc/hgettext-0.1.30 --flags=
Configuring hgettext-0.1.30...
> /tmp/stackage-build8/hgettext-0.1.30$ runghc -clear-package-db -global-package-db -package-db=/var/stackage/work/builds/nightly/pkgdb Setup build
Building hgettext-0.1.30...
Preprocessing library hgettext-0.1.30...
[1 of 2] Compiling Distribution.Simple.I18N.GetText ( src/Distribution/Simple/I18N/GetText.hs, dist/build/Distribution/Simple/I18N/GetText.o )
[2 of 2] Compiling Text.I18N.GetText ( src/Text/I18N/GetText.hs, dist/build/Text/I18N/GetText.o )
Preprocessing executable 'hgettext' for hgettext-0.1.30...
[1 of 2] Compiling Paths_hgettext   ( dist/build/autogen/Paths_hgettext.hs, dist/build/hgettext/hgettext-tmp/Paths_hgettext.o )
[2 of 2] Compiling Main             ( src/hgettext.hs, dist/build/hgettext/hgettext-tmp/Main.o )

src/hgettext.hs:52:40: error:
    • Expecting one more argument to ‘H.Module’
      Expected a type, but ‘H.Module’ has kind ‘* -> *’
    • In the first argument of ‘H.ParseResult’, namely ‘H.Module’
      In the type signature:
        toTranslate :: String -> H.ParseResult H.Module -> [(Int, String)]

Add COPYING file containing licence

I'm in the process of packaging ghc-hgettext for Fedora, and one of the requirements is that the module's licence is put in a COPYING file in the package, as is standard for other FOSS projects.

Could one be added please?

PO files don't get installed because postInst hook is not run

Distribution.Simple.I18N.GetText overrides postInst hook to install PO files, however this hook is not executed. After some search I've found this related issue: haskell/cabal#1805 and related commit: haskell/cabal@dda6ffe
Looks like after Cabal version 1.18 it is necessary to override both postCopy and postInst.
If I override both hooks then everything is fine: mo files are generated and copied to appropriate path. But w/o this hack it doesn't work.

Don't use CPP

Preprocessing Haskell files with CPP can in some cases break Haskell syntax. For example multi line string literals like the following break. Even though they are valid Haskell.

foo = "abc\
      \def"

I think the most idiomatic way to replace CPP would be to auto-generate a module, similar to what Cabal already does with Paths_<pkg>.

Not using CPP in future versions would suddenly break compatibility, so this should probably be controllable via a flag in *.cabal.

Would you be open for merge requests in this direction?

hgettext tool: Support for files with language extensions

There should be an option for hgettext utility to enable parsing of files that use language extensions: e.g. hgettext -e CPP to use C pre-processor to parse the given file.

Currently, it just throws a parse error when using it on a file with language extensions.

TemplateHaskell extension not used

hgettext.cabal lists TemplateHaskell as an extension for the hgettext executable. hgettext.hs doesn't seem to actually use TemplateHaskell (as an extension) and in Debian we actually compile hgettext with that line removed from hgettext.cabal.
Is there some specific reason to list it as an extension in hgettext.cabal?

Build fails with Cabal 2.2

Configuring hgettext-0.1.31.0...
CallStack (from HasCallStack):
  die', called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:958:20 in Cabal-2.2.0.1:Distribution.Simple.Configure
  configureFinalizedPackage, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:462:12 in Cabal-2.2.0.1:Distribution.Simple.Configure
  configure, called at libraries/Cabal/Cabal/Distribution/Simple.hs:596:20 in Cabal-2.2.0.1:Distribution.Simple
  confHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:67:5 in Cabal-2.2.0.1:Distribution.Simple.UserHooks
  configureAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:178:19 in Cabal-2.2.0.1:Distribution.Simple
  defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:115:27 in Cabal-2.2.0.1:Distribution.Simple
  defaultMain, called at Setup.hs:3:8 in main:Main
Setup: Encountered missing dependencies:
Cabal >=1.14 && <1.25 || ==2.0.*, base >=4.5 && <4.11

builder for '/nix/store/iajjsffhigqzccvxra736gpzyjwx0wy5-hgettext-0.1.31.0.drv' failed with exit code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.