Skip to content

Instantly share code, notes, and snippets.

@jonsterling
Created June 29, 2011 17:39
Show Gist options
  • Select an option

  • Save jonsterling/1054391 to your computer and use it in GitHub Desktop.

Select an option

Save jonsterling/1054391 to your computer and use it in GitHub Desktop.
module Test where
import Data.Char
testValue :: IO (Maybe String)
testValue = Just `fmap` getLine
pureExample :: String -> String
pureExample (c:cs) = toUpper c : pureExample cs
pureExample [] = []
test = pureExample `comp` testValue
where comp = fmap . fmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment