Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stderr-stdout #9

Merged
merged 7 commits into from
Jul 9, 2021
Merged

stderr-stdout #9

merged 7 commits into from
Jul 9, 2021

Conversation

ffrixslee
Copy link
Contributor

@ffrixslee ffrixslee commented Jun 21, 2021

tweaked to produce stderr and stdout separately

Running in the terminal:
stack build
stack exec rule34-svg

Should produce the respective files.

Please let me know if there's anything I should change :)

@ffrixslee
Copy link
Contributor Author

Related to issue #8

Copy link
Contributor

@mengwong mengwong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@mengwong mengwong merged commit fe70bbc into svg-builder Jul 9, 2021
@mengwong mengwong deleted the stderr-stdout branch July 9, 2021 08:46
mengwong added a commit that referenced this pull request Jul 19, 2021
Squashed commit of the following:

commit 990e8f0545869367124e0e8622841c8f456a8110
Author: Meng Weng Wong <[email protected]>
Date:   Mon Jul 19 17:39:30 2021 +0800

    rm build binaries from diag-svg

commit 1cd367cbf9344add671ee3ad599fef9eac5e161f
Author: Meng Weng Wong <[email protected]>
Date:   Mon Jul 19 17:36:27 2021 +0800

    remove the source distribution packaging

commit 83090ec815e8607d4e4d698805f56b52880c3ddf
Merge: 4404bf1 e3281b2
Author: Meng Weng Wong <[email protected]>
Date:   Mon Jul 19 17:32:50 2021 +0800

    Merge branch 'default' into svg-builder

commit 4404bf1
Author: Meng Weng Wong <[email protected]>
Date:   Mon Jul 19 14:07:47 2021 +0800

    proposed refactoring of Rule34 into myrule and anyall

commit 4181b21
Author: Meng Weng Wong <[email protected]>
Date:   Mon Jul 19 13:38:05 2021 +0800

    oops, try this

        ┌─[mengwong@rosegold] - [~/src/smucclaw/sandbox/jacobtan/Rule34-logic-gates/rule34-haskell] - [2021-07-19 01:37:43]
        └─[0] <git:(svg-builder 1495440✱✈) > stack run rule34-png -- --src read/myrule.txt --out outputfile

commit 1495440
Author: Meng Weng Wong <[email protected]>
Date:   Mon Jul 19 13:34:55 2021 +0800

    able to read the command line options for input and output filenames

commit 09c99e4
Author: Wong Meng Weng <[email protected]>
Date:   Wed Jul 14 15:12:31 2021 +0800

    working Read

        stak ghci src/Rule34.hs
        readFile "read/myrule.txt" >>= print . (\x -> read x :: MyRule)

commit f14e3e1
Author: Wong Meng Weng <[email protected]>
Date:   Wed Jul 14 14:30:35 2021 +0800

    broken Read attempt

commit ec048e1
Author: johsi-k <[email protected]>
Date:   Tue Jul 13 16:29:06 2021 +0800

    add terminator

commit 6bb58bf
Author: johsi-k <[email protected]>
Date:   Sat Jul 10 14:09:31 2021 +0800

    fix spaces between clabel and rest of condition

commit 6681a93
Author: johsi-k <[email protected]>
Date:   Fri Jul 9 22:56:11 2021 +0800

    use qualified import for last

commit 5192a14
Author: johsi-k <[email protected]>
Date:   Fri Jul 9 22:42:00 2021 +0800

    add conjunctions

    to generate svgs, run `stack exec rule34-svg > rule34_1.svg 2> rule34_1_err.svg`

commit fe70bbc
Merge: f2677f3 ab704ae
Author: Meng Weng Wong <[email protected]>
Date:   Fri Jul 9 16:46:21 2021 +0800

    Merge pull request #9 from smucclaw/stderr-stdout

    stderr-stdout

commit ab704ae
Author: Liyana <[email protected]>
Date:   Wed Jun 23 10:33:13 2021 +0800

    changed to dot notation

commit 26f9319
Author: Liyana <[email protected]>
Date:   Tue Jun 22 21:48:39 2021 +0800

    cleaned stack.yaml unused packages and changed to strict import of Data.Text.Lazy

commit 4ad18be
Author: Liyana <[email protected]>
Date:   Tue Jun 22 15:16:29 2021 +0800

    made changes to produce correct stderr and stdout

commit 18e1142
Author: Liyana <[email protected]>
Date:   Mon Jun 21 20:55:53 2021 +0800

    resolved merge conflict

