all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#36690: guix import hackage fails on key:value
@ 2019-07-16 14:02 Robert Vollmert
  2023-04-03 16:51 ` Simon Tournier
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Vollmert @ 2019-07-16 14:02 UTC (permalink / raw)
  To: 36690

Apparently, it’s valid for a cabal file to have key-value pairs
without a space, e.g.

benchmark benchmarks
  type: exitcode-stdio-1.0
  main-is:Speed.hs
  hs-source-dirs:test
  default-language: Haskell2010
  build-depends:
    base < 5,
    criterion,
    diagrams-core,
    diagrams-lib

from http://hackage.haskell.org/package/diagrams-lib-1.4.2.3/revision/2.cabal

guix import hackage breaks on this:

$ guix import hackage diagrams-lib
Importing `diagrams-lib` from hackage
Syntax error: unexpected token : main-is:Speed.hs (at line 175, column 2)
Syntax error: unexpected end of input
guix import: error: failed to download cabal file for package 'diagrams-lib'

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#36690: guix import hackage fails on key:value
  2019-07-16 14:02 bug#36690: guix import hackage fails on key:value Robert Vollmert
@ 2023-04-03 16:51 ` Simon Tournier
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Tournier @ 2023-04-03 16:51 UTC (permalink / raw)
  To: Robert Vollmert; +Cc: 36690

Hi,

This old bug#36690 [1] is about an error of the Cabal parser.

1: https://issues.guix.gnu.org/issue/36690

On mar., 16 juil. 2019 at 16:02, Robert Vollmert <rob@vllmrt.net> wrote:

> Apparently, it’s valid for a cabal file to have key-value pairs
> without a space, e.g.
>
> benchmark benchmarks
>   type: exitcode-stdio-1.0
>   main-is:Speed.hs
>   hs-source-dirs:test
>   default-language: Haskell2010
>   build-depends:
>     base < 5,
>     criterion,
>     diagrams-core,
>     diagrams-lib
>
> from http://hackage.haskell.org/package/diagrams-lib-1.4.2.3/revision/2.cabal
>
> guix import hackage breaks on this:
>
> $ guix import hackage diagrams-lib
> Importing `diagrams-lib` from hackage
> Syntax error: unexpected token : main-is:Speed.hs (at line 175, column 2)
> Syntax error: unexpected end of input
> guix import: error: failed to download cabal file for package 'diagrams-lib'

Now, “guix import hackage diagrams-lib” passes.  Well, I do not know if
the parser had been improved or if the Cabal file had been changed.

Without an example for testing the bug, I am in favor to close this
report.  WDYT?

Cheers,
simon




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-03 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-16 14:02 bug#36690: guix import hackage fails on key:value Robert Vollmert
2023-04-03 16:51 ` Simon Tournier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.