Calculate digits of Pi in hexadecimal.
Josh Bicking 512e4a2339 Separate into files, consolidate calling to avoid passing. | 7 vuotta sitten | |
---|---|---|
app | 7 vuotta sitten | |
src | 7 vuotta sitten | |
test | 7 vuotta sitten | |
.gitignore | 7 vuotta sitten | |
LICENSE | 7 vuotta sitten | |
README.md | 7 vuotta sitten | |
Setup.hs | 7 vuotta sitten | |
pi-digits.cabal | 7 vuotta sitten | |
stack.yaml | 7 vuotta sitten |
Calculate requested digits of Pi.
Built using The BBP Algorithm for Pi.
Install stack
, then run stack build
from inside the repository.
Run stack exec pi-digits-exe
, or execute the binary found in ./.stack-work/install/
.
optparse-applicative
for more formal/extensive arg parsing.prompt
with a monad.optparse-applicative
.delim
and printFun
.parseIndex
handles all parsing and calling logic now.