stacked-0.1.0: A modern indexed monad stack
Safe HaskellNone
LanguageGHC2021

Control.Monad.Indexed.Cont2.Lead.Labels

Description

Import and use with OverloadedLabels to use labels as name for (generic) constructor leads. That is #MkT instead of lead @"MkT".

Because of the very generic type of the IsLabel instance, importing this module isn't unlikely to interfere with other uses of OverloadedLabels. This is why it's defined in a separate module from Control.Monad.Indexed.Cont2.Lead.Generic.

Orphan instances

(Leading c t, MonadPlus m, Stacked m, s ~ CFieldsType c (Rep t ()) r, u ~ CFieldsType c (Rep t ()) t) => IsLabel c (m (t -> r) s u) Source # 
Instance details

Methods

fromLabel :: m (t -> r) s u #