Skip to content

Instantly share code, notes, and snippets.

@haskellcamargo
Last active October 25, 2015 01:17
Show Gist options
  • Save haskellcamargo/6e8984fadb066d4c6068 to your computer and use it in GitHub Desktop.
Save haskellcamargo/6e8984fadb066d4c6068 to your computer and use it in GitHub Desktop.
Mortivacional.hs
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
@tkovs
Copy link

tkovs commented Aug 11, 2015

Seria mais triste se fosse em Java...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment