2022-02-25 19:08:18 +03:00
|
|
|
module Hasura.Backends.DataWrapper.IR.Column
|
2021-12-22 03:10:28 +03:00
|
|
|
( Name,
|
|
|
|
)
|
|
|
|
where
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
2022-04-28 04:51:58 +03:00
|
|
|
import Hasura.Backends.DataWrapper.IR.Name qualified as IR.N
|
2021-12-22 03:10:28 +03:00
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
-- | An alias for 'Name.Column' 'Name.Name's.
|
|
|
|
--
|
|
|
|
-- This alias is defined in its own module primarily for the convenience of
|
|
|
|
-- importing it qualified.
|
|
|
|
--
|
|
|
|
-- For example:
|
|
|
|
-- @
|
|
|
|
-- import Data.Coerce (coerce)
|
|
|
|
-- import Hasura.Experimental.IR.Column qualified as Column (Name)
|
|
|
|
--
|
2022-02-25 19:08:18 +03:00
|
|
|
-- example :: Column.Name
|
|
|
|
-- example = coerce @Text @Column.Name "column_name"
|
2021-12-22 03:10:28 +03:00
|
|
|
-- @
|
2022-04-28 04:51:58 +03:00
|
|
|
type Name = IR.N.Name 'IR.N.Column
|