File: person_client.hs

package info (click to toggle)
haskell-haxr 3000.11.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 232 kB
  • sloc: haskell: 1,539; makefile: 16
file content (13 lines) | stat: -rw-r--r-- 286 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- | Example client using a heterogeneous struct.

import Network.XmlRpc.Client
import PersonTH

server = "http://localhost/~bjorn/cgi-bin/person_server"

listPeople :: IO [Person]
listPeople = remote server "listPeople"

main = do
       people <- listPeople
       mapM_ print people