Disables optimizations on Hasura.Server.Init module

When compiling the graphql-engine binary with `-O2`, ghc-8.10 seems to
be stuck at the module `Server.Init` while consuming `17G` of RAM (for 5
minutes at least before I forcefully terminated the compilation). With
this pragma, ghc-8.10 now takes under `12G` to compile graphql-engine
binary.
This commit is contained in:
Vamshi Surabhi 2020-06-01 13:06:26 +05:30 committed by Vamshi Surabhi
parent 16d01bc908
commit 2d2def8ecb

View File

@ -1,5 +1,6 @@
-- | Types and functions related to the server initialisation
{-# LANGUAGE CPP #-}
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -O0 #-}
module Hasura.Server.Init
( DbUid(..)
, getDbId