Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type FieldLabelEnv = DFastStringEnv FieldLabel
- data FieldLabel = FieldLabel {}
- fieldSelectorOccName :: FieldLabelString -> OccName -> DuplicateRecordFields -> FieldSelectors -> OccName
- fieldLabelPrintableName :: FieldLabel -> Name
- data DuplicateRecordFields
- data FieldSelectors
- flIsOverloaded :: FieldLabel -> Bool
Documentation
type FieldLabelEnv = DFastStringEnv FieldLabel Source #
A map from labels to all the auxiliary information
data FieldLabel Source #
Fields in an algebraic record type; see Note [FieldLabel].
FieldLabel | |
|
Instances
Data FieldLabel Source # | |
Defined in GHC.Types.FieldLabel gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FieldLabel -> c FieldLabel Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FieldLabel Source # toConstr :: FieldLabel -> Constr Source # dataTypeOf :: FieldLabel -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FieldLabel) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FieldLabel) Source # gmapT :: (forall b. Data b => b -> b) -> FieldLabel -> FieldLabel Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FieldLabel -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FieldLabel -> r Source # gmapQ :: (forall d. Data d => d -> u) -> FieldLabel -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> FieldLabel -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> FieldLabel -> m FieldLabel Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FieldLabel -> m FieldLabel Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FieldLabel -> m FieldLabel Source # | |
NFData FieldLabel Source # | |
Defined in GHC.Types.FieldLabel rnf :: FieldLabel -> () Source # | |
HasOccName FieldLabel Source # | |
Defined in GHC.Types.FieldLabel occName :: FieldLabel -> OccName Source # | |
Binary Name => Binary FieldLabel Source # | We need the |
Defined in GHC.Types.FieldLabel put_ :: BinHandle -> FieldLabel -> IO () Source # put :: BinHandle -> FieldLabel -> IO (Bin FieldLabel) Source # | |
Outputable FieldLabel Source # | |
Defined in GHC.Types.FieldLabel ppr :: FieldLabel -> SDoc Source # | |
Eq FieldLabel Source # | |
Defined in GHC.Types.FieldLabel (==) :: FieldLabel -> FieldLabel -> Bool # (/=) :: FieldLabel -> FieldLabel -> Bool # |
fieldSelectorOccName :: FieldLabelString -> OccName -> DuplicateRecordFields -> FieldSelectors -> OccName Source #
Record selector OccNames are built from the underlying field name and the name of the first data constructor of the type, to support duplicate record field names. See Note [Why selector names include data constructors].
fieldLabelPrintableName :: FieldLabel -> Name Source #
Undo the name mangling described in Note [FieldLabel] to produce a Name that has the user-visible OccName (but the selector's unique). This should be used only when generating output, when we want to show the label, but may need to qualify it with a module prefix.
data DuplicateRecordFields Source #
Flag to indicate whether the DuplicateRecordFields extension is enabled.
DuplicateRecordFields | Fields may be duplicated in a single module |
NoDuplicateRecordFields | Fields must be unique within a module (the default) |
Instances
data FieldSelectors Source #
Flag to indicate whether the FieldSelectors extension is enabled.
FieldSelectors | Selector functions are available (the default) |
NoFieldSelectors | Selector functions are not available |
Instances
flIsOverloaded :: FieldLabel -> Bool Source #