Skip to main content
added 35 characters in body
Source Link
Angs
  • 5k
  • 2
  • 16
  • 36

Haskell (GHC), 103103 91 bytes

import GHC.Conc
main=putStr"\rLoading... ">>mapMmapM(\c->putStr('\b':[c])>>threadDelay 250000)"|.putStr)$("\rLoading... "++).pure<$>cycle"|/-\\">>main\\"

Thanks @nimi for saving 12 bytes!

Haskell (GHC), 103 bytes

import GHC.Conc
main=putStr"\rLoading... ">>mapM(\c->putStr('\b':[c])>>threadDelay 250000)"|/-\\">>main

Haskell (GHC), 103 91 bytes

import GHC.Conc
mapM((>>threadDelay 250000).putStr)$("\rLoading... "++).pure<$>cycle"|/-\\"

Thanks @nimi for saving 12 bytes!

Source Link
Angs
  • 5k
  • 2
  • 16
  • 36

Haskell (GHC), 103 bytes

import GHC.Conc
main=putStr"\rLoading... ">>mapM(\c->putStr('\b':[c])>>threadDelay 250000)"|/-\\">>main