Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 785514 - x11-misc/xmobar-0.37 - src/.../Parse.hs: error:
Summary: x11-misc/xmobar-0.37 - src/.../Parse.hs: error:
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-25 07:26 UTC by Toralf Förster
Modified: 2021-04-25 10:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.60 KB, text/plain)
2021-04-25 07:26 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,80.08 KB, text/plain)
2021-04-25 07:26 UTC, Toralf Förster
Details
environment (environment,82.88 KB, text/plain)
2021-04-25 07:26 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,16.06 KB, application/x-bzip)
2021-04-25 07:26 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,23.82 KB, application/x-bzip)
2021-04-25 07:26 UTC, Toralf Förster
Details
x11-misc:xmobar-0.37:20210425-072251.log (x11-misc:xmobar-0.37:20210425-072251.log,21.70 KB, text/plain)
2021-04-25 07:26 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-04-25 07:26:15 UTC
[56 of 67] Compiling Xmobar.Config.Parse ( src/Xmobar/Config/Parse.hs, dist/build/Xmobar/Config/Parse.o, dist/build/Xmobar/Config/Parse.dyn_o )

src/Xmobar/Config/Parse.hs:159:34: error:
    • Couldn't match type ‘parsec1-1.0.0.7:Text.ParserCombinators.Parsec.Prim.GenParser
                             Char st0’
                     with ‘Text.Parsec.Prim.ParsecT s u m’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20210423-202814

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.3.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.51.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Apr 25 03:50:09 UTC 2021

emerge -qpvO x11-misc/xmobar
[ebuild  N    ] x11-misc/xmobar-0.37  USE="rtsopts weather -alsa -dbus -doc -hscolour -inotify -iwlib -mpd -mpris -profile -test -timezone -uvmeter -wifi -xft -xpm"
Comment 1 Toralf Förster gentoo-dev 2021-04-25 07:26:16 UTC
Created attachment 702321 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-04-25 07:26:18 UTC
Created attachment 702324 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-04-25 07:26:19 UTC
Created attachment 702327 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-04-25 07:26:21 UTC
Created attachment 702330 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-04-25 07:26:22 UTC
Created attachment 702333 [details]
temp.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-04-25 07:26:23 UTC
Created attachment 702336 [details]
x11-misc:xmobar-0.37:20210425-072251.log
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2021-04-25 10:30:44 UTC
```
src/Xmobar/Config/Parse.hs:159:34: error:
    • Couldn't match type ‘parsec1-1.0.0.7:Text.ParserCombinators.Parsec.Prim.GenParser
                             Char st0’
                     with ‘Text.Parsec.Prim.ParsecT s u m’
      Expected type: Text.Parsec.Prim.ParsecT s u m a
        Actual type: parsec1-1.0.0.7:Text.ParserCombinators.Parsec.Char.CharParser
                       st0 a
    • In the second argument of ‘(>>)’, namely ‘int’
      In the first argument of ‘(>>=)’, namely ‘spaces >> int’
      In the first argument of ‘sepBy’, namely
        ‘(spaces >> int >>= \ x -> spaces >> return x)’
    • Relevant bindings include
        intList :: Text.Parsec.Prim.ParsecT s u m [a]
          (bound at src/Xmobar/Config/Parse.hs:156:7)
    |
159 |         list <- sepBy (spaces >> int >>= \x-> spaces >> return x) (char ',')
    |                                  ^^^
```

Does not happen for me on the same depends versions and USEs. Probably means some dependency changes it's API based on parsec1 dep (and flag).

My guess is on dev-haskell/parsec-numbers[parsec1].