haskell-github-trust / thyme

A faster date and time library based on time
BSD 3-Clause "New" or "Revised" License
46 stars 33 forks source link

test suite and benchmark compilation failures #50

Open bergmark opened 8 years ago

bergmark commented 8 years ago

The test-suite for this package has been disabled in stackage because of this issue. If a fix is published to hackage can you please ping me?

Thanks!

> /tmp/stackage-build8/thyme-0.3.5.5$ runghc -clear-package-db -global-package-db -package-db=/var/stackage/work/builds/nightly/pkgdb Setup configure --enable-tests --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/thyme-0.3.5.5 --htmldir=/var/stackage/work/builds/nightly/doc/thyme-0.3.5.5 --haddockdir=/var/stackage/work/builds/nightly/doc/thyme-0.3.5.5 --flags=
Configuring thyme-0.3.5.5...
> /tmp/stackage-build8/thyme-0.3.5.5$ runghc -clear-package-db -global-package-db -package-db=/var/stackage/work/builds/nightly/pkgdb Setup build
Building thyme-0.3.5.5...
Preprocessing library thyme-0.3.5.5...
[ 1 of 20] Compiling Data.Thyme.Format.Internal ( src/Data/Thyme/Format/Internal.hs, dist/build/Data/Thyme/Format/Internal.o )
[ 2 of 20] Compiling Data.Thyme.Internal.Micro ( src/Data/Thyme/Internal/Micro.hs, dist/build/Data/Thyme/Internal/Micro.o )
[ 3 of 20] Compiling Control.Lens     ( lens/Control/Lens.hs, dist/build/Control/Lens.o )
[ 4 of 20] Compiling Data.Thyme.Calendar.Internal ( src/Data/Thyme/Calendar/Internal.hs, dist/build/Data/Thyme/Calendar/Internal.o )

src/Data/Thyme/Calendar/Internal.hs:21:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[ 5 of 20] Compiling Data.Thyme.Calendar.MonthDay ( src/Data/Thyme/Calendar/MonthDay.hs, dist/build/Data/Thyme/Calendar/MonthDay.o )
[ 6 of 20] Compiling Data.Thyme.Clock.Internal ( src/Data/Thyme/Clock/Internal.hs, dist/build/Data/Thyme/Clock/Internal.o )
[ 7 of 20] Compiling Data.Thyme.Calendar ( src/Data/Thyme/Calendar.hs, dist/build/Data/Thyme/Calendar.o )

src/Data/Thyme/Calendar.hs:24:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[ 8 of 20] Compiling Data.Thyme.Calendar.OrdinalDate ( src/Data/Thyme/Calendar/OrdinalDate.hs, dist/build/Data/Thyme/Calendar/OrdinalDate.o )

src/Data/Thyme/Calendar/OrdinalDate.hs:14:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[ 9 of 20] Compiling Data.Thyme.Calendar.WeekDate ( src/Data/Thyme/Calendar/WeekDate.hs, dist/build/Data/Thyme/Calendar/WeekDate.o )

src/Data/Thyme/Calendar/WeekDate.hs:22:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[10 of 20] Compiling Data.Thyme.Calendar.WeekdayOfMonth ( src/Data/Thyme/Calendar/WeekdayOfMonth.hs, dist/build/Data/Thyme/Calendar/WeekdayOfMonth.o )

src/Data/Thyme/Calendar/WeekdayOfMonth.hs:18:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[11 of 20] Compiling Data.Thyme.Clock.POSIX ( dist/build/Data/Thyme/Clock/POSIX.hs, dist/build/Data/Thyme/Clock/POSIX.o )
[12 of 20] Compiling Data.Thyme.Clock ( src/Data/Thyme/Clock.hs, dist/build/Data/Thyme/Clock.o )
[13 of 20] Compiling Data.Thyme.Format.Human ( src/Data/Thyme/Format/Human.hs, dist/build/Data/Thyme/Format/Human.o )

src/Data/Thyme/Format/Human.hs:15:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[14 of 20] Compiling Data.Thyme.LocalTime ( src/Data/Thyme/LocalTime.hs, dist/build/Data/Thyme/LocalTime.o )

src/Data/Thyme/LocalTime.hs:18:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[15 of 20] Compiling Data.Thyme.Clock.TAI ( src/Data/Thyme/Clock/TAI.hs, dist/build/Data/Thyme/Clock/TAI.o )

src/Data/Thyme/Clock/TAI.hs:27:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[16 of 20] Compiling Data.Thyme.Format ( src/Data/Thyme/Format.hs, dist/build/Data/Thyme/Format.o )
[17 of 20] Compiling Data.Thyme       ( src/Data/Thyme.hs, dist/build/Data/Thyme.o )
[18 of 20] Compiling Data.Thyme.Format.Aeson ( src/Data/Thyme/Format/Aeson.hs, dist/build/Data/Thyme/Format/Aeson.o )

