Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test suite fails to compile with stackage nightly #177

Open
sternenseemann opened this issue Feb 20, 2022 · 2 comments
Open

Test suite fails to compile with stackage nightly #177

sternenseemann opened this issue Feb 20, 2022 · 2 comments

Comments

@sternenseemann
Copy link

Preprocessing test suite 'spocktests' for Spock-0.14.0.0..
Building test suite 'spocktests' for Spock-0.14.0.0..
[1 of 6] Compiling Web.Spock.Internal.SessionManagerSpec ( test/Web/Spock/Internal/SessionManagerSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/Internal/SessionManagerSpec.o )
[2 of 6] Compiling Web.Spock.Internal.SessionVaultSpec ( test/Web/Spock/Internal/SessionVaultSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/Internal/SessionVaultSpec.o )
[3 of 6] Compiling Web.Spock.TestUtils ( test/Web/Spock/TestUtils.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/TestUtils.o )
[4 of 6] Compiling Web.Spock.SafeSpec ( test/Web/Spock/SafeSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/SafeSpec.o )

test/Web/Spock/SafeSpec.hs:36:37: error:
    • Couldn't match type: transformers-0.5.6.2:Control.Monad.Trans.State.Lazy.StateT
                             Network.Wai.Test.Internal.ClientState IO
                     with: transformers-0.5.6.2:Control.Monad.Trans.Reader.ReaderT
                             Network.Wai.Application
                             (transformers-0.5.6.2:Control.Monad.Trans.State.Lazy.StateT
                                Network.Wai.Test.Internal.ClientState IO)
      Expected: transformers-0.5.6.2:Control.Monad.Trans.Reader.ReaderT
                  Network.Wai.Application Wai.Session ()
        Actual: Wai.Session ()
    • In the first argument of ‘Test.WaiSession’, namely
        ‘(Wai.deleteClientCookie "spockcookie")’
      In a stmt of a 'do' block:
        Test.WaiSession (Wai.deleteClientCookie "spockcookie")
      In the second argument of ‘($)’, namely
        ‘do Test.WaiSession (Wai.deleteClientCookie "spockcookie")
            res <- Test.get "/test"
            Test.liftIO $ checkCookie ids res `shouldReturn` True’
   |
36 |                 do Test.WaiSession (Wai.deleteClientCookie "spockcookie")
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[5 of 6] Compiling Web.Spock.CsrfSpec ( test/Web/Spock/CsrfSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/CsrfSpec.o )

@frostbane
Copy link

I tried running the tests with nightly-2023-01-08 and was able to successfully run all the tests.

@sternenseemann
Copy link
Author

With lts-20:

