2022-05-02 08:03:12 +03:00
|
|
|
module Hasura.Backends.DataConnector.IR.Function (Name) where
|
2021-12-22 03:10:28 +03:00
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
2022-05-02 08:03:12 +03:00
|
|
|
import Hasura.Backends.DataConnector.IR.Name qualified as IR.N
|
2021-12-22 03:10:28 +03:00
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
-- | An alias for 'Name.Function' '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.Function qualified as Function (Name)
|
|
|
|
--
|
|
|
|
-- example :: Function.Name
|
|
|
|
-- example = coerce @Text @Function.Name "function_name"
|
|
|
|
-- @
|
2022-04-28 04:51:58 +03:00
|
|
|
type Name = IR.N.Name 'IR.N.Function
|