Browse Source

Conditional dependencies for GHC 7.0.1 and README.md note

master
Jon Kristensen 13 years ago
parent
commit
1fcb94eb6a
  1. 5
      README.md
  2. 40
      pontarius-xmpp.cabal

5
README.md

@ -30,6 +30,11 @@ higher, or the build will fail with an "unrecognized option: @@ -30,6 +30,11 @@ higher, or the build will fail with an "unrecognized option:
--disable-benchmarks" error. The versions *1.16.0* and higher might not build on
your system; if so, install *0.14.0* with "cabal install cabal-install-0.14.0".
_Note to GHC 7.0.1 users:_ You will want to configure your Cabal environment
(including *cabal-install*) for *bytestring*, version *0.9.2.1*. We recommend
that you run "cabal install bytestring-0.9.2.1 cabal-install-0.14.0" prior to
installing Pontarius XMPP.
The first thing to do is to import the modules that we are going to use. We are
also using the OverloadedStrings LANGUAGE pragma in order to be able to type
<code>Text</code> values like strings.

40
pontarius-xmpp.cabal

@ -28,6 +28,10 @@ Extra-Source-Files: README.md @@ -28,6 +28,10 @@ Extra-Source-Files: README.md
Library
hs-source-dirs: source
Exposed: True
-- The only different between the below two blocks is that the first one caps
-- the range for the `bytestring' package.
If impl(ghc == 7.0.1)
{
Build-Depends: attoparsec >=0.10.0.3
, base >4 && <5
, base64-bytestring >=0.1.0.0
@ -60,6 +64,42 @@ Library @@ -60,6 +64,42 @@ Library
, xml-types >=0.3.1
, xml-conduit >=1.0
, xml-picklers >=0.3.3
}
else
{
Build-Depends: attoparsec >=0.10.0.3
, base >4 && <5
, base64-bytestring >=0.1.0.0
, binary >=0.4.1
, bytestring >=0.9.1.9
, conduit >=0.5
, containers >=0.5.0.0
, crypto-api >=0.9
, crypto-random-api >=0.2
, cryptohash >=0.6.1
, cryptohash-cryptoapi >=0.1
, data-default >=0.2
, dns >=0.3.0
, hslogger >=1.1.0
, iproute >=1.2.4
, lifted-base >=0.1.0.1
, mtl >=2.0.0.0
, network >=2.4.1.0
, pureMD5 >=2.1.2.1
, resourcet >=0.3.0
, random >=1.0.0.0
, split >=0.1.2.3
, stm >=2.1.2.1
, stringprep >=0.1.3
, text >=0.11.1.5
, tls >=1.1.0
, tls-extra >=0.5.0
, transformers >=0.2.2.0
, void >=0.5.5
, xml-types >=0.3.1
, xml-conduit >=1.0
, xml-picklers >=0.3.3
}
Exposed-modules: Network.Xmpp
, Network.Xmpp.IM
, Network.Xmpp.Internal

Loading…
Cancel
Save