Created
May 13, 2016 03:20
-
-
Save cite-reader/3f63a75c20d5b4e6be0fa25f376529fc to your computer and use it in GitHub Desktop.
In celebration of the new Pokemon.
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
-- https://twitter.com/rowletbot/status/730385243958554624 | |
module Main (main) where | |
import Control.Concurrent (threadDelay) | |
import Control.Monad (forever) | |
-- | __spins furiously__ | |
main :: IO () | |
main = forever $ do | |
rowlet "( ovo)" | |
rowlet "( ov)" | |
rowlet "( o)" | |
rowlet "( )" | |
rowlet "( )" | |
rowlet "(o )" | |
rowlet "(vo )" | |
rowlet "(ovo )" | |
-- | Prints a string, pauses for a while, then clears the line. | |
rowlet :: String -> IO () | |
rowlet s = do | |
putStrLn s | |
threadDelay 80000 | |
putStr "\ESC[1A\ESC[K" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment