Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type FieldLabelString = FastString
- 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 FieldLabelString = FastString Source #
Field labels are just represented as strings; they are not necessarily unique (even within a module)
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 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FieldLabel # toConstr :: FieldLabel -> Constr # dataTypeOf :: FieldLabel -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FieldLabel) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FieldLabel) # gmapT :: (forall b. Data b => b -> b) -> FieldLabel -> FieldLabel # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FieldLabel -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FieldLabel -> r # gmapQ :: (forall d. Data d => d -> u) -> FieldLabel -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> FieldLabel -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> FieldLabel -> m FieldLabel # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FieldLabel -> m FieldLabel # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FieldLabel -> m FieldLabel # | |
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 #