Karmic Desktop Contest Script

I wrote a quick-and-dirty Haskell script to download photos from the Karmic Desktop Contest, setting a new photo as your desktop background every ten minutes. Make sure you cabal install flickr first.

2 comments

  1. Tucker wrote,

    Hello,

    I’m new to haskell, but wanted to give your script a try.

    Mangaged it to install ghc and the platform.

    $>ghc –version
    The Glorious Glasgow Haskell Compilation System, version 6.10.4
    $>cabal –version
    cabal-install version 0.6.2
    using version 1.6.0.3 of the Cabal library

    and installed flickr

    But now
    ghc -o setKarmicWallpaper setKarmicWallpaper.hs
    gives me

    wallpaper.hs:29:9: Not in scope: data constructor `Photo’

    wallpaper.hs:30:2: Not in scope: `photoId’

    wallpaper.hs:31:2: Not in scope: `photoServer’

    wallpaper.hs:32:2: Not in scope: `photoFarm’

    wallpaper.hs:33:2: Not in scope: `photoSecret’

    What am I doing wrong?

    Thanks,
    Tucker

  2. David wrote,

    Tucker, I forgot an import statement (import Flickr.Types). I put it back in, please try again.