@nix { "action": "setPhase", "phase": "setupCompilerEnvironmentPhase" }
setupCompilerEnvironmentPhase
Build with /nix/store/50h3rrcly4gvxh6xi2g16yxm7zv7ihvr-ghc-9.2.4.
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/9p4c18p0pzd11ng0pwz0cfvqcgfrnma6-Spock-0.14.0.0.tar.gz
source root is Spock-0.14.0.0
setting SOURCE_DATE_EPOCH to timestamp 1607497006 of file Spock-0.14.0.0/Spock.cabal
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "compileBuildDriverPhase" }
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/tmp.W7p3pxJAOf/setup-package.conf.d -j4 +RTS -A64M -RTS -threaded -rtsopts
[1 of 1] Compiling Main             ( Setup.hs, /build/tmp.W7p3pxJAOf/Main.o )
Linking Setup ...
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
configureFlags: --verbose --prefix=/nix/store/5k3gkgcnl3wicls3qsqm5pnna9d9l3xy-Spock-0.14.0.0 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/mzflm54gb0j9m4ngp3g9vbw01g8k19q7-Spock-0.14.0.0-doc/share/doc/Spock-0.14.0.0 --with-gcc=gcc --package-db=/build/tmp.W7p3pxJAOf/package.conf.d --ghc-options=-j4 +RTS -A64M -RTS --disable-split-objs --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --ghc-options=-haddock --extra-lib-dirs=/nix/store/ifs2ghiwngx45a0bkq2lymf4gh8zdr9i-ncurses-6.3-p20220507/lib --extra-lib-dirs=/nix/store/2infxahfp9lj084xn3q9ib5ajks8447i-libffi-3.4.4/lib --extra-lib-dirs=/nix/store/4n2j62ghfgsk5amycf3zss01b3wp0846-gmp-with-cxx-6.2.1/lib --extra-lib-dirs=/nix/store/50h3rrcly4gvxh6xi2g16yxm7zv7ihvr-ghc-9.2.4/lib
Using Parsec parser
Warning: Spock.cabal:30:27: Packages with 'cabal-version: 1.12' or later
should specify a specific version of the Cabal spec of the form
'cabal-version: x.y'. Use 'cabal-version: 2.0'.
Configuring Spock-0.14.0.0...
Dependency Spock-core >=0.14: using Spock-core-0.14.0.1
Dependency base >=4 && <5: using base-4.16.3.0
Dependency base64-bytestring >=1.0: using base64-bytestring-1.2.1.0
Dependency bytestring >=0.10: using bytestring-0.11.3.1
Dependency containers >=0.5: using containers-0.6.5.1
Dependency cryptonite >=0.6: using cryptonite-0.30
Dependency focus >=0.1: using focus-1.0.3
Dependency hashable >=1.2: using hashable-1.4.1.0
Dependency http-types >=0.8: using http-types-0.12.3
Dependency hvect >=0.3: using hvect-0.4.0.1
Dependency list-t >=0.4: using list-t-1.0.5.3
Dependency monad-control >=1.0: using monad-control-1.0.3.1
Dependency mtl >=2.1: using mtl-2.2.2
Dependency reroute >=0.5: using reroute-0.7.0.0
Dependency resource-pool >=0.2: using resource-pool-0.2.3.2
Dependency resourcet >=1.2.2: using resourcet-1.2.6
Dependency stm >=2.4: using stm-2.5.0.2
Dependency stm-containers >=1.1.0.2: using stm-containers-1.2
Dependency text >=0.11.3.1: using text-1.2.5.0
Dependency time >=1.4: using time-1.11.1.1
Dependency transformers >=0.3: using transformers-0.5.6.2
Dependency transformers-base >=0.4: using transformers-base-0.4.6
Dependency unordered-containers >=0.2: using unordered-containers-0.2.19.1
Dependency vault >=0.3: using vault-0.3.1.5
Dependency wai >=3.0: using wai-3.2.3
Dependency Spock: using Spock-0.14.0.0
Dependency Spock-core: using Spock-core-0.14.0.1
Dependency base: using base-4.16.3.0
Dependency bytestring: using bytestring-0.11.3.1
Dependency hspec >=2.0: using hspec-2.9.7
Dependency hspec-wai >=0.6: using hspec-wai-0.11.1
Dependency stm: using stm-2.5.0.2
Dependency text: using text-1.2.5.0
Dependency time: using time-1.11.1.1
Dependency unordered-containers: using unordered-containers-0.2.19.1
Dependency vault: using vault-0.3.1.5
Dependency wai: using wai-3.2.3
Dependency wai-extra: using wai-extra-3.1.13.0
Source component graph:
    component lib
    component test:spocktests dependency lib
Configured component graph:
    component Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR
        include Spock-core-0.14.0.1-H4upBWCCJGZFvIQMrhNpff
        include base-4.16.3.0
        include base64-bytestring-1.2.1.0-9J0NcU1rcj4B6Nnhu3KfQN
        include bytestring-0.11.3.1
        include containers-0.6.5.1
        include cryptonite-0.30-7nmmHXqb5Z8AfZq9kWdByP
        include focus-1.0.3-piJHa0Y9UIGrmZZBBqxlO
        include hashable-1.4.1.0-HbEiCaYSLBY8Iw1fcosZQk
        include http-types-0.12.3-5izP1J1igUeIbvvpYJCnj9
        include hvect-0.4.0.1-2fiVZVlVhM1Eon14nuAoQr
        include list-t-1.0.5.3-KFb6fnqYrGH7yoUpJ9GAbd
        include monad-control-1.0.3.1-8bajwl1EnzSE0WIOdlp68D
        include mtl-2.2.2
        include reroute-0.7.0.0-5DCNWESsqo12YCKiNxcTrr
        include resource-pool-0.2.3.2-CJ75265hte0IdTEp34GmL1
        include resourcet-1.2.6-3smmo3xRQjADkFt8ERgPMF
        include stm-2.5.0.2
        include stm-containers-1.2-IOsIDaVN7uV9vz0FajGfA3
        include text-1.2.5.0
        include time-1.11.1.1
        include transformers-0.5.6.2
        include transformers-base-0.4.6-7n93dXskQiX1MZJ5NVrZOh
        include unordered-containers-0.2.19.1-JJePiDWC16wE99LJCBn8wD
        include vault-0.3.1.5-54tRBRokgVBAjZFkzotOX7
        include wai-3.2.3-5quLqD56Ipr42QL0ycGlPf
    component Spock-0.14.0.0-BWOA7xoFYS3FPwrh6DTJlH-spocktests
        include Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR
        include Spock-core-0.14.0.1-H4upBWCCJGZFvIQMrhNpff
        include base-4.16.3.0
        include bytestring-0.11.3.1
        include hspec-2.9.7-GreTpO39aKb7csXk0wHNTm
        include hspec-wai-0.11.1-F4S6dnvZGcvASEYSBnpMLg
        include stm-2.5.0.2
        include text-1.2.5.0
        include time-1.11.1.1
        include unordered-containers-0.2.19.1-JJePiDWC16wE99LJCBn8wD
        include vault-0.3.1.5-54tRBRokgVBAjZFkzotOX7
        include wai-3.2.3-5quLqD56Ipr42QL0ycGlPf
        include wai-extra-3.1.13.0-FrsjevqlKUwhgj55wOuBo
Linked component graph:
    unit Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR
        include Spock-core-0.14.0.1-H4upBWCCJGZFvIQMrhNpff
        include base-4.16.3.0
        include base64-bytestring-1.2.1.0-9J0NcU1rcj4B6Nnhu3KfQN
        include bytestring-0.11.3.1
        include containers-0.6.5.1
        include cryptonite-0.30-7nmmHXqb5Z8AfZq9kWdByP
        include focus-1.0.3-piJHa0Y9UIGrmZZBBqxlO
        include hashable-1.4.1.0-HbEiCaYSLBY8Iw1fcosZQk
        include http-types-0.12.3-5izP1J1igUeIbvvpYJCnj9
        include hvect-0.4.0.1-2fiVZVlVhM1Eon14nuAoQr
        include list-t-1.0.5.3-KFb6fnqYrGH7yoUpJ9GAbd
        include monad-control-1.0.3.1-8bajwl1EnzSE0WIOdlp68D
        include mtl-2.2.2
        include reroute-0.7.0.0-5DCNWESsqo12YCKiNxcTrr
        include resource-pool-0.2.3.2-CJ75265hte0IdTEp34GmL1
        include resourcet-1.2.6-3smmo3xRQjADkFt8ERgPMF
        include stm-2.5.0.2
        include stm-containers-1.2-IOsIDaVN7uV9vz0FajGfA3
        include text-1.2.5.0
        include time-1.11.1.1
        include transformers-0.5.6.2
        include transformers-base-0.4.6-7n93dXskQiX1MZJ5NVrZOh
        include unordered-containers-0.2.19.1-JJePiDWC16wE99LJCBn8wD
        include vault-0.3.1.5-54tRBRokgVBAjZFkzotOX7
        include wai-3.2.3-5quLqD56Ipr42QL0ycGlPf
        Web.Spock=Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR:Web.Spock,Web.Spock.Config=Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR:Web.Spock.Config,Web.Spock.Internal.SessionManager=Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR:Web.Spock.Internal.SessionManager,Web.Spock.Internal.SessionVault=Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR:Web.Spock.Internal.SessionVault,Web.Spock.SessionActions=Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR:Web.Spock.SessionActions
    unit Spock-0.14.0.0-BWOA7xoFYS3FPwrh6DTJlH-spocktests
        include Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR
        include Spock-core-0.14.0.1-H4upBWCCJGZFvIQMrhNpff
        include base-4.16.3.0
        include bytestring-0.11.3.1
        include hspec-2.9.7-GreTpO39aKb7csXk0wHNTm
        include hspec-wai-0.11.1-F4S6dnvZGcvASEYSBnpMLg
        include stm-2.5.0.2
        include text-1.2.5.0
        include time-1.11.1.1
        include unordered-containers-0.2.19.1-JJePiDWC16wE99LJCBn8wD
        include vault-0.3.1.5-54tRBRokgVBAjZFkzotOX7
        include wai-3.2.3-5quLqD56Ipr42QL0ycGlPf
        include wai-extra-3.1.13.0-FrsjevqlKUwhgj55wOuBo
