An open API service indexing awesome lists of open source software.

https://github.com/toyboot4e/abc-hs

AtCoder Beginner Contest in Haskell
https://github.com/toyboot4e/abc-hs

Last synced: about 1 year ago
JSON representation

AtCoder Beginner Contest in Haskell

Awesome Lists containing this project

README

          

= Atcoder beginner contest in Haskell
:acc: https://github.com/Tatamo/atcoder-cli[acc]
:toy-lib: https://github.com/toyboot4e/toy-lib[toy-lib]

Based on {acc}. My library can be found on {toy-lib}.

== Setting up

See link:./_acc/README.adoc[].

== How to use

=== New contest

[source,sh]
----
$ ./new abc100
$ cd abc100
$ tree
abc100
├── a
│   ├── Main.hs
│   └── test-cases
│   ├── sample-1.in
│   ├── sample-1.out
│   ├── sample-2.in
│   ├── sample-2.out
│   ├── sample-3.in
│   └── sample-3.out
├── b
│   ├── Main.hs
│   └── test-cases
│   ├── sample-1.in
│   ├── sample-1.out
│   ├── sample-2.in
│   ├── sample-2.out
│   ├── sample-3.in
│   └── sample-3.out
├── c
│   ├── Main.hs
│   └── test-cases
│   ├── sample-1.in
│   ├── sample-1.out
│   ├── sample-2.in
│   ├── sample-2.out
│   ├── sample-3.in
│   └── sample-3.out
├── contest.acc.json
├── d
│   ├── Main.hs
│   └── test-cases
│   ├── sample-1.in
│   ├── sample-1.out
│   ├── sample-2.in
│   ├── sample-2.out
│   ├── sample-3.in
│   ├── sample-3.out
│   ├── sample-4.in
│   └── sample-4.out
├── hie.yaml
├── package.yaml
└── stack.yaml

8 directories, 34 files
----

=== Test

Get into the problem directory first:

[source,sh]
----
$ cd abc100
----

Run the `test` script in the root of the repository:

[source,sh]
----
$ ../test a
----

=== Submission

[source,sh]
----
$ ../submit a
----

=== I want to use GHC 9.4.5, but only in this repository

https://direnv.net/[direnv] just works as a temporary workaround.