Skip to content

Instantly share code, notes, and snippets.

@cite-reader
Created May 13, 2016 03:20
Show Gist options
  • Save cite-reader/3f63a75c20d5b4e6be0fa25f376529fc to your computer and use it in GitHub Desktop.
Save cite-reader/3f63a75c20d5b4e6be0fa25f376529fc to your computer and use it in GitHub Desktop.
In celebration of the new Pokemon.
-- 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