haskell / haskell/attoparsec

QC Test failure in t_iter

Open
#232 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
531
Forks
98
PR merge metrics
No merged PRs in 30d

Description

GHC 9.10.3 / text-2.1.3 / QuickCheck-2.15.0.1

```
t_iter: FAIL
*** Failed! Falsified, Falsified (after 13 tests and 19 shrinks):
BP ["\NUL\65744,\DC3\NUL\US$,","\193774\42427f\71074\67018"] "\NUL\65744,\DC3\NUL\US$,\193774\42427f\71074\67018" "\NUL\65744,\DC3\NUL\US$,\193774\42427f\71074\67018"
27 /= 0

('\-3414',2) /= ('\-3584',2)

Use --quickcheck-replay="(SMGen 15460247098243224403 10696293924639987469,12)" to reproduce.
Use -p '$0=="tests.buf.t_iter"' to rerun this test only.
```

full log

```
Running phase: setupCompilerEnvironmentPhase
@nix { "action": "setPhase", "phase": "setupCompilerEnvironmentPhase" }
Build with /nix/store/ajnfcg4gr3956zdqk7ibydpr0l0rhwfv-ghc-9.10.3.
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/7xizd63623bzgyny21lfm7krwk9kr0qf-attoparsec-0.14.4.tar.gz
source root is attoparsec-0.14.4
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file "attoparsec-0.14.4/tests/QC/Text/Regressions.hs"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Replace Cabal file with edited version from mirror://hackage/attoparsec-0.14.4/revision/6.cabal.
Running phase: compileBuildDriverPhase
@nix { "action": "setPhase", "phase": "compileBuildDriverPhase" }
setupCompileFlags: -package-db=/build/tmp.oySLESkz5J/setup-package.conf.d -threaded
[1 of 2] Compiling Main ( Setup.lhs, /build/tmp.oySLESkz5J/Main.o )
[2 of 2] Linking Setup
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configureFlags: --verbose --prefix=/nix/store/r801p884fp9aihyw881fjyxdvq63dgzp-attoparsec-0.14.4 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --with-gcc=gcc --package-db=/build/tmp.oySLESkz5J/package.conf.d --ghc-option=-j4 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-RTS --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 --enable-split-sections --enable-library-stripping --enable-executable-stripping --extra-lib-dirs=/nix/store/6zdgga8jx741p46wmx8xyibwz3x3fps6-ncurses-6.5/lib --extra-lib-dirs=/nix/store/i6a553gjc2i4r4p54qk5mdy3ybsiydwk-libffi-3.5.1/lib --extra-lib-dirs=/nix/store/hnzqas16kwcvaj2j5wb4izxdh692f9vn-elfutils-0.193/lib --extra-lib-dirs=/nix/store/12m0v9p2c5pshd8m201z8la0ijd95ri9-gmp-with-cxx-6.3.0/lib --extra-lib-dirs=/nix/store/z6bn6ri10cax3lnyc4hx628hgdvaxgf1-numactl-2.0.18/lib
Using Parsec parser
Configuring attoparsec-0.14.4...
Flags chosen: developer=False
Dependency array: using array-0.5.8.0
Dependency attoparsec:attoparsec-internal: using attoparsec-0.14.4
Dependency base >=4.5 && <5: using base-4.20.2.0
Dependency bytestring <0.13: using bytestring-0.12.2.0
Dependency containers: using containers-0.7
Dependency deepseq: using deepseq-1.5.0.0
Dependency ghc-prim <0.14: using ghc-prim-0.12.0
Dependency scientific >=0.3.1 && <0.4: using scientific-0.3.8.0
Dependency text >=1.1.1.3: using text-2.1.3
Dependency transformers >=0.2 && <0.4 || >=0.4.1.0 && <0.7: using
transformers-0.6.1.1
Dependency array: using array-0.5.8.0
Dependency base >=4.5 && <5: using base-4.20.2.0
Dependency bytestring <0.13: using bytestring-0.12.2.0
Dependency text >=1.1.1.3: using text-2.1.3
Dependency QuickCheck >=2.13.2 && <2.16: using QuickCheck-2.15.0.1
Dependency array: using array-0.5.8.0
Dependency attoparsec:{attoparsec, attoparsec-internal}: using
attoparsec-0.14.4
Dependency attoparsec:{attoparsec, attoparsec-internal}: using
attoparsec-0.14.4
Dependency base: using base-4.20.2.0
Dependency bytestring: using bytestring-0.12.2.0
Dependency deepseq >=1.1: using deepseq-1.5.0.0
Dependency quickcheck-unicode: using quickcheck-unicode-1.0.1.0
Dependency scientific: using scientific-0.3.8.0
Dependency tasty >=0.11: using tasty-1.5.3
Dependency tasty-quickcheck >=0.8: using tasty-quickcheck-0.11.1
Dependency text: using text-2.1.3
Dependency transformers: using transformers-0.6.1.1
Dependency vector: using vector-0.13.2.0
Source component graph:
component lib:attoparsec-internal
component lib dependency lib:attoparsec-internal
component test:attoparsec-tests
dependency lib
dependency lib:attoparsec-internal
Configured component graph:
component attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal
include array-0.5.8.0-3600
include base-4.20.2.0-3d9c
include bytestring-0.12.2.0-ca87
include text-2.1.3-6011
component attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT
include array-0.5.8.0-3600
include attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal
include base-4.20.2.0-3d9c
include bytestring-0.12.2.0-ca87
include containers-0.7-d730
include deepseq-1.5.0.0-d8c6
include ghc-prim-0.12.0-bcb8
include scientific-0.3.8.0-KsunjONbiNsDhH2zG47htd
include text-2.1.3-6011
include transformers-0.6.1.1-1645
component attoparsec-0.14.4-7FpjPO3bB9r4gWB3MHqXwa-attoparsec-tests
include QuickCheck-2.15.0.1-De7vuOaQMbyBAaudohcktA
include array-0.5.8.0-3600
include attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT
include attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal
include base-4.20.2.0-3d9c
include bytestring-0.12.2.0-ca87
include deepseq-1.5.0.0-d8c6
include quickcheck-unicode-1.0.1.0-BaKWGhLH22ND2UGH3FB85s
include scientific-0.3.8.0-KsunjONbiNsDhH2zG47htd
include tasty-1.5.3-Ijy2212Jt97xzJJ2yg7uV
include tasty-quickcheck-0.11.1-60X5XoLuR5451VgTWz2clC
include text-2.1.3-6011
include transformers-0.6.1.1-1645
include vector-0.13.2.0-F1lkOoFfYVkAu50UAzuC5n
Linked component graph:
unit attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal
include array-0.5.8.0-3600
include base-4.20.2.0-3d9c
include bytestring-0.12.2.0-ca87
include text-2.1.3-6011
Data.Attoparsec.ByteString.Buffer=attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal:Data.Attoparsec.ByteString.Buffer,Data.Attoparsec.ByteString.FastSet=attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal:Data.Attoparsec.ByteString.FastSet,Data.Attoparsec.Internal.Compat=attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal:Data.Attoparsec.Internal.Compat,Data.Attoparsec.Internal.Fhthagn=attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal:Data.Attoparsec.Internal.Fhthagn,Data.Attoparsec.Text.Buffer=attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal:Data.Attoparsec.Text.Buffer,Data.Attoparsec.Text.FastSet=attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal:Data.Attoparsec.Text.FastSet
unit attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT
include array-0.5.8.0-3600
include attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal
include base-4.20.2.0-3d9c
include bytestring-0.12.2.0-ca87
include containers-0.7-d730
include deepseq-1.5.0.0-d8c6
include ghc-prim-0.12.0-bcb8
include scientific-0.3.8.0-KsunjONbiNsDhH2zG47htd
include text-2.1.3-6011
include transformers-0.6.1.1-1645
Data.Attoparsec=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec,Data.Attoparsec.ByteString=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.ByteString,Data.Attoparsec.ByteString.Char8=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.ByteString.Char8,Data.Attoparsec.ByteString.Lazy=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.ByteString.Lazy,Data.Attoparsec.Char8=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.Char8,Data.Attoparsec.Combinator=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.Combinator,Data.Attoparsec.Internal=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.Internal,Data.Attoparsec.Internal.Types=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.Internal.Types,Data.Attoparsec.Lazy=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.Lazy,Data.Attoparsec.Number=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.Number,Data.Attoparsec.Text=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.Text,Data.Attoparsec.Text.Lazy=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.Text.Lazy,Data.Attoparsec.Types=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.Types,Data.Attoparsec.Zepto=attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT:Data.Attoparsec.Zepto
unit attoparsec-0.14.4-7FpjPO3bB9r4gWB3MHqXwa-attoparsec-tests
include QuickCheck-2.15.0.1-De7vuOaQMbyBAaudohcktA
include array-0.5.8.0-3600
include attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT
include attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal
include base-4.20.2.0-3d9c
include bytestring-0.12.2.0-ca87
include deepseq-1.5.0.0-d8c6
include quickcheck-unicode-1.0.1.0-BaKWGhLH22ND2UGH3FB85s
include scientific-0.3.8.0-KsunjONbiNsDhH2zG47htd
include tasty-1.5.3-Ijy2212Jt97xzJJ2yg7uV
include tasty-quickcheck-0.11.1-60X5XoLuR5451VgTWz2clC
include text-2.1.3-6011
include transformers-0.6.1.1-1645
include vector-0.13.2.0-F1lkOoFfYVkAu50UAzuC5n
Ready component graph:
definite attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal
depends array-0.5.8.0-3600
depends base-4.20.2.0-3d9c
depends bytestring-0.12.2.0-ca87
depends text-2.1.3-6011
definite attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT
depends array-0.5.8.0-3600
depends attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal
depends base-4.20.2.0-3d9c
depends bytestring-0.12.2.0-ca87
depends containers-0.7-d730
depends deepseq-1.5.0.0-d8c6
depends ghc-prim-0.12.0-bcb8
depends scientific-0.3.8.0-KsunjONbiNsDhH2zG47htd
depends text-2.1.3-6011
depends transformers-0.6.1.1-1645
definite attoparsec-0.14.4-7FpjPO3bB9r4gWB3MHqXwa-attoparsec-tests
depends QuickCheck-2.15.0.1-De7vuOaQMbyBAaudohcktA
depends array-0.5.8.0-3600
depends attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT
depends attoparsec-0.14.4-JZyYqjsPbaDB9tXHtByLW0-attoparsec-internal
depends base-4.20.2.0-3d9c
depends bytestring-0.12.2.0-ca87
depends deepseq-1.5.0.0-d8c6
depends quickcheck-unicode-1.0.1.0-BaKWGhLH22ND2UGH3FB85s
depends scientific-0.3.8.0-KsunjONbiNsDhH2zG47htd
depends tasty-1.5.3-Ijy2212Jt97xzJJ2yg7uV
depends tasty-quickcheck-0.11.1-60X5XoLuR5451VgTWz2clC
depends text-2.1.3-6011
depends transformers-0.6.1.1-1645
depends vector-0.13.2.0-F1lkOoFfYVkAu50UAzuC5n
Using Cabal-3.12.1.0 compiled by ghc-9.10
Using compiler: ghc-9.10.3
Using install prefix:
/nix/store/r801p884fp9aihyw881fjyxdvq63dgzp-attoparsec-0.14.4
Executables installed in:
/nix/store/r801p884fp9aihyw881fjyxdvq63dgzp-attoparsec-0.14.4/bin
Libraries installed in:
/nix/store/r801p884fp9aihyw881fjyxdvq63dgzp-attoparsec-0.14.4/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-b543/attoparsec-0.14.4-GCOfOOGekIaJQXEVeb9ibT
Dynamic Libraries installed in:
/nix/store/r801p884fp9aihyw881fjyxdvq63dgzp-attoparsec-0.14.4/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-b543
Private executables installed in:
/nix/store/r801p884fp9aihyw881fjyxdvq63dgzp-attoparsec-0.14.4/libexec/x86_64-linux-ghc-9.10.3-b543/attoparsec-0.14.4
Data files installed in:
/nix/store/r801p884fp9aihyw881fjyxdvq63dgzp-attoparsec-0.14.4/share/x86_64-linux-ghc-9.10.3-b543/attoparsec-0.14.4
Documentation installed in:
/nix/store/r801p884fp9aihyw881fjyxdvq63dgzp-attoparsec-0.14.4/share/doc/x86_64-linux-ghc-9.10.3-b543/attoparsec-0.14.4
Configuration files installed in:
/nix/store/r801p884fp9aihyw881fjyxdvq63dgzp-attoparsec-0.14.4/etc
No alex found
Using ar found on system at:
/nix/store/l19cddv64i52rhcwahif8sgyrd3mhiqb-binutils-wrapper-2.44/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 14.3.0 given by user at:
/nix/store/95k9rsn1zsw1yvir8mj824ldhf90i4qw-gcc-wrapper-14.3.0/bin/gcc
Using ghc version 9.10.3 found on system at:
/nix/store/ajnfcg4gr3956zdqk7ibydpr0l0rhwfv-ghc-9.10.3/bin/ghc
Using ghc-pkg version 9.10.3 found on system at:
/nix/store/ajnfcg4gr3956zdqk7ibydpr0l0rhwfv-ghc-9.10.3/bin/ghc-pkg-9.10.3
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.31.1 found on system at:
/nix/store/ajnfcg4gr3956zdqk7ibydpr0l0rhwfv-ghc-9.10.3/bin/haddock-ghc-9.10.3
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.69 found on system at:
/nix/store/ajnfcg4gr3956zdqk7ibydpr0l0rhwfv-ghc-9.10.3/bin/hpc-ghc-9.10.3
Using hsc2hs version 0.68.10 found on system at:
/nix/store/ajnfcg4gr3956zdqk7ibydpr0l0rhwfv-ghc-9.10.3/bin/hsc2hs-ghc-9.10.3
Using hscolour version 1.25 found on system at:
/nix/store/yc0vh2wbxcp3wppwvi67pg0dm9c1mp7y-hscolour-1.25/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/95k9rsn1zsw1yvir8mj824ldhf90i4qw-gcc-wrapper-14.3.0/bin/ld
No pkg-config found
Using runghc version 9.10.3 found on system at:
/nix/store/ajnfcg4gr3956zdqk7ibydpr0l0rhwfv-ghc-9.10.3/bin/runghc-9.10.3
Using strip version 2.44 found on system at:
/nix/store/95k9rsn1zsw1yvir8mj824ldhf90i4qw-gcc-wrapper-14.3.0/bin/strip
Using tar found on system at:
/nix/store/8av8pfs7bnyc6hqj764ns4z1fnr9bva1-gnutar-1.35/bin/tar
No uhc found
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Preprocessing library 'attoparsec-internal' for attoparsec-0.14.4...
Building library 'attoparsec-internal' for attoparsec-0.14.4...
[1 of 6] Compiling Data.Attoparsec.ByteString.FastSet ( internal/Data/Attoparsec/ByteString/FastSet.hs, dist/build/attoparsec-internal/Data/Attoparsec/ByteString/FastSet.o, dist/build/attoparsec-internal/Data/Attoparsec/ByteString/FastSet.dyn_o )
internal/Data/Attoparsec/ByteString/FastSet.hs:97:18: warning: []8;;https://errors.haskell.org/messages/GHC-68441\GHC-68441]8;;\] [-Wdeprecations]
In the use of ‘memset’
(imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type):
Deprecated: "Use Foreign.Marshal.Utils.fillBytes instead"
 |
97 | _ <- I.memset t 0 32
 | ^^^^^^^^

[2 of 6] Compiling Data.Attoparsec.Internal.Compat ( internal/Data/Attoparsec/Internal/Compat.hs, dist/build/attoparsec-internal/Data/Attoparsec/Internal/Compat.o, dist/build/attoparsec-internal/Data/Attoparsec/Internal/Compat.dyn_o )
[3 of 6] Compiling Data.Attoparsec.Internal.Fhthagn ( internal/Data/Attoparsec/Internal/Fhthagn.hs, dist/build/attoparsec-internal/Data/Attoparsec/Internal/Fhthagn.o, dist/build/attoparsec-internal/Data/Attoparsec/Internal/Fhthagn.dyn_o )
[4 of 6] Compiling Data.Attoparsec.ByteString.Buffer ( internal/Data/Attoparsec/ByteString/Buffer.hs, dist/build/attoparsec-internal/Data/Attoparsec/ByteString/Buffer.o, dist/build/attoparsec-internal/Data/Attoparsec/ByteString/Buffer.dyn_o )
internal/Data/Attoparsec/ByteString/Buffer.hs:62:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Data.Semigroup’ is redundant
except perhaps to import instances from ‘Data.Semigroup’
To import instances alone, use: import Data.Semigroup()
 |
62 | import Data.Semigroup (Semigroup(..))
 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

internal/Data/Attoparsec/ByteString/Buffer.hs:121:11: warning: []8;;https://errors.haskell.org/messages/GHC-68441\GHC-68441]8;;\] [-Wdeprecations]
In the use of ‘memcpy’
(imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type):
Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead"
 |
121 | memcpy (ptr0 `plusPtr` (off0+len0))
 | ^^^^^^

internal/Data/Attoparsec/ByteString/Buffer.hs:132:13: warning: []8;;https://errors.haskell.org/messages/GHC-68441\GHC-68441]8;;\] [-Wdeprecations]
In the use of ‘memcpy’
(imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type):
Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead"
 |
132 | memcpy ptr (ptr0 `plusPtr` off0) (fromIntegral len0)
 | ^^^^^^

internal/Data/Attoparsec/ByteString/Buffer.hs:133:13: warning: []8;;https://errors.haskell.org/messages/GHC-68441\GHC-68441]8;;\] [-Wdeprecations]
In the use of ‘memcpy’
(imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type):
Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead"
 |
133 | memcpy (ptr `plusPtr` len0) (ptr1 `plusPtr` off1)
 | ^^^^^^

[5 of 6] Compiling Data.Attoparsec.Text.Buffer ( internal/Data/Attoparsec/Text/Buffer.hs, dist/build/attoparsec-internal/Data/Attoparsec/Text/Buffer.o, dist/build/attoparsec-internal/Data/Attoparsec/Text/Buffer.dyn_o )
internal/Data/Attoparsec/Text/Buffer.hs:44:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Data.Semigroup’ is redundant
except perhaps to import instances from ‘Data.Semigroup’
To import instances alone, use: import Data.Semigroup()
 |
44 | import Data.Semigroup (Semigroup(..))
 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[6 of 6] Compiling Data.Attoparsec.Text.FastSet ( internal/Data/Attoparsec/Text/FastSet.hs, dist/build/attoparsec-internal/Data/Attoparsec/Text/FastSet.o, dist/build/attoparsec-internal/Data/Attoparsec/Text/FastSet.dyn_o )
[1 of 6] Compiling Data.Attoparsec.ByteString.FastSet ( internal/Data/Attoparsec/ByteString/FastSet.hs, dist/build/attoparsec-internal/Data/Attoparsec/ByteString/FastSet.p_o )
internal/Data/Attoparsec/ByteString/FastSet.hs:97:18: warning: []8;;https://errors.haskell.org/messages/GHC-68441\GHC-68441]8;;\] [-Wdeprecations]
In the use of ‘memset’
(imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type):
Deprecated: "Use Foreign.Marshal.Utils.fillBytes instead"
 |
97 | _ <- I.memset t 0 32
 | ^^^^^^^^

[2 of 6] Compiling Data.Attoparsec.Internal.Compat ( internal/Data/Attoparsec/Internal/Compat.hs, dist/build/attoparsec-internal/Data/Attoparsec/Internal/Compat.p_o )
[3 of 6] Compiling Data.Attoparsec.Internal.Fhthagn ( internal/Data/Attoparsec/Internal/Fhthagn.hs, dist/build/attoparsec-internal/Data/Attoparsec/Internal/Fhthagn.p_o )
[4 of 6] Compiling Data.Attoparsec.ByteString.Buffer ( internal/Data/Attoparsec/ByteString/Buffer.hs, dist/build/attoparsec-internal/Data/Attoparsec/ByteString/Buffer.p_o )
internal/Data/Attoparsec/ByteString/Buffer.hs:62:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Data.Semigroup’ is redundant
except perhaps to import instances from ‘Data.Semigroup’
To import instances alone, use: import Data.Semigroup()
 |
62 | import Data.Semigroup (Semigroup(..))
 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

internal/Data/Attoparsec/ByteString/Buffer.hs:121:11: warning: []8;;https://errors.haskell.org/messages/GHC-68441\GHC-68441]8;;\] [-Wdeprecations]
In the use of ‘memcpy’
(imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type):
Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead"
 |
121 | memcpy (ptr0 `plusPtr` (off0+len0))
 | ^^^^^^

internal/Data/Attoparsec/ByteString/Buffer.hs:132:13: warning: []8;;https://errors.haskell.org/messages/GHC-68441\GHC-68441]8;;\] [-Wdeprecations]
In the use of ‘memcpy’
(imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type):
Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead"
 |
132 | memcpy ptr (ptr0 `plusPtr` off0) (fromIntegral len0)
 | ^^^^^^

internal/Data/Attoparsec/ByteString/Buffer.hs:133:13: warning: []8;;https://errors.haskell.org/messages/GHC-68441\GHC-68441]8;;\] [-Wdeprecations]
In the use of ‘memcpy’
(imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type):
Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead"
 |
133 | memcpy (ptr `plusPtr` len0) (ptr1 `plusPtr` off1)
 | ^^^^^^

[5 of 6] Compiling Data.Attoparsec.Text.Buffer ( internal/Data/Attoparsec/Text/Buffer.hs, dist/build/attoparsec-internal/Data/Attoparsec/Text/Buffer.p_o )
internal/Data/Attoparsec/Text/Buffer.hs:44:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Data.Semigroup’ is redundant
except perhaps to import instances from ‘Data.Semigroup’
To import instances alone, use: import Data.Semigroup()
 |
44 | import Data.Semigroup (Semigroup(..))
 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[6 of 6] Compiling Data.Attoparsec.Text.FastSet ( internal/Data/Attoparsec/Text/FastSet.hs, dist/build/attoparsec-internal/Data/Attoparsec/Text/FastSet.p_o )
Preprocessing library for attoparsec-0.14.4...
Building library for attoparsec-0.14.4...
[ 1 of 16] Compiling Data.Attoparsec.Internal.Types ( Data/Attoparsec/Internal/Types.hs, dist/build/Data/Attoparsec/Internal/Types.o, dist/build/Data/Attoparsec/Internal/Types.dyn_o )
Data/Attoparsec/Internal/Types.hs:28:53: warning: []8;;https://errors.haskell.org/messages/GHC-38856\GHC-38856]8;;\] [-Wunused-imports]
The import of ‘<$>’ from module ‘Control.Applicative’ is redundant
 |
28 | import Control.Applicative as App (Applicative(..), (<$>))
 | ^^^^^

Data/Attoparsec/Internal/Types.hs:34:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Data.Semigroup’ is redundant
except perhaps to import instances from ‘Data.Semigroup’
To import instances alone, use: import Data.Semigroup()
 |
34 | import Data.Semigroup (Semigroup(..))
 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[ 2 of 16] Compiling Data.Attoparsec.Internal ( Data/Attoparsec/Internal.hs, dist/build/Data/Attoparsec/Internal.o, dist/build/Data/Attoparsec/Internal.dyn_o )
[ 3 of 16] Compiling Data.Attoparsec.Number ( Data/Attoparsec/Number.hs, dist/build/Data/Attoparsec/Number.o, dist/build/Data/Attoparsec/Number.dyn_o )
[ 4 of 16] Compiling Data.Attoparsec.Types ( Data/Attoparsec/Types.hs, dist/build/Data/Attoparsec/Types.o, dist/build/Data/Attoparsec/Types.dyn_o )
[ 5 of 16] Compiling Data.Attoparsec.Zepto ( Data/Attoparsec/Zepto.hs, dist/build/Data/Attoparsec/Zepto.o, dist/build/Data/Attoparsec/Zepto.dyn_o )
Data/Attoparsec/Zepto.hs:46:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Data.Semigroup’ is redundant
except perhaps to import instances from ‘Data.Semigroup’
To import instances alone, use: import Data.Semigroup()
 |
46 | import Data.Semigroup (Semigroup(..))
 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[ 6 of 16] Compiling Data.Attoparsec.Combinator ( Data/Attoparsec/Combinator.hs, dist/build/Data/Attoparsec/Combinator.o, dist/build/Data/Attoparsec/Combinator.dyn_o )
Data/Attoparsec/Combinator.hs:46:46: warning: []8;;https://errors.haskell.org/messages/GHC-38856\GHC-38856]8;;\] [-Wunused-imports]
The import of ‘liftA2’
from module ‘Control.Applicative’ is redundant
 |
46 | import Control.Applicative (Alternative(..), liftA2, many, (<|>))
 | ^^^^^^

[ 7 of 16] Compiling Data.Attoparsec.Text.Internal ( Data/Attoparsec/Text/Internal.hs, dist/build/Data/Attoparsec/Text/Internal.o, dist/build/Data/Attoparsec/Text/Internal.dyn_o )
Data/Attoparsec/Text/Internal.hs:68:36: warning: []8;;https://errors.haskell.org/messages/GHC-38856\GHC-38856]8;;\] [-Wunused-imports]
The import of ‘*>, <$>, pure’
from module ‘Control.Applicative’ is redundant
 |
68 | import Control.Applicative ((<|>), (<$>), pure, (*>))
 | ^^^^^^^^^^^^^^^^^

Data/Attoparsec/Text/Internal.hs:91:13: warning: []8;;https://errors.haskell.org/messages/GHC-58520\GHC-58520]8;;\] [-Wtype-equality-requires-operators]
The use of ‘~’ without TypeOperators
will become an error in a future GHC release.
Suggested fix: Perhaps you intended to use TypeOperators
 |
91 | instance (a ~ Text) => IsString (Parser a) where
 | ^

[ 8 of 16] Compiling Data.Attoparsec.Text ( Data/Attoparsec/Text.hs, dist/build/Data/Attoparsec/Text.o, dist/build/Data/Attoparsec/Text.dyn_o )
[ 9 of 16] Compiling Data.Attoparsec.Text.Lazy ( Data/Attoparsec/Text/Lazy.hs, dist/build/Data/Attoparsec/Text/Lazy.o, dist/build/Data/Attoparsec/Text/Lazy.dyn_o )
[10 of 16] Compiling Data.Attoparsec.ByteString.Internal ( Data/Attoparsec/ByteString/Internal.hs, dist/build/Data/Attoparsec/ByteString/Internal.o, dist/build/Data/Attoparsec/ByteString/Internal.dyn_o )
[11 of 16] Compiling Data.Attoparsec.ByteString ( Data/Attoparsec/ByteString.hs, dist/build/Data/Attoparsec/ByteString.o, dist/build/Data/Attoparsec/ByteString.dyn_o )
[12 of 16] Compiling Data.Attoparsec.ByteString.Lazy ( Data/Attoparsec/ByteString/Lazy.hs, dist/build/Data/Attoparsec/ByteString/Lazy.o, dist/build/Data/Attoparsec/ByteString/Lazy.dyn_o )
[13 of 16] Compiling Data.Attoparsec.Lazy ( Data/Attoparsec/Lazy.hs, dist/build/Data/Attoparsec/Lazy.o, dist/build/Data/Attoparsec/Lazy.dyn_o )
[14 of 16] Compiling Data.Attoparsec.ByteString.Char8 ( Data/Attoparsec/ByteString/Char8.hs, dist/build/Data/Attoparsec/ByteString/Char8.o, dist/build/Data/Attoparsec/ByteString/Char8.dyn_o )
Data/Attoparsec/ByteString/Char8.hs:154:13: warning: []8;;https://errors.haskell.org/messages/GHC-58520\GHC-58520]8;;\] [-Wtype-equality-requires-operators]
The use of ‘~’ without TypeOperators
will become an error in a future GHC release.
Suggested fix: Perhaps you intended to use TypeOperators
 |
154 | instance (a ~ B.ByteString) => IsString (Parser a) where
 | ^

[15 of 16] Compiling Data.Attoparsec.Char8 ( Data/Attoparsec/Char8.hs, dist/build/Data/Attoparsec/Char8.o, dist/build/Data/Attoparsec/Char8.dyn_o )
[16 of 16] Compiling Data.Attoparsec ( Data/Attoparsec.hs, dist/build/Data/Attoparsec.o, dist/build/Data/Attoparsec.dyn_o )
[ 1 of 16] Compiling Data.Attoparsec.Internal.Types ( Data/Attoparsec/Internal/Types.hs, dist/build/Data/Attoparsec/Internal/Types.p_o )
Data/Attoparsec/Internal/Types.hs:28:53: warning: []8;;https://errors.haskell.org/messages/GHC-38856\GHC-38856]8;;\] [-Wunused-imports]
The import of ‘<$>’ from module ‘Control.Applicative’ is redundant
 |
28 | import Control.Applicative as App (Applicative(..), (<$>))
 | ^^^^^

Data/Attoparsec/Internal/Types.hs:34:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Data.Semigroup’ is redundant
except perhaps to import instances from ‘Data.Semigroup’
To import instances alone, use: import Data.Semigroup()
 |
34 | import Data.Semigroup (Semigroup(..))
 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[ 2 of 16] Compiling Data.Attoparsec.Internal ( Data/Attoparsec/Internal.hs, dist/build/Data/Attoparsec/Internal.p_o )
[ 3 of 16] Compiling Data.Attoparsec.Number ( Data/Attoparsec/Number.hs, dist/build/Data/Attoparsec/Number.p_o )
[ 4 of 16] Compiling Data.Attoparsec.Types ( Data/Attoparsec/Types.hs, dist/build/Data/Attoparsec/Types.p_o )
[ 5 of 16] Compiling Data.Attoparsec.Zepto ( Data/Attoparsec/Zepto.hs, dist/build/Data/Attoparsec/Zepto.p_o )
Data/Attoparsec/Zepto.hs:46:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Data.Semigroup’ is redundant
except perhaps to import instances from ‘Data.Semigroup’
To import instances alone, use: import Data.Semigroup()
 |
46 | import Data.Semigroup (Semigroup(..))
 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[ 6 of 16] Compiling Data.Attoparsec.Combinator ( Data/Attoparsec/Combinator.hs, dist/build/Data/Attoparsec/Combinator.p_o )
Data/Attoparsec/Combinator.hs:46:46: warning: []8;;https://errors.haskell.org/messages/GHC-38856\GHC-38856]8;;\] [-Wunused-imports]
The import of ‘liftA2’
from module ‘Control.Applicative’ is redundant
 |
46 | import Control.Applicative (Alternative(..), liftA2, many, (<|>))
 | ^^^^^^

[ 7 of 16] Compiling Data.Attoparsec.Text.Internal ( Data/Attoparsec/Text/Internal.hs, dist/build/Data/Attoparsec/Text/Internal.p_o )
Data/Attoparsec/Text/Internal.hs:68:36: warning: []8;;https://errors.haskell.org/messages/GHC-38856\GHC-38856]8;;\] [-Wunused-imports]
The import of ‘*>, <$>, pure’
from module ‘Control.Applicative’ is redundant
 |
68 | import Control.Applicative ((<|>), (<$>), pure, (*>))
 | ^^^^^^^^^^^^^^^^^

Data/Attoparsec/Text/Internal.hs:91:13: warning: []8;;https://errors.haskell.org/messages/GHC-58520\GHC-58520]8;;\] [-Wtype-equality-requires-operators]
The use of ‘~’ without TypeOperators
will become an error in a future GHC release.
Suggested fix: Perhaps you intended to use TypeOperators
 |
91 | instance (a ~ Text) => IsString (Parser a) where
 | ^

[ 8 of 16] Compiling Data.Attoparsec.Text ( Data/Attoparsec/Text.hs, dist/build/Data/Attoparsec/Text.p_o )
[ 9 of 16] Compiling Data.Attoparsec.Text.Lazy ( Data/Attoparsec/Text/Lazy.hs, dist/build/Data/Attoparsec/Text/Lazy.p_o )
[10 of 16] Compiling Data.Attoparsec.ByteString.Internal ( Data/Attoparsec/ByteString/Internal.hs, dist/build/Data/Attoparsec/ByteString/Internal.p_o )
[11 of 16] Compiling Data.Attoparsec.ByteString ( Data/Attoparsec/ByteString.hs, dist/build/Data/Attoparsec/ByteString.p_o )
[12 of 16] Compiling Data.Attoparsec.ByteString.Lazy ( Data/Attoparsec/ByteString/Lazy.hs, dist/build/Data/Attoparsec/ByteString/Lazy.p_o )
[13 of 16] Compiling Data.Attoparsec.Lazy ( Data/Attoparsec/Lazy.hs, dist/build/Data/Attoparsec/Lazy.p_o )
[14 of 16] Compiling Data.Attoparsec.ByteString.Char8 ( Data/Attoparsec/ByteString/Char8.hs, dist/build/Data/Attoparsec/ByteString/Char8.p_o )
Data/Attoparsec/ByteString/Char8.hs:154:13: warning: []8;;https://errors.haskell.org/messages/GHC-58520\GHC-58520]8;;\] [-Wtype-equality-requires-operators]
The use of ‘~’ without TypeOperators
will become an error in a future GHC release.
Suggested fix: Perhaps you intended to use TypeOperators
 |
154 | instance (a ~ B.ByteString) => IsString (Parser a) where
 | ^

[15 of 16] Compiling Data.Attoparsec.Char8 ( Data/Attoparsec/Char8.hs, dist/build/Data/Attoparsec/Char8.p_o )
[16 of 16] Compiling Data.Attoparsec ( Data/Attoparsec.hs, dist/build/Data/Attoparsec.p_o )
Preprocessing test suite 'attoparsec-tests' for attoparsec-0.14.4...
Building test suite 'attoparsec-tests' for attoparsec-0.14.4...
[ 1 of 12] Compiling QC.Common ( tests/QC/Common.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/QC/Common.o )
[ 2 of 12] Compiling QC.Combinator ( tests/QC/Combinator.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/QC/Combinator.o )
[ 3 of 12] Compiling QC.ByteString ( tests/QC/ByteString.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/QC/ByteString.o )
[ 4 of 12] Compiling QC.Buffer ( tests/QC/Buffer.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/QC/Buffer.o )
[ 5 of 12] Compiling QC.IPv6.Types ( tests/QC/IPv6/Types.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/QC/IPv6/Types.o )
[ 6 of 12] Compiling QC.IPv6.Internal ( tests/QC/IPv6/Internal.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/QC/IPv6/Internal.o )
tests/QC/IPv6/Internal.hs:32:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Control.Monad’ is redundant
except perhaps to import instances from ‘Control.Monad’
To import instances alone, use: import Control.Monad()
 |
32 | import Control.Monad (replicateM)
 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/QC/IPv6/Internal.hs:34:27: warning: []8;;https://errors.haskell.org/messages/GHC-38856\GHC-38856]8;;\] [-Wunused-imports]
The import of ‘isHexDigit, toLower’
from module ‘Data.Char’ is redundant
 |
34 | import Data.Char (isDigit,isHexDigit,toLower)
 | ^^^^^^^^^^^^^^^^^^

tests/QC/IPv6/Internal.hs:35:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-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()
 |
35 | import Data.Monoid ((<>))
 | ^^^^^^^^^^^^^^^^^^^^^^^^^

tests/QC/IPv6/Internal.hs:36:35: warning: []8;;https://errors.haskell.org/messages/GHC-38856\GHC-38856]8;;\] [-Wunused-imports]
The import of ‘<*’ from module ‘Control.Applicative’ is redundant
 |
36 | import Control.Applicative ((<|>),(<*))
 | ^^^^

tests/QC/IPv6/Internal.hs:38:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Data.Word’ is redundant
except perhaps to import instances from ‘Data.Word’
To import instances alone, use: import Data.Word()
 |
38 | import Data.Word (Word32)
 | ^^^^^^^^^^^^^^^^^^^^^^^^^

tests/QC/IPv6/Internal.hs:46:1: warning: []8;;https://errors.haskell.org/messages/GHC-38417\GHC-38417]8;;\] [-Wmissing-signatures]
Top-level binding with no type signature: tok0 :: T.Text
 |
46 | tok0 = "0"
 | ^^^^

tests/QC/IPv6/Internal.hs:68:36: warning: []8;;https://errors.haskell.org/messages/GHC-40910\GHC-40910]8;;\] [-Wunused-matches]
Defined but not used: ‘tok1’
 |
68 | isIPv6Addr [DoubleColon,SixteenBit tok1] = True
 | ^^^^

tests/QC/IPv6/Internal.hs:77:17: warning: []8;;https://errors.haskell.org/messages/GHC-18042\GHC-18042]8;;\] [-Wtype-defaults]
• Defaulting the type variable ‘a0’ to type ‘Integer’ in the following constraints
(Eq a0)
arising from the literal ‘0’ at tests/QC/IPv6/Internal.hs:77:17
(Num a0)
arising from the literal ‘0’ at tests/QC/IPv6/Internal.hs:77:17
(Num a0)
arising from a use of ‘oneMoreIPv4Addr’
at tests/QC/IPv6/Internal.hs:109:23-37
(Eq a0)
arising from a use of ‘==’ at tests/QC/IPv6/Internal.hs:221:45-46
(Num a0)
arising from the literal ‘1’ at tests/QC/IPv6/Internal.hs:221:48
• In the pattern: 0
In a case alternative:
0 -> case lasttk of
SixteenBit _ -> lenconst
DoubleColon -> lenconst
AllZeros -> lenconst
_ -> False
In the second argument of ‘(&&)’, namely
‘(case countIPv4Addr tks of
0 -> case lasttk of
SixteenBit _ -> lenconst
DoubleColon -> lenconst
AllZeros -> lenconst
_ -> False
1 -> case lasttk of
IPv4Addr _
-> (lentks == 13 && cdctks == 0) || (lentks < 12 && cdctks == 1)
_ -> False
otherwise -> False)’
 |
77 | 0 -> case lasttk of
 | ^

tests/QC/IPv6/Internal.hs:85:17: warning: []8;;https://errors.haskell.org/messages/GHC-40910\GHC-40910]8;;\] [-Wunused-matches]
Defined but not used: ‘otherwise’
 |
85 | otherwise -> False))
 | ^^^^^^^^^

tests/QC/IPv6/Internal.hs:85:17: warning: []8;;https://errors.haskell.org/messages/GHC-63397\GHC-63397]8;;\] [-Wname-shadowing]
This binding for ‘otherwise’ shadows the existing binding
imported from ‘Prelude’ at tests/QC/IPv6/Internal.hs:16:8-23
(and originally defined in ‘ghc-internal-9.1003.0:GHC.Internal.Base’)
 |
85 | otherwise -> False))
 | ^^^^^^^^^

tests/QC/IPv6/Internal.hs:89:29: warning: []8;;https://errors.haskell.org/messages/GHC-63394\GHC-63394]8;;\] [-Wx-partial]
In the use of ‘head’
(imported from Prelude, but defined in GHC.Internal.List):
"This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
 |
89 | let h = head ts
 | ^^^^

tests/QC/IPv6/Internal.hs:101:26: warning: []8;;https://errors.haskell.org/messages/GHC-63394\GHC-63394]8;;\] [-Wx-partial]
In the use of ‘head’
(imported from Prelude, but defined in GHC.Internal.List):
"This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
 |
101 | case head l of
 | ^^^^

tests/QC/IPv6/Internal.hs:107:17: warning: []8;;https://errors.haskell.org/messages/GHC-40910\GHC-40910]8;;\] [-Wunused-local-binds]
Defined but not used: ‘tok1’
 |
107 | tok1 = "1"
 | ^^^^

tests/QC/IPv6/Internal.hs:107:24: warning: []8;;https://errors.haskell.org/messages/GHC-18042\GHC-18042]8;;\] [-Wtype-defaults]
• Defaulting the type variable ‘a0’ to type ‘String’ in the following constraint
ghc-internal-9.1003.0:GHC.Internal.Data.String.IsString a0
arising from the literal ‘"1"’
• In the expression: "1"
In an equation for ‘tok1’: tok1 = "1"
In an equation for ‘isIPv6Addr’:
isIPv6Addr tks
= diffNext tks
&&
(do let cdctks = countDoubleColon tks
let lentks = length tks
let lasttk = last tks
let lenconst
= (lentks == 15 && cdctks == 0) || (lentks < 15 && cdctks == 1)
....)
where
diffNext [] = False
diffNext [_] = True
diffNext (t : ts)
= do let ...
....
firstValidToken l
= case head l of
SixteenBit _ -> True
DoubleColon -> True
AllZeros -> True
_ -> False
countDoubleColon l = length $ elemIndices DoubleColon l
tok1 = "1"
 |
107 | tok1 = "1"
 | ^^^

tests/QC/IPv6/Internal.hs:109:1: warning: []8;;https://errors.haskell.org/messages/GHC-38417\GHC-38417]8;;\] [-Wmissing-signatures]
Top-level binding with no type signature:
countIPv4Addr :: [IPv6AddrToken] -> Integer
 |
109 | countIPv4Addr = foldr oneMoreIPv4Addr 0
 | ^^^^^^^^^^^^^

tests/QC/IPv6/Internal.hs:113:31: warning: []8;;https://errors.haskell.org/messages/GHC-40910\GHC-40910]8;;\] [-Wunused-matches]
Defined but not used: ‘otherwise’
 |
113 | otherwise -> c
 | ^^^^^^^^^

tests/QC/IPv6/Internal.hs:113:31: warning: []8;;https://errors.haskell.org/messages/GHC-63397\GHC-63397]8;;\] [-Wname-shadowing]
This binding for ‘otherwise’ shadows the existing binding
imported from ‘Prelude’ at tests/QC/IPv6/Internal.hs:16:8-23
(and originally defined in ‘ghc-internal-9.1003.0:GHC.Internal.Base’)
 |
113 | otherwise -> c
 | ^^^^^^^^^

tests/QC/IPv6/Internal.hs:145:5: warning: []8;;https://errors.haskell.org/messages/GHC-62161\GHC-62161]8;;\] [-Wincomplete-patterns]
Pattern match(es) are non-exhaustive
In a case alternative:
Patterns of type ‘IResult T.Text [IPv6AddrToken]’ not matched:
Partial _
 |
145 | case readText s of
 | ^^^^^^^^^^^^^^^^^^...

tests/QC/IPv6/Internal.hs:149:14: warning: []8;;https://errors.haskell.org/messages/GHC-63397\GHC-63397]8;;\] [-Wname-shadowing]
This binding for ‘s’ shadows the existing binding
bound at tests/QC/IPv6/Internal.hs:144:21
 |
149 | readText s = feed (parse (many1 $ ipv4Addr <|> sixteenBit <|> doubleColon <|> colon) s) T.empty
 | ^

tests/QC/IPv6/Internal.hs:212:55: warning: []8;;https://errors.haskell.org/messages/GHC-63394\GHC-63394]8;;\] [-Wx-partial]
In the use of ‘tail’
(imported from Prelude, but defined in GHC.Internal.List):
"This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"."
 |
212 | let snds = if not (null (snd s)) then tail(snd s) else []
 | ^^^^

tests/QC/IPv6/Internal.hs:219:34: warning: []8;;https://errors.haskell.org/messages/GHC-63397\GHC-63397]8;;\] [-Wname-shadowing]
This binding for ‘x’ shadows the existing binding
bound at tests/QC/IPv6/Internal.hs:218:42
 |
219 | ntks tks - foldl (\c x -> if (x /= DoubleColon) && (x /= Colon) then c+1 else c) 0 x
 | ^

tests/QC/IPv6/Internal.hs:221:18: warning: []8;;https://errors.haskell.org/messages/GHC-63397\GHC-63397]8;;\] [-Wname-shadowing]
This binding for ‘tks’ shadows the existing binding
bound at tests/QC/IPv6/Internal.hs:207:17
 |
221 | ntks tks = if countIPv4Addr tks == 1 then 7 else 8
 | ^^^

tests/QC/IPv6/Internal.hs:242:25: warning: []8;;https://errors.haskell.org/messages/GHC-63397\GHC-63397]8;;\] [-Wname-shadowing]
This binding for ‘t’ shadows the existing binding
bound at tests/QC/IPv6/Internal.hs:235:23
 |
242 | where longest t = case t of
 | ^

tests/QC/IPv6/Internal.hs:247:21: warning: []8;;https://errors.haskell.org/messages/GHC-63394\GHC-63394]8;;\] [-Wx-partial]
In the use of ‘head’
(imported from Prelude, but defined in GHC.Internal.List):
"This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
 |
247 | helper h = (head h == AllZeros, lh) where lh = length h
 | ^^^^

tests/QC/IPv6/Internal.hs:298:12: warning: []8;;https://errors.haskell.org/messages/GHC-18042\GHC-18042]8;;\] [-Wtype-defaults]
• Defaulting the type variable ‘a0’ to type ‘Integer’ in the following constraints
(Integral a0)
arising from a use of ‘R.decimal’
at tests/QC/IPv6/Internal.hs:298:12-20
(Ord a0)
arising from a use of ‘<’ at tests/QC/IPv6/Internal.hs:299:39
(Num a0)
arising from the literal ‘256’
at tests/QC/IPv6/Internal.hs:299:41-43
(Show a0)
arising from a use of ‘show’ at tests/QC/IPv6/Internal.hs:299:59-62
• In the expression: R.decimal ds
In a stmt of a 'do' block:
case R.decimal ds of
Right (n, _)
-> return (if n < 256 then T.pack $ show n else T.empty)
Left _ -> return T.empty
In the expression:
do ds <- takeWhile1 isDigit
case R.decimal ds of
Right (n, _)
-> return (if n < 256 then T.pack $ show n else T.empty)
Left _ -> return T.empty
 |
298 | case R.decimal ds of
 | ^^^^^^^^^

tests/QC/IPv6/Internal.hs:304:5: warning: []8;;https://errors.haskell.org/messages/GHC-81995\GHC-81995]8;;\] [-Wunused-do-bind]
A do-notation statement discarded a result of type ‘T.Text’
Suggested fix: Suppress this warning by saying ‘_ <- string "::"’
 |
304 | string "::"
 | ^^^^^^^^^^^

tests/QC/IPv6/Internal.hs:309:5: warning: []8;;https://errors.haskell.org/messages/GHC-81995\GHC-81995]8;;\] [-Wunused-do-bind]
A do-notation statement discarded a result of type ‘T.Text’
Suggested fix: Suppress this warning by saying ‘_ <- string ":"’
 |
309 | string ":"
 | ^^^^^^^^^^

[ 7 of 12] Compiling QC.Rechunked ( tests/QC/Rechunked.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/QC/Rechunked.o )
[ 8 of 12] Compiling QC.Simple ( tests/QC/Simple.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/QC/Simple.o )
tests/QC/Simple.hs:10:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Data.List’ is redundant
except perhaps to import instances from ‘Data.List’
To import instances alone, use: import Data.List()
 |
10 | import Data.List (foldl')
 | ^^^^^^^^^^^^^^^^^^^^^^^^^

[ 9 of 12] Compiling QC.Text.FastSet ( tests/QC/Text/FastSet.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/QC/Text/FastSet.o )
[10 of 12] Compiling QC.Text.Regressions ( tests/QC/Text/Regressions.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/QC/Text/Regressions.o )
tests/QC/Text/Regressions.hs:9:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-Wunused-imports]
The import of ‘Data.List’ is redundant
except perhaps to import instances from ‘Data.List’
To import instances alone, use: import Data.List()
 |
9 | import Data.List (foldl')
 | ^^^^^^^^^^^^^^^^^^^^^^^^^

tests/QC/Text/Regressions.hs:12:1: warning: []8;;https://errors.haskell.org/messages/GHC-66111\GHC-66111]8;;\] [-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()
 |
12 | import Data.Monoid ((<>))
 | ^^^^^^^^^^^^^^^^^^^^^^^^^

[11 of 12] Compiling QC.Text ( tests/QC/Text.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/QC/Text.o )
[12 of 12] Compiling Main ( tests/QC.hs, dist/build/attoparsec-tests/attoparsec-tests-tmp/Main.o )
[13 of 13] Linking dist/build/attoparsec-tests/attoparsec-tests
buildPhase completed in 40 seconds
Running phase: checkPhase
@nix { "action": "setPhase", "phase": "checkPhase" }
Running 1 test suites...
Test suite attoparsec-tests: RUNNING...
tests
bs
anyWord8: OK
+++ OK, passed 100 tests.
endOfInput: OK
+++ OK, passed 100 tests.
endOfLine: OK
+++ OK, failed as expected. Falsified, Falsified (after 4 tests and 2 shrinks):
"\NUL"
'\NUL' /= '\n'

('\NUL',Nothing) /= ('\r',Just '\n')
notWord8: OK
+++ OK, passed 100 tests.
peekWord8: OK
+++ OK, passed 100 tests.
peekWord8': OK
+++ OK, passed 100 tests.
satisfy: OK
+++ OK, passed 100 tests.
satisfyWith: OK
+++ OK, passed 100 tests.
scan: OK
+++ OK, passed 100 tests.
skip: OK
+++ OK, failed as expected. Falsified (after 2 tests and 1 shrink):
0
"\NUL"
not (0 < 0)
skipWhile: OK
+++ OK, passed 100 tests.
string: OK
+++ OK, passed 100 tests.
stringCI: OK
+++ OK, passed 100 tests.
strings: OK
+++ OK, passed 100 tests.
take: OK
+++ OK, passed 100 tests.
takeByteString: OK
+++ OK, passed 100 tests.
takeCount: OK
+++ OK, passed 100 tests.
takeLazyByteString: OK
+++ OK, passed 100 tests.
takeTill: OK
+++ OK, passed 100 tests.
takeWhile: OK
+++ OK, passed 100 tests.
takeWhile1: OK
+++ OK, passed 100 tests.
takeWhile1_empty: OK
+++ OK, passed 100 tests.
takeWhileIncluding: OK
+++ OK, passed 100 tests.
getChunk: OK
+++ OK, passed 100 tests.
word8: OK
+++ OK, passed 100 tests.
members: OK
+++ OK, passed 100 tests.
nonmembers: OK
+++ OK, passed 100 tests.
buf
b_unbuffer: OK (0.02s)
+++ OK, passed 100 tests.
t_unbuffer: OK (0.01s)
+++ OK, passed 100 tests.
t_unbuffer_three: OK
+++ OK, passed 100 tests.
b_length: OK (0.02s)
+++ OK, passed 100 tests.
t_length: OK
+++ OK, passed 100 tests.
b_unsafeIndex: OK (0.02s)
+++ OK, passed 100 tests.
t_iter: FAIL
*** Failed! Falsified, Falsified (after 13 tests and 19 shrinks):
BP ["\NUL\65744,\DC3\NUL\US$,","\193774\42427f\71074\67018"] "\NUL\65744,\DC3\NUL\US$,\193774\42427f\71074\67018" "\NUL\65744,\DC3\NUL\US$,\193774\42427f\71074\67018"
27 /= 0

('\-3414',2) /= ('\-3584',2)

Use --quickcheck-replay="(SMGen 15460247098243224403 10696293924639987469,12)" to reproduce.
Use -p '$0=="tests.buf.t_iter"' to rerun this test only.
t_iter_: OK (0.01s)
+++ OK, passed 100 tests.
b_unsafeDrop: OK (0.02s)
+++ OK, passed 100 tests.
t_dropCodeUnits: OK
+++ OK, passed 100 tests.
combinator
choice: OK (0.01s)
+++ OK, passed 100 tests.
count: OK
+++ OK, passed 100 tests.
lookAhead: OK
+++ OK, passed 100 tests.
match: OK
+++ OK, passed 100 tests.
simple
issue75: OK
+++ OK, passed 100 tests.
text
anyChar: OK
+++ OK, passed 100 tests.
asciiCI: OK
+++ OK, passed 100 tests.
char: OK
+++ OK, passed 100 tests.
endOfInput: OK
+++ OK, passed 100 tests.
endOfLine: OK
+++ OK, failed as expected. Falsified, Falsified (after 4 tests and 2 shrinks):
"\NUL"
'\NUL' /= '\n'

('\NUL',Nothing) /= ('\r',Just '\n')
notChar: OK
+++ OK, passed 100 tests.
peekChar: OK
+++ OK, passed 100 tests.
peekChar': OK
+++ OK, passed 100 tests.
satisfy: OK
+++ OK, passed 100 tests.
satisfyWith: OK
+++ OK, passed 100 tests.
scan: OK
+++ OK, passed 100 tests.
skip: OK
+++ OK, failed as expected. Falsified (after 6 tests and 17 shrinks):
'a'
"a"
not ('a' < 'a')
skipWhile: OK
+++ OK, passed 100 tests.
string: OK
+++ OK, passed 100 tests.
strings: OK
+++ OK, passed 100 tests.
stringCI: OK
+++ OK, passed 100 tests.
take: OK
+++ OK, passed 100 tests.
takeText: OK
+++ OK, passed 100 tests.
takeCount: OK
+++ OK, passed 100 tests.
takeLazyText: OK
+++ OK, passed 100 tests.
takeTill: OK
+++ OK, passed 100 tests.
takeWhile: OK
+++ OK, passed 100 tests.
takeWhile1: OK
+++ OK, passed 100 tests.
takeWhile1_empty: OK
+++ OK, passed 100 tests.
members: OK
+++ OK, passed 100 tests.
nonmembers: OK
+++ OK, passed 100 tests.
FastSet
membership is correct: OK
+++ OK, passed 100 tests.
Regressions
issue105: OK
+++ OK, passed 100 tests.

1 out of 70 tests failed (0.21s)
Test suite attoparsec-tests: FAIL
Test suite logged to: dist/test/attoparsec-0.14.4-attoparsec-tests.log
0 of 1 test suites (0 of 1 test cases) passed.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.