AtCoder:Haskellの実行環境の再現
最新はスプレッドシートを参照
stack.yaml
GHC 8.8.3
code:stack.yaml
resolver: lts-16.11
packages:
- .
extra-deps:
- repa-3.4.1.4
package.yaml
code:package.yaml
dependencies:
- base >= 4.7 && < 5
- QuickCheck
- array
- attoparsec
- bytestring
- containers
- deepseq
- extra
- fgl
- hashable
- heaps
- integer-logarithms
- lens
- massiv
- mono-traversable
- mtl
- mutable-containers
- mwc-random
- parallel
- parsec
- primitive
- psqueues
- random
- reflection
- repa
- template-haskell
- text
- tf-random
- transformers
- unboxing-vector
- unordered-containers
- utility-ht
- vector
- vector-algorithms
- vector-th-unbox
実行コマンド
$ ghc -o a.out -O2 {dirname}/{filename}
dragoon8192.iconstackなら
$ stack runghc
2022/4/25
AtCoderの環境で$ ghc-pkg listしてみた
code:terminal
$ ghc-pkg list
/home/contestant/.ghcup/ghc/8.8.3/lib/ghc-8.8.3/package.conf.d
Cabal-3.0.1.0
array-0.5.4.0
base-4.13.0.0
binary-0.8.7.0
bytestring-0.10.10.0
containers-0.6.2.1
deepseq-1.4.4.0
directory-1.3.6.0
filepath-1.4.2.1
(ghc-8.8.3)
ghc-boot-8.8.3
ghc-boot-th-8.8.3
ghc-compact-0.1.0.0
ghc-heap-8.8.3
ghc-prim-0.5.3
ghci-8.8.3
haskeline-0.7.5.0
hpc-0.6.0.3
integer-gmp-1.0.2.0
libiserv-8.8.3
mtl-2.2.2
parsec-3.1.14.0
pretty-1.1.3.6
process-1.6.8.0
rts-1.0
stm-2.5.0.0
template-haskell-2.15.0.0
terminfo-0.4.1.4
text-1.2.4.0
time-1.9.3
transformers-0.5.6.2
unix-2.7.2.2
xhtml-3000.2.2.1