How to build the program:
- you have to have
ghc
andcabal
. - Clone the git repo somewhere:
git clone https://github.com/speykious/strnth
- Now go into a terminal inside the root of the git repository
- Type the command
cabal new-build
- The executable will be in
dist-newstyle/build/<your os>/ghc-<version>/strnth-<version>/x/strnth/build/strnth/strnth
, copy it wherever you want
If you just want to run the executable from the root repository, you can use Cabal's new-run subcommand: cabal new-run strnth <args>
strnth <n> <str>
<n>
: number of times to yeet the string into itself<str>
: the string to yeet into itself
Examples:
strnth 3 yeet
Will produce:
$\text{yeet}^{\text{yeet}^{\text{yeet}}}$
strnth 4 yeet yoot
Will produce:
$\text{yeet}^{\text{yeet}^{\text{yeet}^{\text{yeet}}}}$
strnth 4 "yeet yoot"
Will produce:
$\text{yeet yoot}^{\text{yeet yoot}^{\text{yeet yoot}^{\text{yeet yoot}}}}$
strnth 20 10
Will produce:
$\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}^{\text{10}}}}}}}}}}}}}}}}}}}}$
Enjoy your yeet time lmao