-
-
Save tkovs/932c83f518b5187035b2 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 | |
"amigos" -> "Você não tem" | |
"crush" -> "Ela não tem quer" | |
"dinheiro" -> "Você não tem" | |
"emprego" -> "Só com Java" | |
"esperanca" -> "Já morreu" | |
"fe" -> "Desista" | |
otherwise -> "Foda-se" | |
main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment