toaq / zugai

A Haskell library/program for parsing and interpreting Toaq
BSD 3-Clause "New" or "Revised" License
8 stars 0 forks source link

add --output flag #1

Closed uakci closed 2 years ago

uakci commented 2 years ago

I needed to have the ability to redirect the SVG output to a command-line-provided location (because the Nix store is immutable and I can't write there if I'm cd-ed into there). I added a separate flag that works with every subcommand.

The code doesn't actually implement writing SVG files to stdout. This page mentions how one would go about writing an SVG file to memory (such that it could be printed to stdout afterwards) but I'm not even remotely at a level of Haskell understanding required to execute on it. So I'm leaving that as a hard error for now.

plz revue and fix bad haskell code (i've never programmed in haskell truth be told!!) owu <3

uakci commented 2 years ago

Fixed〜sidestepped in https://github.com/toaq/zugai/commit/c9bacd4f5063c2171b77ba971dcd90aaf024dc40, thank you :3