commit e595608
Merge: 54fc7c3 18f6cdd
Author: Liyana <[email protected]>
Date:   Mon Jun 21 20:54:56 2021 +0800

    Merge branch 'stderr-stdout' of https://github.com/smucclaw/sandbox into stderr-stdout

commit 54fc7c3
Author: Liyana <[email protected]>
Date:   Mon Jun 21 20:52:44 2021 +0800

    tweaked to capture stderr and stdout in separate files

commit 18f6cdd
Author: Liyana <[email protected]>
Date:   Mon Jun 21 19:55:09 2021 +0800

    tweaked to capture stderr and stdout in separate files

commit f2677f3
Author: Wong Meng Weng <[email protected]>
Date:   Tue Jun 15 10:59:02 2021 +0800

    allow Compl experimentally. Restructure stack build to produce two executables.

        ┌─[mengwong@unifi] - [~/src/smucclaw/sandbox/jacobtan/Rule34-logic-gates/rule34-haskell] - [2021-06-15 10:56:42]
        └─[0] <git:(svg-builder 3bcbd6b✗✱✈) > stack run rule34-org
        #+TITLE: Rule 34 as Org
        #+OPTIONS: num:nil toc:nil

        * 34.1

        a legal practitioner must not accept any executive appointment associated with any of the following:-
        ** 34.1.a
        any business which:-
        - detracts from;
        - is incompatible with; or
        - derogates from
        the dignity of the legal profession;
        ** 34.1.b
        any business which materially interferes with:-
        - the legal practitioner's primary occupation of practising as a lawyer;
        - the legal practitioner's availability to those who may seek the legal practitioner's services as a lawyer; or
        - the representation of the legal practitioner's clients;
        ** 34.1.c
        any business which is likely to unfairly attract business in the practice of law;
        ** 34.1.d
        any business which involves:-
        - the sharing of the legal practitioner's fees with or
        - the payment of a commission to
        any unauthorised person for legal work performed by the legal practitioner;
        ** 34.1.e
        any business set out in the First Schedule;
        ** 34.1.f
        any business which is prohibited by:-
        *** 34.1.f.i
        the Act;
        *** 34.1.f.ii
        - these Rules or
        - any other subsidiary legislation made under the Act;
        *** 34.1.f.iii
        - practice directions;
        - guidance notes; and
        - rulings
        issued under section 71(6) of the Act; or
        *** 34.1.f.iv
        - practice directions,
        - guidance notes, and
        - rulings
        (relating to:-
        - professional practice,
        - etiquette,
        - conduct, and
        - discipline
        )
        issued by:-
        - the Council or
        - the Society.
        ┌─[mengwong@unifi] - [~/src/smucclaw/sandbox/jacobtan/Rule34-logic-gates/rule34-haskell] - [2021-06-15 10:56:48]
        └─[0] <git:(svg-builder 3bcbd6b✗✱✈) > stack run rule34-svg
        ┌─[mengwong@unifi] - [~/src/smucclaw/sandbox/jacobtan/Rule34-logic-gates/rule34-haskell] - [2021-06-15 10:56:50]
        └─[0] <git:(svg-builder 3bcbd6b✗✱✈) > ls *.svg
        rule34_1.svg     rule34_1_err.svg
        ┌─[mengwong@unifi] - [~/src/smucclaw/sandbox/jacobtan/Rule34-logic-gates/rule34-haskell] - [2021-06-15 10:57:37]
        └─[0] <git:(svg-builder 3bcbd6b✗✱✈) > open -a 'Google Chrome' rule34_1.svg

commit 3bcbd6b
Author: Wong Meng Weng <[email protected]>
Date:   Mon Jun 14 12:46:54 2021 +0800

    show how conjunctions are added

commit c9fc436
Author: johsi-k <[email protected]>
Date:   Wed Jun 2 22:22:11 2021 +0800

    improve rendered error messages

commit 95fa164
Author: johsi-k <[email protected]>
Date:   Wed Jun 2 02:27:58 2021 +0800

    r34_1 to AnyAll with svg-builder

commit 7217298
Author: Liyana <[email protected]>
Date:   Tue Jun 1 13:33:27 2021 +0800

    dia

commit 685fea1
Author: Wong Meng Weng <[email protected]>
Date:   Thu May 27 12:58:27 2021 +0800

    demo conversion of Rule34 to AnyAll

commit 2868180
Author: Wong Meng Weng <[email protected]>
Date:   Thu May 27 12:56:04 2021 +0800

    throw caution to the winds, allow-newer: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants