/var/lib/ghc/package.conf.d/HTTP-4000.2.2.conf is in libghc-http-dev 1:4000.2.2-2.
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 66 67 68 69 70 71 72 | name: HTTP
version: 4000.2.2
id: HTTP-4000.2.2-bae62bcff73be59a4d68638b20286f88
license: BSD3
copyright:
maintainer: Ganesh Sittampalam <http@projects.haskell.org>
stability:
homepage: https://github.com/haskell/HTTP
package-url:
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/HTTP-4000.2.2/ghc-7.4.1
library-dirs: /usr/lib/haskell-packages/ghc/lib/HTTP-4000.2.2/ghc-7.4.1
hs-libraries: HSHTTP-4000.2.2
extra-libraries:
extra-ghci-libraries:
include-dirs:
includes:
depends: array-0.4.0.0-59d1cc0e7979167b002f021942d60f46
base-4.5.0.0-40b99d05fae6a4eea95ea69e6e0c9702
bytestring-0.9.2.1-18f26186028d7c0e92e78edc9071d376
mtl-2.0.1.0-db19dd8a7700e3d3adda8aa8fe5bf53d
network-2.3.0.10-e9704be897931f0a3e38220c86bf65db
old-time-1.1.0.0-b77788a065c86ada9ba279afa5e04576
parsec-3.1.2-a6715965b792ffb81aeb3b18e0c709ac
hugs-options:
cc-options:
ld-options:
framework-dirs:
frameworks:
haddock-interfaces: /usr/lib/ghc-doc/haddock/http-4000.2.2/HTTP.haddock
haddock-html: /usr/share/doc/libghc-http-doc/html/
|