This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# OPTIONS -Wall #-} | |
module Main where | |
import Control.Concurrent (threadDelay) | |
import System.Environment (getArgs) | |
import System.INotify | |
main :: IO () | |
main = do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |