Skip to content

Instantly share code, notes, and snippets.

View adinapoli's full-sized avatar
🐘

Alfredo Di Napoli adinapoli

🐘
View GitHub Profile
-- Sources:
-- http://www.haskellforall.com/2012/09/the-functor-design-pattern.html
-- http://www.haskell.org/haskellwiki/Functor
-- http://learnyouahaskell.com/functors-applicative-functors-and-monoids
-- Hide pre-existing Maybe and map function from Prelude.
import Prelude hiding (Maybe (..), map)
-- Import the Monadic composition operator.
{-# OPTIONS -Wall #-}
module Main where
import Control.Concurrent (threadDelay)
import System.Environment (getArgs)
import System.INotify
main :: IO ()
main = do
# Codification of discussion at http://code.google.com/p/xmonad/issues/detail?id=177
# Probably better to run each of these lines one by one instead of as a shell
# script, since there's a high probability of `cabal install` failing (usually
# fixed by installing the relevant libfoo-dev package)
# One person said these steps did not work.
# My Java version is:
# java version "1.6.0_34"
# Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
# Java HotSpot(TM) Server VM (build 20.9-b04, mixed mode)