Ready component graph:
    definite Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR
        depends Spock-core-0.14.0.1-H4upBWCCJGZFvIQMrhNpff
        depends base-4.16.3.0
        depends base64-bytestring-1.2.1.0-9J0NcU1rcj4B6Nnhu3KfQN
        depends bytestring-0.11.3.1
        depends containers-0.6.5.1
        depends cryptonite-0.30-7nmmHXqb5Z8AfZq9kWdByP
        depends focus-1.0.3-piJHa0Y9UIGrmZZBBqxlO
        depends hashable-1.4.1.0-HbEiCaYSLBY8Iw1fcosZQk
        depends http-types-0.12.3-5izP1J1igUeIbvvpYJCnj9
        depends hvect-0.4.0.1-2fiVZVlVhM1Eon14nuAoQr
        depends list-t-1.0.5.3-KFb6fnqYrGH7yoUpJ9GAbd
        depends monad-control-1.0.3.1-8bajwl1EnzSE0WIOdlp68D
        depends mtl-2.2.2
        depends reroute-0.7.0.0-5DCNWESsqo12YCKiNxcTrr
        depends resource-pool-0.2.3.2-CJ75265hte0IdTEp34GmL1
        depends resourcet-1.2.6-3smmo3xRQjADkFt8ERgPMF
        depends stm-2.5.0.2
        depends stm-containers-1.2-IOsIDaVN7uV9vz0FajGfA3
        depends text-1.2.5.0
        depends time-1.11.1.1
        depends transformers-0.5.6.2
        depends transformers-base-0.4.6-7n93dXskQiX1MZJ5NVrZOh
        depends unordered-containers-0.2.19.1-JJePiDWC16wE99LJCBn8wD
        depends vault-0.3.1.5-54tRBRokgVBAjZFkzotOX7
        depends wai-3.2.3-5quLqD56Ipr42QL0ycGlPf
    definite Spock-0.14.0.0-BWOA7xoFYS3FPwrh6DTJlH-spocktests
        depends Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR
        depends Spock-core-0.14.0.1-H4upBWCCJGZFvIQMrhNpff
        depends base-4.16.3.0
        depends bytestring-0.11.3.1
        depends hspec-2.9.7-GreTpO39aKb7csXk0wHNTm
        depends hspec-wai-0.11.1-F4S6dnvZGcvASEYSBnpMLg
        depends stm-2.5.0.2
        depends text-1.2.5.0
        depends time-1.11.1.1
        depends unordered-containers-0.2.19.1-JJePiDWC16wE99LJCBn8wD
        depends vault-0.3.1.5-54tRBRokgVBAjZFkzotOX7
        depends wai-3.2.3-5quLqD56Ipr42QL0ycGlPf
        depends wai-extra-3.1.13.0-FrsjevqlKUwhgj55wOuBo
