Bug#1015253: haskell-misfortune FTBFS: No instance for (mtl-2.2.2:Control.Monad.Reader.Class.MonadReader g0 IO) arising from a use of ‘sample’

Adrian Bunk bunk at debian.org
Mon Jul 18 13:14:59 BST 2022


Source: haskell-misfortune
Version: 0.1.1.2-10
Severity: serious
Tags: ftbfs bookworm sid

https://buildd.debian.org/status/package.php?p=haskell-misfortune&suite=sid

...

src/Data/Fortune.hs:238:10: error:
    • No instance for (mtl-2.2.2:Control.Monad.Reader.Class.MonadReader
                         g0 IO)
        arising from a use of ‘sample’
    • In a stmt of a 'do' block: i <- sample (uniform 0 (n - 1))
      In the expression:
        do f <- sample file
           n <- getNumFortunes f
           i <- sample (uniform 0 (n - 1))
           T.unpack <$> getFortune f i
      In an equation for ‘randomFortuneFromRandomFile’:
          randomFortuneFromRandomFile file
            = do f <- sample file
                 n <- getNumFortunes f
                 i <- sample (uniform 0 (n - 1))
                 ....
    |
238 |     i <- sample (uniform 0 (n-1))
    |          ^^^^^^^^^^^^^^^^^^^^^^^^
 at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 107.
	Debian::Debhelper::Buildsystem::Haskell::Recipes::run_quiet("debian/hlibrary.setup", "haddock", "--builddir=dist-ghc", "--with-haddock=/usr/bin/haddock", "--with-ghc=ghc", "--verbose=2", "--html", "--hoogle", ...) called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 131
	Debian::Debhelper::Buildsystem::Haskell::Recipes::run("debian/hlibrary.setup", "haddock", "--builddir=dist-ghc", "--with-haddock=/usr/bin/haddock", "--with-ghc=ghc", "--verbose=2", "--html", "--hoogle", ...) called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 709
	Debian::Debhelper::Buildsystem::Haskell::Recipes::haddock_recipe() called at -e line 1
make: *** [/usr/share/cdbs/1/class/hlibrary.mk:153: build-ghc-stamp] Error 25


More information about the Pkg-haskell-maintainers mailing list