Browse Source

Rename main module and add README/LICENSE update for EchoClient

master
Jon Kristensen 13 years ago
parent
commit
1d61e4a92c
  1. 2
      examples/echoclient/LICENSE.md
  2. 11
      examples/echoclient/Main.hs
  3. 6
      examples/echoclient/README.md
  4. 2
      examples/echoclient/Setup.hs
  5. 7
      examples/echoclient/echoclient.cabal

2
examples/echoclient/LICENSE.md

@ -0,0 +1,2 @@
The `Main.hs', `Setup.hs', and `echoclient.cabal' files in this directory are in
the public domain.

11
examples/echoclient/EchoClient.hs → examples/echoclient/Main.hs

@ -1,16 +1,11 @@
{- {-
This directory defines a project that illustrates how to connect, authenticate,
Copyright © 2010-2012 Jon Kristensen, Philipp Balzarek set a simple presence, receive message stanzas, and echo them back to whoever is
sending them, using Pontarius XMPP. This file is in the public domain.
This file (EchoClient.hs) illustrates how to connect, authenticate, set a simple
presence, receive message stanzas, and echo them back to whoever is sending
them, using Pontarius. The contents of this file may be used freely, as if it is
in the public domain.
-} -}
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedStrings #-}
module Main where module Main where

6
examples/echoclient/README.md

@ -0,0 +1,6 @@
This directory defines a project that illustrates how to connect, authenticate,
set a simple presence, receive message stanzas, and echo them back to whoever is
sending them, using Pontarius XMPP.
The `Main.hs', `Setup.hs', and `echoclient.cabal' files in this directory may be
used freely, as they are in the public domain.

2
examples/echoclient/Setup.hs

@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain

7
examples/echoclient/echoclient.cabal

@ -1,3 +1,8 @@
-- This directory defines a project that illustrates how to connect,
-- authenticate, set a simple presence, receive message stanzas, and echo them
-- back to whoever is sending them, using Pontarius XMPP. This file is in the
-- public domain.
Name: echoclient Name: echoclient
Version: 0.0.0.0 Version: 0.0.0.0
Cabal-Version: >= 1.6 Cabal-Version: >= 1.6
@ -9,4 +14,4 @@ Synopsis: Echo client test program for Pontarius XMPP
Executable echoclient Executable echoclient
Build-Depends: base, data-default, hslogger, mtl, pontarius-xmpp, text, tls Build-Depends: base, data-default, hslogger, mtl, pontarius-xmpp, text, tls
Main-Is: EchoClient.hs Main-Is: Main.hs
Loading…
Cancel
Save