Using Cabal-3.6.3.0 compiled by ghc-9.2
Using compiler: ghc-9.2.4
Using install prefix:
/nix/store/5k3gkgcnl3wicls3qsqm5pnna9d9l3xy-Spock-0.14.0.0
Executables installed in:
/nix/store/5k3gkgcnl3wicls3qsqm5pnna9d9l3xy-Spock-0.14.0.0/bin
Libraries installed in:
/nix/store/5k3gkgcnl3wicls3qsqm5pnna9d9l3xy-Spock-0.14.0.0/lib/ghc-9.2.4/x86_64-linux-ghc-9.2.4/Spock-0.14.0.0-LeXbbVE1oLl4AhUKnXhxpR
Dynamic Libraries installed in:
/nix/store/5k3gkgcnl3wicls3qsqm5pnna9d9l3xy-Spock-0.14.0.0/lib/ghc-9.2.4/x86_64-linux-ghc-9.2.4
Private executables installed in:
/nix/store/5k3gkgcnl3wicls3qsqm5pnna9d9l3xy-Spock-0.14.0.0/libexec/x86_64-linux-ghc-9.2.4/Spock-0.14.0.0
Data files installed in:
/nix/store/5k3gkgcnl3wicls3qsqm5pnna9d9l3xy-Spock-0.14.0.0/share/x86_64-linux-ghc-9.2.4/Spock-0.14.0.0
Documentation installed in:
/nix/store/mzflm54gb0j9m4ngp3g9vbw01g8k19q7-Spock-0.14.0.0-doc/share/doc/Spock-0.14.0.0
Configuration files installed in:
/nix/store/5k3gkgcnl3wicls3qsqm5pnna9d9l3xy-Spock-0.14.0.0/etc
No alex found
Using ar found on system at:
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 11.3.0 given by user at:
/nix/store/wn31i3dzwahz6ccws8bs1nwyqrpgsvj7-gcc-wrapper-11.3.0/bin/gcc
Using ghc version 9.2.4 found on system at:
/nix/store/50h3rrcly4gvxh6xi2g16yxm7zv7ihvr-ghc-9.2.4/bin/ghc
Using ghc-pkg version 9.2.4 found on system at:
/nix/store/50h3rrcly4gvxh6xi2g16yxm7zv7ihvr-ghc-9.2.4/bin/ghc-pkg-9.2.4
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.26.0 found on system at:
/nix/store/50h3rrcly4gvxh6xi2g16yxm7zv7ihvr-ghc-9.2.4/bin/haddock-ghc-9.2.4
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.68 found on system at:
/nix/store/50h3rrcly4gvxh6xi2g16yxm7zv7ihvr-ghc-9.2.4/bin/hpc
Using hsc2hs version 0.68.8 found on system at:
/nix/store/50h3rrcly4gvxh6xi2g16yxm7zv7ihvr-ghc-9.2.4/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/fi1ari00b01bk338x1s61j7pgnsaddjc-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/62fb427ncxaaksa2k59rhbilfg68v20x-binutils-wrapper-2.39/bin/ld.gold
No pkg-config found
Using runghc version 9.2.4 found on system at:
/nix/store/50h3rrcly4gvxh6xi2g16yxm7zv7ihvr-ghc-9.2.4/bin/runghc-9.2.4
Using strip version 2.39 found on system at:
/nix/store/wn31i3dzwahz6ccws8bs1nwyqrpgsvj7-gcc-wrapper-11.3.0/bin/strip
Using tar found on system at:
/nix/store/89zbjdkb48ma61k76l2mzn3s0ra0wn2c-gnutar-1.34/bin/tar
No uhc found
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Preprocessing library for Spock-0.14.0.0..
Building library for Spock-0.14.0.0..
[1 of 7] Compiling Web.Spock.Internal.Types ( src/Web/Spock/Internal/Types.hs, dist/build/Web/Spock/Internal/Types.o, dist/build/Web/Spock/Internal/Types.dyn_o )

src/Web/Spock/Internal/Types.hs:130:25: warning: [-Wstar-is-type]
    Using ‘*’ (or its Unicode variant) to mean ‘Data.Kind.Type’
    relies on the StarIsType extension, which will become
    deprecated in the future.
    Suggested fix: use ‘Type’ from ‘Data.Kind’ instead.
    |
130 |     type SpockConn m :: *
    |                         ^

src/Web/Spock/Internal/Types.hs:131:26: warning: [-Wstar-is-type]
    Using ‘*’ (or its Unicode variant) to mean ‘Data.Kind.Type’
    relies on the StarIsType extension, which will become
    deprecated in the future.
    Suggested fix: use ‘Type’ from ‘Data.Kind’ instead.
    |
131 |     type SpockState m :: *
    |                          ^

src/Web/Spock/Internal/Types.hs:132:28: warning: [-Wstar-is-type]
    Using ‘*’ (or its Unicode variant) to mean ‘Data.Kind.Type’
    relies on the StarIsType extension, which will become
    deprecated in the future.
    Suggested fix: use ‘Type’ from ‘Data.Kind’ instead.
    |
132 |     type SpockSession m :: *
    |                            ^
[2 of 7] Compiling Web.Spock.Internal.SessionVault ( src/Web/Spock/Internal/SessionVault.hs, dist/build/Web/Spock/Internal/SessionVault.o, dist/build/Web/Spock/Internal/SessionVault.dyn_o )

src/Web/Spock/Internal/SessionVault.hs:21:26: warning: [-Wstar-is-type]
    Using ‘*’ (or its Unicode variant) to mean ‘Data.Kind.Type’
    relies on the StarIsType extension, which will become
    deprecated in the future.
    Suggested fix: use ‘Type’ from ‘Data.Kind’ instead.
   |
