chore(profiling): restore prof-auto and test build

Revert "chore(profiling): switch to prof-auto-top to hopefully fix build"

This reverts commit 07bde5b012.
This commit is contained in:
Gregor Kleen 2021-02-03 09:06:55 +01:00
parent 5609620f2d
commit f4f95e1494
5 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
{-# OPTIONS_GHC -fno-warn-redundant-constraints -fprof-auto #-}
module Foundation.Authorization
( evalAccess, evalAccessFor, evalAccessWith

View File

@ -1,4 +1,5 @@
{-# LANGUAGE UndecidableInstances #-} -- for `MemcachedKeyFavourites`
{-# OPTIONS_GHC -fprof-auto #-}
module Foundation.SiteLayout
( siteLayout', siteLayout

View File

@ -1,4 +1,4 @@
{-# OPTIONS_GHC -O0 -fasm #-}
{-# OPTIONS_GHC -O0 -fasm -fprof-auto #-}
module Foundation.Yesod.Middleware
( yesodMiddleware

View File

@ -1,3 +1,5 @@
{-# OPTIONS_GHC -fprof-auto #-}
module Jobs
( module Types
, module Jobs.Queue

View File

@ -28,6 +28,7 @@ fromPersistValueJSON = \case
PersistText text -> decodeBS $ Text.encodeUtf8 text
x -> Left $ fromPersistValueErrorSql (Proxy @a) x
where decodeBS = first pack . JSON.eitherDecodeStrict'
{-# SCC fromPersistValueJSON #-}
sqlTypeJSON :: SqlType
sqlTypeJSON = SqlOther "jsonb"