[Pkg-haskell-maintainers] Bug#740010: catching HttpExceptions doesn't work in DAV monad
Joey Hess
joeyh at debian.org
Mon Feb 24 22:36:22 UTC 2014
Package: libghc-dav-dev
Version: 0.6.1-1
Severity: normal
It seems that http exceptions get thrown as some kind of
stringy-exception type, accidentially.
I would expect the attached testcase to print
"existsDav returned <some error>"
but instead it crashes with an uncaught exception.
Note that the implementation of mkCol in DAV itself uses a similar
catchJust, so is probably affected by this bug.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libghc-dav-dev depends on:
ii ghc [libghc-containers-dev-0.5.0.0-ab1da] 7.6.3-7
ii libc6 2.18-1
pn libghc-base-dev-4.6.0.1-8aa5d <none>
pn libghc-bytestring-dev-0.10.0.2-4f932 <none>
ii libghc-case-insensitive-dev [libghc-case-insensitive-dev-1. 1.1.0.2-1
ii libghc-either-dev [libghc-either-dev-4.1-d240c] 4.1-1+b1
ii libghc-errors-dev [libghc-errors-dev-1.4.5-31759] 1.4.5-1
ii libghc-http-client-dev [libghc-http-client-dev-0.2.0.1-0720 0.2.0.1-2+b1
ii libghc-http-client-tls-dev [libghc-http-client-tls-dev-0.2. 0.2.0.0-1+b2
ii libghc-http-types-dev [libghc-http-types-dev-0.8.3-4e8ed] 0.8.3-1+b2
ii libghc-lens-dev [libghc-lens-dev-3.10-03619] 3.10-1+b3
ii libghc-lifted-base-dev [libghc-lifted-base-dev-0.2.0.3-635d 0.2.0.3-2+b1
ii libghc-monad-control-dev [libghc-monad-control-dev-0.3.2.2- 0.3.2.2-1
pn libghc-mtl-dev-2.1.2-94c72 <none>
ii libghc-transformers-base-dev [libghc-transformers-base-dev- 0.4.1-5
pn libghc-transformers-dev-0.3.0.0-ff2bb <none>
ii libghc-xml-conduit-dev [libghc-xml-conduit-dev-1.1.0.9-f8c7 1.1.0.9-1+b4
ii libghc-xml-hamlet-dev [libghc-xml-hamlet-dev-0.4.0.4-8fcf1] 0.4.0.4-2+b7
ii libicu52 52.1-3
ii zlib1g 1:1.2.8.dfsg-1
libghc-dav-dev recommends no packages.
Versions of packages libghc-dav-dev suggests:
ii libghc-dav-doc 0.6.1-1
ii libghc-dav-prof 0.6.1-1
-- no debconf information
--
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testcase.hs
Type: text/x-haskell
Size: 1086 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20140224/1a9821df/attachment.hs>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20140224/1a9821df/attachment.sig>
More information about the Pkg-haskell-maintainers
mailing list