Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 785514

Summary: x11-misc/xmobar-0.37 - src/.../Parse.hs: error:
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
temp.tar.bz2
x11-misc:xmobar-0.37:20210425-072251.log

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].