src/Data/Thyme/Format/Aeson.hs:17:1: warning: [-Wunused-imports]
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
[19 of 20] Compiling Data.Thyme.Time.Core ( src/Data/Thyme/Time/Core.hs, dist/build/Data/Thyme/Time/Core.o )
[20 of 20] Compiling Data.Thyme.Time  ( src/Data/Thyme/Time.hs, dist/build/Data/Thyme/Time.o )
Preprocessing test suite 'sanity' for thyme-0.3.5.5...
[1 of 3] Compiling Control.Lens     ( lens/Control/Lens.hs, dist/build/sanity/sanity-tmp/Control/Lens.o )
[2 of 3] Compiling Common           ( tests/Common.hs, dist/build/sanity/sanity-tmp/Common.o )

tests/Common.hs:5:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[3 of 3] Compiling Main             ( tests/sanity.hs, dist/build/sanity/sanity-tmp/Main.o )

tests/sanity.hs:59:23: error:
    • Couldn't match expected type ‘T.TimeLocale’
                  with actual type ‘TimeLocale’
      NB: ‘TimeLocale’
            is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
          ‘T.TimeLocale’
            is defined in ‘Data.Time.Format.Locale’ in package ‘time-1.6.0.1’
    • In the first argument of ‘T.formatTime’, namely
        ‘defaultTimeLocale’
      In the expression: T.formatTime defaultTimeLocale spec t'
      In an equation for ‘s'’:
          s' = T.formatTime defaultTimeLocale spec t'

