Last active
October 25, 2015 01:17
-
-
Save haskellcamargo/6e8984fadb066d4c6068 to your computer and use it in GitHub Desktop.
Mortivacional.hs
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 Mortivacional where | |
import System.Console.ANSI | |
drawLine :: IO () | |
drawLine = putStrLn $ replicate 23 '-' | |
turnRed :: IO () | |
turnRed = setSGR [ SetConsoleIntensity BoldIntensity | |
, SetColor Foreground Vivid Red | |
] | |
turnGreen :: IO () | |
turnGreen = setSGR [ SetConsoleIntensity BoldIntensity | |
, SetColor Foreground Dull Green | |
] | |
turnCyan :: IO () | |
turnCyan = setSGR [ SetConsoleIntensity BoldIntensity | |
, SetColor Foreground Vivid Cyan | |
] | |
main :: IO () | |
main = | |
turnGreen | |
>> drawLine | |
>> turnCyan | |
>> putStrLn "Conte-me suas angústias" | |
>> turnGreen | |
>> drawLine | |
>> turnCyan | |
>> getLine | |
>>= \cry -> do | |
turnRed | |
putStrLn $ "> " ++ case cry of | |
"dinheiro" -> "Você não tem" | |
"amigos" -> "Você não tem" | |
"crush" -> "Ela não te* quer, fofa" | |
"fe" -> "Desista" | |
"esperanca" -> "Já morreu" | |
otherwise -> "Foda-se" | |
main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seria mais triste se fosse em Java...