packages feed

flickr-0.3.1: flickr.cabal

name: flickr
version: 0.3.1
Synopsis: Haskell binding to the Flickr API
Description:
   The flickr API binding lets you access flickr.com's
   resources and methods from Haskell.

   Implements the full API, as specified by <http://flickr.com/services/api/>
category      : Web
license       :  BSD3
license-file  : LICENSE
author        : Sigbjorn Finne <sof@forkIO.com>
maintainer    : sof@forkIO.com
cabal-version :  >= 1.2
build-type    : Simple
extra-source-files: README 
                    examples/Uploader.hs 
                    examples/Gallery.hs
                    examples/SearchPhotos.hs
                    examples/ShowPublicPhotos.hs
                    examples/ShowTags.hs

flag old-base
  description: Old, monolithic base
  default: False

library
 Exposed-modules: Flickr.API,
                  Flickr.Monad,
                  Flickr.Types,
                  Flickr.Types.Import,
                  Flickr.Activity,
                  Flickr.Auth,
                  Flickr.Blogs,
                  Flickr.Contacts,
                  Flickr.Favorites,
                  Flickr.Groups,
                  Flickr.Groups.Pools,
                  Flickr.Interestingness,
                  Flickr.MachineTags,
                  Flickr.Prefs,
                  Flickr.People,
                  Flickr.Photos,
                  Flickr.Photos.Comments,
                  Flickr.Photos.Geo,
                  Flickr.Photos.Upload,
                  Flickr.Photos.Transform,
                  Flickr.Photos.Notes,
                  Flickr.Photos.Licenses,
                  Flickr.Photosets,
                  Flickr.Photosets.Comments,
                  Flickr.Places,
                  Flickr.Tags,
                  Flickr.Test,
                  Flickr.URLs,
                  Flickr.Utils,
                  Util.Fetch,
                  Util.Keys,
                  Util.MIME,
                  Util.Post,
                  Util.Authenticate,
                  Util.MD5,
                  Codec.Percent,
                  Codec.URLEncoder

-- Extra-libraries: curl, xml, HTTP, network
 Ghc-Options:     -Wall

 build-depends: base, HTTP, network, xml, mime >= 0.3, random, utf8-string, filepath
 if flag(old-base)
   Build-Depends: base < 3
 else
   Build-Depends: base >= 3

executable showPublic {
  main-is:              examples/ShowPublicPhotos.hs
  ghc-options:          -Wall
}

executable searchPics {
  main-is:              examples/SearchPhotos.hs
  ghc-options:          -Wall
}

executable gallery {
  main-is:              examples/Gallery.hs
  build-depends:        xhtml
  ghc-options:          -Wall
}

executable uploader {
  main-is:              examples/Uploader.hs
  ghc-options:          -Wall
}

executable mtags {
  main-is:              examples/ShowTags.hs
  ghc-options:          -Wall
}