21 |     type SessionKey s :: *
   |                          ^
[3 of 7] Compiling Web.Spock.Internal.SessionManager ( src/Web/Spock/Internal/SessionManager.hs, dist/build/Web/Spock/Internal/SessionManager.o, dist/build/Web/Spock/Internal/SessionManager.dyn_o )
[4 of 7] Compiling Web.Spock.Internal.Monad ( src/Web/Spock/Internal/Monad.hs, dist/build/Web/Spock/Internal/Monad.o, dist/build/Web/Spock/Internal/Monad.dyn_o )
[5 of 7] Compiling Web.Spock.Config ( src/Web/Spock/Config.hs, dist/build/Web/Spock/Config.o, dist/build/Web/Spock/Config.dyn_o )
[6 of 7] Compiling Web.Spock.SessionActions ( src/Web/Spock/SessionActions.hs, dist/build/Web/Spock/SessionActions.o, dist/build/Web/Spock/SessionActions.dyn_o )
[7 of 7] Compiling Web.Spock        ( src/Web/Spock.hs, dist/build/Web/Spock.o, dist/build/Web/Spock.dyn_o )
[1 of 7] Compiling Web.Spock.Internal.Types ( src/Web/Spock/Internal/Types.hs, dist/build/Web/Spock/Internal/Types.p_o )

src/Web/Spock/Internal/Types.hs:130:25: warning: [-Wstar-is-type]
    Using ‘*’ (or its Unicode variant) to mean ‘Data.Kind.Type’
    relies on the StarIsType extension, which will become
    deprecated in the future.
    Suggested fix: use ‘Type’ from ‘Data.Kind’ instead.
    |
130 |     type SpockConn m :: *
    |                         ^

src/Web/Spock/Internal/Types.hs:131:26: warning: [-Wstar-is-type]
    Using ‘*’ (or its Unicode variant) to mean ‘Data.Kind.Type’
    relies on the StarIsType extension, which will become
    deprecated in the future.
    Suggested fix: use ‘Type’ from ‘Data.Kind’ instead.
    |
131 |     type SpockState m :: *
    |                          ^

src/Web/Spock/Internal/Types.hs:132:28: warning: [-Wstar-is-type]
    Using ‘*’ (or its Unicode variant) to mean ‘Data.Kind.Type’
    relies on the StarIsType extension, which will become
    deprecated in the future.
    Suggested fix: use ‘Type’ from ‘Data.Kind’ instead.
    |
132 |     type SpockSession m :: *
    |                            ^
[2 of 7] Compiling Web.Spock.Internal.SessionVault ( src/Web/Spock/Internal/SessionVault.hs, dist/build/Web/Spock/Internal/SessionVault.p_o )

src/Web/Spock/Internal/SessionVault.hs:21:26: warning: [-Wstar-is-type]
    Using ‘*’ (or its Unicode variant) to mean ‘Data.Kind.Type’
    relies on the StarIsType extension, which will become
    deprecated in the future.
    Suggested fix: use ‘Type’ from ‘Data.Kind’ instead.
   |
21 |     type SessionKey s :: *
   |                          ^
[3 of 7] Compiling Web.Spock.Internal.SessionManager ( src/Web/Spock/Internal/SessionManager.hs, dist/build/Web/Spock/Internal/SessionManager.p_o )
[4 of 7] Compiling Web.Spock.Internal.Monad ( src/Web/Spock/Internal/Monad.hs, dist/build/Web/Spock/Internal/Monad.p_o )
[5 of 7] Compiling Web.Spock.Config ( src/Web/Spock/Config.hs, dist/build/Web/Spock/Config.p_o )
[6 of 7] Compiling Web.Spock.SessionActions ( src/Web/Spock/SessionActions.hs, dist/build/Web/Spock/SessionActions.p_o )
[7 of 7] Compiling Web.Spock        ( src/Web/Spock.hs, dist/build/Web/Spock.p_o )
Preprocessing test suite 'spocktests' for Spock-0.14.0.0..
Building test suite 'spocktests' for Spock-0.14.0.0..
[1 of 6] Compiling Web.Spock.Internal.SessionManagerSpec ( test/Web/Spock/Internal/SessionManagerSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/Internal/SessionManagerSpec.o )
[2 of 6] Compiling Web.Spock.Internal.SessionVaultSpec ( test/Web/Spock/Internal/SessionVaultSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/Internal/SessionVaultSpec.o )
[3 of 6] Compiling Web.Spock.TestUtils ( test/Web/Spock/TestUtils.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/TestUtils.o )
[4 of 6] Compiling Web.Spock.SafeSpec ( test/Web/Spock/SafeSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/SafeSpec.o )

