Compiling very large constants with GHC

前端 未结 2 1550
暖寄归人
暖寄归人 2021-02-04 01:06

Today I asked GHC to compile an 8MB Haskell source file. GHC thought about it for about 6 minutes, swallowing almost 2GB of RAM, and then finally gave up with an out-of-memory e

2条回答
  •  再見小時候
    2021-02-04 01:32

    There's a simple solution — your literal should have type ByteString. See https://github.com/litherum/publicsuffixlist/pull/1 for details.

提交回复
热议问题