/var/lib/ghc/package.conf.d/HTTP-4000.2.23.conf is in libghc-http-dev 1:4000.2.23-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | name: HTTP
version: 4000.2.23
id: HTTP-4000.2.23-14eaed5b665c053d0daa9178b842d103
key: HTTP_CK9K9WEMkBSE1zlFmdOMPq
license: BSD3
maintainer: Ganesh Sittampalam <ganesh@earth.li>
homepage: https://github.com/haskell/HTTP
synopsis: A library for client-side HTTP
description:
The HTTP package supports client-side web programming in Haskell. It lets you set up
HTTP connections, transmitting requests and processing the responses coming back, all
from within the comforts of Haskell. It's dependent on the network package to operate,
but other than that, the implementation is all written in Haskell.
.
A basic API for issuing single HTTP requests + receiving responses is provided. On top
of that, a session-level abstraction is also on offer (the @BrowserAction@ monad);
it taking care of handling the management of persistent connections, proxies,
state (cookies) and authentication credentials required to handle multi-step
interactions with a web server.
.
The representation of the bytes flowing across is extensible via the use of a type class,
letting you pick the representation of requests and responses that best fits your use.
Some pre-packaged, common instances are provided for you (@ByteString@, @String@).
.
Here's an example use:
.
>
> do
> rsp <- Network.HTTP.simpleHTTP (getRequest "http://www.haskell.org/")
> -- fetch document and return it (as a 'String'.)
> fmap (take 100) (getResponseBody rsp)
>
> do
> (_, rsp)
> <- Network.Browser.browse $ do
> setAllowRedirects True -- handle HTTP redirects
> request $ getRequest "http://www.haskell.org/"
> return (take 100 (rspBody rsp))
category: Network
author: Warrick Gray <warrick.gray@hotmail.com>
exposed: True
exposed-modules:
Network.BufferType Network.Stream Network.StreamDebugger
Network.StreamSocket Network.TCP Network.HTTP Network.HTTP.Headers
Network.HTTP.Base Network.HTTP.Stream Network.HTTP.Auth
Network.HTTP.Cookie Network.HTTP.Proxy Network.HTTP.HandleStream
Network.Browser
hidden-modules: Network.HTTP.Base64 Network.HTTP.MD5Aux
Network.HTTP.Utils Paths_HTTP
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/HTTP-4000.2.23-CK9K9WEMkBSE1zlFmdOMPq
library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/HTTP-4000.2.23-CK9K9WEMkBSE1zlFmdOMPq
data-dir: /usr/share/http
hs-libraries: HSHTTP-4000.2.23-CK9K9WEMkBSE1zlFmdOMPq
depends:
array-0.5.1.0-960bf9ae8875cc30355e086f8853a049
base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d
bytestring-0.10.6.0-9a873bcf33d6ce2fd2698ce69e2c1c66
mtl-2.2.1-3af90341e75ee52dfc4e3143b4e5d219
network-2.6.2.1-25f4f3b167c1b84622324351cf72302e
network-uri-2.6.0.3-498487433ab76db2bf1078a5ce1815a8
old-time-1.1.0.3-4494378134a1c0eadea2f9ea5411834e
parsec-3.1.9-c97a6d9077152efda935fd305a6ba92b
haddock-interfaces: /usr/lib/ghc-doc/haddock/http-4000.2.23/HTTP.haddock
haddock-html: /usr/share/doc/libghc-http-doc/html/
|