tests/sanity.hs:69:22: error:
    • Couldn't match expected type ‘T.TimeLocale’
                  with actual type ‘TimeLocale’
      NB: ‘TimeLocale’
            is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
          ‘T.TimeLocale’
            is defined in ‘Data.Time.Format.Locale’ in package ‘time-1.6.0.1’
    • In the first argument of ‘T.formatTime’, namely
        ‘defaultTimeLocale’
      In the expression:
        T.formatTime defaultTimeLocale spec (thyme # orig)
      In an equation for ‘s’:
          s = T.formatTime defaultTimeLocale spec (thyme # orig)

tests/sanity.hs:71:22: error:
    • Couldn't match expected type ‘T.TimeLocale’
                  with actual type ‘TimeLocale’
      NB: ‘TimeLocale’
            is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
          ‘T.TimeLocale’
            is defined in ‘Data.Time.Format.Locale’ in package ‘time-1.6.0.1’
    • In the first argument of ‘T.parseTime’, namely
        ‘defaultTimeLocale’
      In the expression: T.parseTime defaultTimeLocale spec s
      In an equation for ‘t'’: t' = T.parseTime defaultTimeLocale spec s

tests/sanity.hs:74:27: error:
    • Ambiguous type variable ‘t0’ arising from a use of ‘show’
      prevents the constraint ‘(Show t0)’ from being solved.
      Probable fix: use a type annotation to specify what ‘t0’ should be.
      These potential instances exist:
        instance [safe] Show Args -- Defined in ‘Test.QuickCheck.Test’
        instance [safe] Show Result -- Defined in ‘Test.QuickCheck.Test’
        instance (Show i, Show r) => Show (P.IResult i r)
          -- Defined in ‘Data.Attoparsec.Internal.Types’
        ...plus 53 others
        ...plus 143 instances involving out-of-scope types
        (use -fprint-potential-instances to see them all)
    • In the first argument of ‘(++)’, namely ‘show t'’
      In the second argument of ‘(++)’, namely
        ‘show t'
         ++
           "\n\
           \state: "
           ++ show (tp s)’
      In the second argument of ‘(++)’, namely
        ‘"\n\
         \time:  "
         ++
           show t'
           ++
             "\n\
             \state: "
             ++ show (tp s)’
bergmark commented 8 years ago

The benchmarks are also failing

> /tmp/stackage-build8/thyme-0.3.5.5$ runghc -clear-package-db -global-package-db -package-db=/var/stackage/work/builds/nightly/pkgdb Setup configure --enable-benchmarks --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/thyme-0.3.5.5 --htmldir=/var/stackage/work/builds/nightly/doc/thyme-0.3.5.5 --haddockdir=/var/stackage/work/builds/nightly/doc/thyme-0.3.5.5 --flags=
Configuring thyme-0.3.5.5...
> /tmp/stackage-build8/thyme-0.3.5.5$ runghc -clear-package-db -global-package-db -package-db=/var/stackage/work/builds/nightly/pkgdb Setup build
Building thyme-0.3.5.5...
Preprocessing library thyme-0.3.5.5...
[ 1 of 20] Compiling Data.Thyme.Format.Internal ( src/Data/Thyme/Format/Internal.hs, dist/build/Data/Thyme/Format/Internal.o )
[ 2 of 20] Compiling Data.Thyme.Internal.Micro ( src/Data/Thyme/Internal/Micro.hs, dist/build/Data/Thyme/Internal/Micro.o )
[ 3 of 20] Compiling Control.Lens     ( lens/Control/Lens.hs, dist/build/Control/Lens.o )
[ 4 of 20] Compiling Data.Thyme.Calendar.Internal ( src/Data/Thyme/Calendar/Internal.hs, dist/build/Data/Thyme/Calendar/Internal.o )

src/Data/Thyme/Calendar/Internal.hs:21:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[ 5 of 20] Compiling Data.Thyme.Calendar.MonthDay ( src/Data/Thyme/Calendar/MonthDay.hs, dist/build/Data/Thyme/Calendar/MonthDay.o )
[ 6 of 20] Compiling Data.Thyme.Clock.Internal ( src/Data/Thyme/Clock/Internal.hs, dist/build/Data/Thyme/Clock/Internal.o )
[ 7 of 20] Compiling Data.Thyme.Calendar ( src/Data/Thyme/Calendar.hs, dist/build/Data/Thyme/Calendar.o )

src/Data/Thyme/Calendar.hs:24:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[ 8 of 20] Compiling Data.Thyme.Calendar.OrdinalDate ( src/Data/Thyme/Calendar/OrdinalDate.hs, dist/build/Data/Thyme/Calendar/OrdinalDate.o )

src/Data/Thyme/Calendar/OrdinalDate.hs:14:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[ 9 of 20] Compiling Data.Thyme.Calendar.WeekDate ( src/Data/Thyme/Calendar/WeekDate.hs, dist/build/Data/Thyme/Calendar/WeekDate.o )

src/Data/Thyme/Calendar/WeekDate.hs:22:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[10 of 20] Compiling Data.Thyme.Calendar.WeekdayOfMonth ( src/Data/Thyme/Calendar/WeekdayOfMonth.hs, dist/build/Data/Thyme/Calendar/WeekdayOfMonth.o )

src/Data/Thyme/Calendar/WeekdayOfMonth.hs:18:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[11 of 20] Compiling Data.Thyme.Clock.POSIX ( dist/build/Data/Thyme/Clock/POSIX.hs, dist/build/Data/Thyme/Clock/POSIX.o )
[12 of 20] Compiling Data.Thyme.Clock ( src/Data/Thyme/Clock.hs, dist/build/Data/Thyme/Clock.o )
[13 of 20] Compiling Data.Thyme.Format.Human ( src/Data/Thyme/Format/Human.hs, dist/build/Data/Thyme/Format/Human.o )

src/Data/Thyme/Format/Human.hs:15:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[14 of 20] Compiling Data.Thyme.LocalTime ( src/Data/Thyme/LocalTime.hs, dist/build/Data/Thyme/LocalTime.o )

src/Data/Thyme/LocalTime.hs:18:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[15 of 20] Compiling Data.Thyme.Clock.TAI ( src/Data/Thyme/Clock/TAI.hs, dist/build/Data/Thyme/Clock/TAI.o )

src/Data/Thyme/Clock/TAI.hs:27:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[16 of 20] Compiling Data.Thyme.Format ( src/Data/Thyme/Format.hs, dist/build/Data/Thyme/Format.o )
[17 of 20] Compiling Data.Thyme       ( src/Data/Thyme.hs, dist/build/Data/Thyme.o )
[18 of 20] Compiling Data.Thyme.Format.Aeson ( src/Data/Thyme/Format/Aeson.hs, dist/build/Data/Thyme/Format/Aeson.o )

src/Data/Thyme/Format/Aeson.hs:17:1: warning: [-Wunused-imports]
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
[19 of 20] Compiling Data.Thyme.Time.Core ( src/Data/Thyme/Time/Core.hs, dist/build/Data/Thyme/Time/Core.o )
[20 of 20] Compiling Data.Thyme.Time  ( src/Data/Thyme/Time.hs, dist/build/Data/Thyme/Time.o )
Preprocessing benchmark 'bench' for thyme-0.3.5.5...
[1 of 3] Compiling Control.Lens     ( lens/Control/Lens.hs, dist/build/bench/bench-tmp/Control/Lens.o )
[2 of 3] Compiling Common           ( tests/Common.hs, dist/build/bench/bench-tmp/Common.o )

tests/Common.hs:5:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[3 of 3] Compiling Main             ( tests/bench.hs, dist/build/bench/bench-tmp/Main.o )

tests/bench.hs:15:1: error:
    Failed to load interface for ‘Criterion.Config’
    Perhaps you meant Criterion.Monad (from criterion-1.1.1.0)
    Use -v to see a list of the files searched for.

tests/bench.hs:16:1: error:
    Failed to load interface for ‘Criterion.Environment’
    Use -v to see a list of the files searched for.