/var/lib/ghc/package.conf.d/HTTP-4000.3.3.conf is in libghc-http-dev 1:4000.3.3-3+b1.
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 | name: HTTP
version: 4000.3.3
id: HTTP-4000.3.3-JMFhmeoXqbBIjfEWxmijf9
key: HTTP-4000.3.3-JMFhmeoXqbBIjfEWxmijf9
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
abi: c3e435e6e9dcd30fcfd6698c98059cec
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.1/HTTP-4000.3.3-JMFhmeoXqbBIjfEWxmijf9
library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.1/HTTP-4000.3.3-JMFhmeoXqbBIjfEWxmijf9
data-dir: /usr/share/http
hs-libraries: HSHTTP-4000.3.3-JMFhmeoXqbBIjfEWxmijf9
depends:
array-0.5.1.1 base-4.9.0.0 bytestring-0.10.8.1
mtl-2.2.1-6qsR1PHUy5lL47Hpoa4jCM
network-2.6.3.1-G4Up1CPKbp7DeFsnywOnGG
network-uri-2.6.1.0-DDHh2FNiPirBRgkuU9DEt2
parsec-3.1.11-BCos4GEVCuDB8dnOCBHO6X time-1.6.0.1
haddock-interfaces: /usr/lib/ghc-doc/haddock/http-4000.3.3/HTTP.haddock
haddock-html: /usr/share/doc/libghc-http-doc/html/
|