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

stack resolver のバージョンを lts-16.25 にします #200

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

matsubara0507
Copy link
Member

ずいぶん古いバージョンを利用していたので、現状の最新 LTS にしちゃおうかなと思います。
主な変更箇所は

特に最初のやつが影響でかくて。
というのも、TextLang という型を定義して "あいueお"[Japanese "あい", English "ue", Japanese "お"] に変換して何かをしている。
この時の文字列が String なので困った。
Text に対してリスト処理っぽいことをする方法がぴんとこなかったので、とりあえず Text から String に変換して茶を濁しています。
何か他に良い方法が教えてください。

@matsubara0507 matsubara0507 self-assigned this Dec 12, 2020
@igrep
Copy link
Member

igrep commented Dec 12, 2020

この時の文字列が String なので困った。
Text に対してリスト処理っぽいことをする方法がぴんとこなかったので、とりあえず Text から String に変換して茶を濁しています。

Text用のNonEmptyを作ってそれに対してmono-traversableのインスタンス(MonoFunctorとか)を定義すれば良さそう だけど自分もちょっとそこまでやる余裕はないっすね...
と、思ったけどよく考えたら omap は使えないので mono-traversable はダメか...

@matsubara0507
Copy link
Member Author

ぐぬぬぬぬ

pandoc                           > [120 of 166] Compiling Text.Pandoc.Writers.Markdown

--  While building package pandoc-2.9.2.1 (scroll up to its section to see the error) using:
      /root/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.0.1.0 build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure (-9) (THIS MAY INDICATE OUT OF MEMORY)

@igrep
Copy link
Member

igrep commented Dec 12, 2020

ともあれ修正内容自体はいいと思います!ありがとう!

(☝◞‸◟)☝ヒジョウニ ザンネンナ コトデスガ……

(☝◞‸◟)☝コノ プルリクエストハ……

(☝ ՞ਊ ՞)☝オーケーデエエエエエエエエエス!!!!!!!

やったー└( ^ω^ )」ビルド通ったらマージできるぞー♪
ギミギミ└( ^ω^ )」シェイク♪
ギミギミ└( ^ω^ )」シェイク♪

@matsubara0507
Copy link
Member Author

pandoc にあった Issue を見てみると v2.8 移行はどんなオプションをつけても4GBでは厳しいらしい(CircleCI の無料プランで出せる最大メモリサイズは4GB)。
作者は7GBで(30分かけて)動作してるらしく、7GBの GItHub Actions であれば確かに動作するかもしれない

一応、pandoc 側の対策として、より小さなモジュールを目指すっぽいが、、、、いつ対応されるかはなんとも

igrep added a commit that referenced this pull request Sep 11, 2022
Could solve the problem found in #200
igrep added a commit that referenced this pull request Sep 18, 2022
Could solve the problem found in #200
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.

None yet

2 participants