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

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

Atcoder begginers selection in Haskell
https://github.com/toyboot4e/abs-hs

Last synced: over 1 year ago
JSON representation

Atcoder begginers selection in Haskell

Awesome Lists containing this project

README

          

= (WIP) {abs} in Haskell
:abs: https://atcoder.jp/contests/abs[AtCoder Beginners Selection]
:ghcup: https://www.haskell.org/ghcup/[ghcup]

\..by a beginner. I'm pretty sure the code is inefficient.

== Installation

Use {ghcup} to get `ghc` + `stack` + `hls`!

== File structure

```sh
.
├── Setup.hs
├── abs.cabal # Automatically generated on `stack build`
├── app # Answer scripts
│   ├── P01.hs # Answer script for the first problem
│   ├── P01-input # Input for `P01.hs`
│   └── ..
├── package.yaml # Declares executable files
├── stack.yaml # Declares external dependencies
├── stack.yaml.lock # Specifies package versions in use
└── x
```

== Running

Run `cat app/P01-input | (stack build && stack exec P01-exe)` with the helper script:

[source,haskell]
----
$ ./x P01
----