test/Web/Spock/SafeSpec.hs:31:11: error:
    • Couldn't match type ‘Network.Wai.Internal.Request
                           -> (Network.Wai.Internal.Response
                               -> IO Network.Wai.Internal.ResponseReceived)
                           -> IO Network.Wai.Internal.ResponseReceived’
                     with ‘()’
      Expected: SpecWith ((), Network.Wai.Application)
        Actual: SpecWith
                  (Arg (Test.WaiSession Network.Wai.Application ()))
    • In the second argument of ‘($)’, namely
        ‘it "should generate random session ids"
           $ do ids <- Test.liftIO $ newIORef HS.empty
                replicateM_ 500
                  $ do Test.WaiSession (Wai.deleteClientCookie "spockcookie")
                       res <- Test.get "/test"
                       ....’
      In a stmt of a 'do' block:
        Test.with sessionApp
          $ it "should generate random session ids"
              $ do ids <- Test.liftIO $ newIORef HS.empty
                   replicateM_ 500
                     $ do Test.WaiSession (Wai.deleteClientCookie "spockcookie")
                          res <- Test.get "/test"
                          ....
      In the second argument of ‘($)’, namely
        ‘do Test.with sessionApp
              $ it "should generate random session ids"
                  $ do ids <- Test.liftIO $ newIORef HS.empty
                       replicateM_ 500 $ do ...
            Test.with sessionApp
              $ it "should remember a session"
                  $ do res <- Test.get "/set/5"
                       case getSessCookie res of
                         Nothing -> ...
                         Just sessCookie -> ...
            Test.with sessionApp
              $ it "should update internal session id correctly"
                  $ do bdy <- fmap
                                Wai.simpleBody (Test.get "/regenerate-different-sids")
                       case BSLC.split '|' bdy of
                         [a, b] | a /= b -> ...
                         xs -> ...
            Test.with sessionApp
              $ it "should regenerate and preserve all content"
                  $ do res <- Test.get "/set/5"
                       case getSessCookie res of
                         Nothing -> ...
                         Just sessCookie -> ...’
   |
31 |           it "should generate random session ids" $
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

test/Web/Spock/SafeSpec.hs:36:37: error:
    • Couldn't match type: transformers-0.5.6.2:Control.Monad.Trans.State.Lazy.StateT
                             Network.Wai.Test.Internal.ClientState IO
                     with: transformers-0.5.6.2:Control.Monad.Trans.Reader.ReaderT
                             Network.Wai.Application
                             (transformers-0.5.6.2:Control.Monad.Trans.State.Lazy.StateT
                                Network.Wai.Test.Internal.ClientState IO)
      Expected: transformers-0.5.6.2:Control.Monad.Trans.Reader.ReaderT
                  Network.Wai.Application Wai.Session ()
        Actual: Wai.Session ()
    • In the first argument of ‘Test.WaiSession’, namely
        ‘(Wai.deleteClientCookie "spockcookie")’
      In a stmt of a 'do' block:
        Test.WaiSession (Wai.deleteClientCookie "spockcookie")
      In the second argument of ‘($)’, namely
        ‘do Test.WaiSession (Wai.deleteClientCookie "spockcookie")
            res <- Test.get "/test"
            Test.liftIO $ checkCookie ids res `shouldReturn` True’
   |
36 |                 do Test.WaiSession (Wai.deleteClientCookie "spockcookie")
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[5 of 6] Compiling Web.Spock.CsrfSpec ( test/Web/Spock/CsrfSpec.hs, dist/build/spocktests/spocktests-tmp/Web/Spock/CsrfSpec.o )

test/Web/Spock/CsrfSpec.hs:38:18: warning: [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding:
        Patterns of type ‘Maybe Data.Text.Internal.Text’ not matched:
            Nothing
   |
38 |              let Just sessCookie = getSessCookie resp
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Seems unlikely that it would work with an even newer solver as no new release has been cut since 0.14.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants