Created
October 2, 2018 10:13
-
-
Save Freakwill/e6ae5fbf2f1b3807d248f85a68a88108 to your computer and use it in GitHub Desktop.
FuckHaskell created by Freakwill - https://repl.it/@Freakwill/FuckHaskell
This file contains 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 Base | |
(sepline) | |
where | |
_sepline :: String -> String | |
_sepline x = let l = replicate 8 '-' in l ++ x ++ l | |
sepline :: String -> IO () | |
sepline = putStrLn . _sepline |
This file contains 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
-- Monad is a monster for me. | |
import Base | |
shit :: String | |
shit = do | |
x <- "fuck" | |
return x ++ "wtf" | |
main :: IO () | |
main = do | |
sepline "Monad IO" | |
putStrLn "input whatever you want to say to me." | |
s <- getLine | |
putStrLn (s ++ "####shit=" ++ shit) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment