graphql-engine/server/src-lib/Hasura/RQL/IR/BoolExp/Lenses.hs
2023-04-28 15:41:56 +00:00

23 lines
514 B
Haskell

{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- `makeWrapped` creates orphans
module Hasura.RQL.IR.BoolExp.Lenses
( geWhere,
geTable,
_BoolExists,
)
where
import Control.Lens.TH (makeLenses, makePrisms, makeWrapped)
import Hasura.RQL.IR.BoolExp (BoolExp (..), GBoolExp (..), GExists (..))
makeLenses ''GExists
-- this is why we need Orphan instances enabled, as this creates orphan
-- `Control.Lens.Wrapped.Wrapped` instances
makeWrapped ''BoolExp
makePrisms ''GBoolExp