% MITSFS iPhone schedule pretty-printer
% Brian Sniffen <bts@alum.mit.edu>
% Copyright (c) 2008

The MIT Science Fiction Society publishes its schedule as a plain text
file.  This file is awkward to read on an iPhone: the embedded Safari
web browser wraps the text naively.  This tool reformats the schedule
into proper HTML tables, together with the right hints to help the
iPhone show it nicely.

## How to get a copy

The easiest way is to grab the latest source:

    darcs get http://evenmere.org/~bts/Software/Sfsparser/

You might also look to
<http://evenmere.org/~bts/Software/Sfsparser/pretty-source/>, which
shows a recent version.

## Installation

This is a Haskell Cabal package.  You can build it on any system with
a recent Haskell setup by running:

    chmod +x Setup.lhs
    ./Setup.lhs configure
    ./Setup.lhs build
    ./Setup.lhs install # optional

I wrote it using GHC 6.8.3, but it should work on any GHC 6.6 or
later, as well as other Haskell compilers.

## Usage

Several versions are provided:

1) Stand-alone: Run sfsparser.  It will fetch the current schedule,
   mark it up as HTML, and print the result to stdout.  Other URLs or
   filenames may be given on the command line.

   Run this version with --help for more information.

2) CGI: Put sfsparser.cgi somewhere in your CGI-BIN path.  It will
   behave as sfsparser standalone above, but emits a Content-type
   header and otherwise behaves nicely for CGI use.  It accepts a
   "uri" parameter which functions as the standard argument of the
   standalone version.

