Created
June 29, 2011 17:39
-
-
Save jonsterling/1054391 to your computer and use it in GitHub Desktop.
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
| 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