File: Main.hs

package info (click to toggle)
haskell-feed 0.3.8-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 408 kB
  • sloc: haskell: 3,423; xml: 1,096; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Main where

import Text.XML.Light
import Text.Feed.Import
import Text.Feed.Export

import System.Environment

main :: IO ()
main = do
  (x:_) <- getArgs
  feed  <- parseFeedFromFile x
  putStrLn (ppTopElement $ xmlFeed feed)