From 6668d4d12e9009e68f12ebe304e6e9652c9ce830 Mon Sep 17 00:00:00 2001 From: Jon Kristensen Date: Wed, 20 Mar 2013 13:56:07 +0100 Subject: [PATCH] Add minor tutorial change --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bfdbafd..90516b5 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,11 @@ page](http://hackage.haskell.org/package/pontarius-xmpp/). _Note:_ Pontarius XMPP is still in its Alpha phase. Pontarius XMPP is not yet feature-complete, it may contain bugs, and its API may change between versions. -The first thing to do is to import the modules that we are going to use. +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 +Text values like strings. + + {-# LANGUAGE OverloadedStrings #-} import Network.Xmpp @@ -35,9 +39,6 @@ When this is done, a Session object can be acquired by calling def (Just ([scramSha1 "username" Nothing "password"], Nothing)) -_Tip:_ Note that the first parameter actually is a Text value. Import -Data.Text and use the OverloadedStrings LANGUAGE pragma. - The three parameters above are the XMPP server realm, the session configuration settings (set to the default settings), and a SASL handler (for authentication). session will perform the necessary DNS queries to find the address