{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Pango.Structs.Attribute
(
Attribute(..) ,
noAttribute ,
#if defined(ENABLE_OVERLOADING)
ResolveAttributeMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
AttributeDestroyMethodInfo ,
#endif
attributeDestroy ,
#if defined(ENABLE_OVERLOADING)
AttributeEqualMethodInfo ,
#endif
attributeEqual ,
#if defined(ENABLE_OVERLOADING)
AttributeInitMethodInfo ,
#endif
attributeInit ,
#if defined(ENABLE_OVERLOADING)
attribute_endIndex ,
#endif
getAttributeEndIndex ,
setAttributeEndIndex ,
#if defined(ENABLE_OVERLOADING)
attribute_klass ,
#endif
clearAttributeKlass ,
getAttributeKlass ,
setAttributeKlass ,
#if defined(ENABLE_OVERLOADING)
attribute_startIndex ,
#endif
getAttributeStartIndex ,
setAttributeStartIndex ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import {-# SOURCE #-} qualified GI.Pango.Structs.AttrClass as Pango.AttrClass
newtype Attribute = Attribute (ManagedPtr Attribute)
deriving (Attribute -> Attribute -> Bool
(Attribute -> Attribute -> Bool)
-> (Attribute -> Attribute -> Bool) -> Eq Attribute
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Attribute -> Attribute -> Bool
$c/= :: Attribute -> Attribute -> Bool
== :: Attribute -> Attribute -> Bool
$c== :: Attribute -> Attribute -> Bool
Eq)
foreign import ccall "pango_attribute_copy" _Attribute_copy_pango_attribute_copy :: Ptr a -> IO (Ptr a)
foreign import ccall "&pango_attribute_destroy" _Attribute_free_pango_attribute_destroy :: FunPtr (Ptr a -> IO ())
instance WrappedPtr Attribute where
wrappedPtrCalloc :: IO (Ptr Attribute)
wrappedPtrCalloc = [Char] -> IO (Ptr Attribute)
forall a. HasCallStack => [Char] -> a
error "calloc not permitted for Attribute"
wrappedPtrCopy :: Attribute -> IO Attribute
wrappedPtrCopy = \p :: Attribute
p -> Attribute -> (Ptr Attribute -> IO Attribute) -> IO Attribute
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr Attribute
p (Ptr Attribute -> IO (Ptr Attribute)
forall a. Ptr a -> IO (Ptr a)
_Attribute_copy_pango_attribute_copy (Ptr Attribute -> IO (Ptr Attribute))
-> (Ptr Attribute -> IO Attribute) -> Ptr Attribute -> IO Attribute
forall (m :: * -> *) a b c.
Monad m =>
(a -> m b) -> (b -> m c) -> a -> m c
>=> (ManagedPtr Attribute -> Attribute)
-> Ptr Attribute -> IO Attribute
forall a.
(HasCallStack, WrappedPtr a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapPtr ManagedPtr Attribute -> Attribute
Attribute)
wrappedPtrFree :: Maybe (GDestroyNotify Attribute)
wrappedPtrFree = GDestroyNotify Attribute -> Maybe (GDestroyNotify Attribute)
forall a. a -> Maybe a
Just GDestroyNotify Attribute
forall a. FunPtr (Ptr a -> IO ())
_Attribute_free_pango_attribute_destroy
noAttribute :: Maybe Attribute
noAttribute :: Maybe Attribute
noAttribute = Maybe Attribute
forall a. Maybe a
Nothing
getAttributeKlass :: MonadIO m => Attribute -> m (Maybe Pango.AttrClass.AttrClass)
getAttributeKlass :: Attribute -> m (Maybe AttrClass)
getAttributeKlass s :: Attribute
s = IO (Maybe AttrClass) -> m (Maybe AttrClass)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe AttrClass) -> m (Maybe AttrClass))
-> IO (Maybe AttrClass) -> m (Maybe AttrClass)
forall a b. (a -> b) -> a -> b
$ Attribute
-> (Ptr Attribute -> IO (Maybe AttrClass)) -> IO (Maybe AttrClass)
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr Attribute
s ((Ptr Attribute -> IO (Maybe AttrClass)) -> IO (Maybe AttrClass))
-> (Ptr Attribute -> IO (Maybe AttrClass)) -> IO (Maybe AttrClass)
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr Attribute
ptr -> do
Ptr AttrClass
val <- Ptr (Ptr AttrClass) -> IO (Ptr AttrClass)
forall a. Storable a => Ptr a -> IO a
peek (Ptr Attribute
ptr Ptr Attribute -> Int -> Ptr (Ptr AttrClass)
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0) :: IO (Ptr Pango.AttrClass.AttrClass)
Maybe AttrClass
result <- Ptr AttrClass
-> (Ptr AttrClass -> IO AttrClass) -> IO (Maybe AttrClass)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
SP.convertIfNonNull Ptr AttrClass
val ((Ptr AttrClass -> IO AttrClass) -> IO (Maybe AttrClass))
-> (Ptr AttrClass -> IO AttrClass) -> IO (Maybe AttrClass)
forall a b. (a -> b) -> a -> b
$ \val' :: Ptr AttrClass
val' -> do
AttrClass
val'' <- ((ManagedPtr AttrClass -> AttrClass)
-> Ptr AttrClass -> IO AttrClass
forall a.
(HasCallStack, WrappedPtr a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
newPtr ManagedPtr AttrClass -> AttrClass
Pango.AttrClass.AttrClass) Ptr AttrClass
val'
AttrClass -> IO AttrClass
forall (m :: * -> *) a. Monad m => a -> m a
return AttrClass
val''
Maybe AttrClass -> IO (Maybe AttrClass)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe AttrClass
result
setAttributeKlass :: MonadIO m => Attribute -> Ptr Pango.AttrClass.AttrClass -> m ()
setAttributeKlass :: Attribute -> Ptr AttrClass -> m ()
setAttributeKlass s :: Attribute
s val :: Ptr AttrClass
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ Attribute -> (Ptr Attribute -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr Attribute
s ((Ptr Attribute -> IO ()) -> IO ())
-> (Ptr Attribute -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr Attribute
ptr -> do
Ptr (Ptr AttrClass) -> Ptr AttrClass -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr Attribute
ptr Ptr Attribute -> Int -> Ptr (Ptr AttrClass)
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0) (Ptr AttrClass
val :: Ptr Pango.AttrClass.AttrClass)
clearAttributeKlass :: MonadIO m => Attribute -> m ()
clearAttributeKlass :: Attribute -> m ()
clearAttributeKlass s :: Attribute
s = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ Attribute -> (Ptr Attribute -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr Attribute
s ((Ptr Attribute -> IO ()) -> IO ())
-> (Ptr Attribute -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr Attribute
ptr -> do
Ptr (Ptr AttrClass) -> Ptr AttrClass -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr Attribute
ptr Ptr Attribute -> Int -> Ptr (Ptr AttrClass)
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0) (Ptr AttrClass
forall a. Ptr a
FP.nullPtr :: Ptr Pango.AttrClass.AttrClass)
#if defined(ENABLE_OVERLOADING)
data AttributeKlassFieldInfo
instance AttrInfo AttributeKlassFieldInfo where
type AttrBaseTypeConstraint AttributeKlassFieldInfo = (~) Attribute
type AttrAllowedOps AttributeKlassFieldInfo = '[ 'AttrSet, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint AttributeKlassFieldInfo = (~) (Ptr Pango.AttrClass.AttrClass)
type AttrTransferTypeConstraint AttributeKlassFieldInfo = (~)(Ptr Pango.AttrClass.AttrClass)
type AttrTransferType AttributeKlassFieldInfo = (Ptr Pango.AttrClass.AttrClass)
type AttrGetType AttributeKlassFieldInfo = Maybe Pango.AttrClass.AttrClass
type AttrLabel AttributeKlassFieldInfo = "klass"
type AttrOrigin AttributeKlassFieldInfo = Attribute
attrGet = getAttributeKlass
attrSet = setAttributeKlass
attrConstruct = undefined
attrClear = clearAttributeKlass
attrTransfer _ v = do
return v
attribute_klass :: AttrLabelProxy "klass"
attribute_klass = AttrLabelProxy
#endif
getAttributeStartIndex :: MonadIO m => Attribute -> m Word32
getAttributeStartIndex :: Attribute -> m Word32
getAttributeStartIndex s :: Attribute
s = IO Word32 -> m Word32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ Attribute -> (Ptr Attribute -> IO Word32) -> IO Word32
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr Attribute
s ((Ptr Attribute -> IO Word32) -> IO Word32)
-> (Ptr Attribute -> IO Word32) -> IO Word32
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr Attribute
ptr -> do
Word32
val <- Ptr Word32 -> IO Word32
forall a. Storable a => Ptr a -> IO a
peek (Ptr Attribute
ptr Ptr Attribute -> Int -> Ptr Word32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 8) :: IO Word32
Word32 -> IO Word32
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
val
setAttributeStartIndex :: MonadIO m => Attribute -> Word32 -> m ()
setAttributeStartIndex :: Attribute -> Word32 -> m ()
setAttributeStartIndex s :: Attribute
s val :: Word32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ Attribute -> (Ptr Attribute -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr Attribute
s ((Ptr Attribute -> IO ()) -> IO ())
-> (Ptr Attribute -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr Attribute
ptr -> do
Ptr Word32 -> Word32 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr Attribute
ptr Ptr Attribute -> Int -> Ptr Word32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 8) (Word32
val :: Word32)
#if defined(ENABLE_OVERLOADING)
data AttributeStartIndexFieldInfo
instance AttrInfo AttributeStartIndexFieldInfo where
type AttrBaseTypeConstraint AttributeStartIndexFieldInfo = (~) Attribute
type AttrAllowedOps AttributeStartIndexFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint AttributeStartIndexFieldInfo = (~) Word32
type AttrTransferTypeConstraint AttributeStartIndexFieldInfo = (~)Word32
type AttrTransferType AttributeStartIndexFieldInfo = Word32
type AttrGetType AttributeStartIndexFieldInfo = Word32
type AttrLabel AttributeStartIndexFieldInfo = "start_index"
type AttrOrigin AttributeStartIndexFieldInfo = Attribute
attrGet = getAttributeStartIndex
attrSet = setAttributeStartIndex
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
attribute_startIndex :: AttrLabelProxy "startIndex"
attribute_startIndex = AttrLabelProxy
#endif
getAttributeEndIndex :: MonadIO m => Attribute -> m Word32
getAttributeEndIndex :: Attribute -> m Word32
getAttributeEndIndex s :: Attribute
s = IO Word32 -> m Word32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ Attribute -> (Ptr Attribute -> IO Word32) -> IO Word32
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr Attribute
s ((Ptr Attribute -> IO Word32) -> IO Word32)
-> (Ptr Attribute -> IO Word32) -> IO Word32
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr Attribute
ptr -> do
Word32
val <- Ptr Word32 -> IO Word32
forall a. Storable a => Ptr a -> IO a
peek (Ptr Attribute
ptr Ptr Attribute -> Int -> Ptr Word32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 12) :: IO Word32
Word32 -> IO Word32
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
val
setAttributeEndIndex :: MonadIO m => Attribute -> Word32 -> m ()
setAttributeEndIndex :: Attribute -> Word32 -> m ()
setAttributeEndIndex s :: Attribute
s val :: Word32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ Attribute -> (Ptr Attribute -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr Attribute
s ((Ptr Attribute -> IO ()) -> IO ())
-> (Ptr Attribute -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr Attribute
ptr -> do
Ptr Word32 -> Word32 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr Attribute
ptr Ptr Attribute -> Int -> Ptr Word32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 12) (Word32
val :: Word32)
#if defined(ENABLE_OVERLOADING)
data AttributeEndIndexFieldInfo
instance AttrInfo AttributeEndIndexFieldInfo where
type AttrBaseTypeConstraint AttributeEndIndexFieldInfo = (~) Attribute
type AttrAllowedOps AttributeEndIndexFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint AttributeEndIndexFieldInfo = (~) Word32
type AttrTransferTypeConstraint AttributeEndIndexFieldInfo = (~)Word32
type AttrTransferType AttributeEndIndexFieldInfo = Word32
type AttrGetType AttributeEndIndexFieldInfo = Word32
type AttrLabel AttributeEndIndexFieldInfo = "end_index"
type AttrOrigin AttributeEndIndexFieldInfo = Attribute
attrGet = getAttributeEndIndex
attrSet = setAttributeEndIndex
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
attribute_endIndex :: AttrLabelProxy "endIndex"
attribute_endIndex = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList Attribute
type instance O.AttributeList Attribute = AttributeAttributeList
type AttributeAttributeList = ('[ '("klass", AttributeKlassFieldInfo), '("startIndex", AttributeStartIndexFieldInfo), '("endIndex", AttributeEndIndexFieldInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "pango_attribute_destroy" pango_attribute_destroy ::
Ptr Attribute ->
IO ()
attributeDestroy ::
(B.CallStack.HasCallStack, MonadIO m) =>
Attribute
-> m ()
attributeDestroy :: Attribute -> m ()
attributeDestroy attr :: Attribute
attr = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Attribute
attr' <- Attribute -> IO (Ptr Attribute)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr Attribute
attr
Ptr Attribute -> IO ()
pango_attribute_destroy Ptr Attribute
attr'
Attribute -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr Attribute
attr
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AttributeDestroyMethodInfo
instance (signature ~ (m ()), MonadIO m) => O.MethodInfo AttributeDestroyMethodInfo Attribute signature where
overloadedMethod = attributeDestroy
#endif
foreign import ccall "pango_attribute_equal" pango_attribute_equal ::
Ptr Attribute ->
Ptr Attribute ->
IO CInt
attributeEqual ::
(B.CallStack.HasCallStack, MonadIO m) =>
Attribute
-> Attribute
-> m Bool
attributeEqual :: Attribute -> Attribute -> m Bool
attributeEqual attr1 :: Attribute
attr1 attr2 :: Attribute
attr2 = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr Attribute
attr1' <- Attribute -> IO (Ptr Attribute)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr Attribute
attr1
Ptr Attribute
attr2' <- Attribute -> IO (Ptr Attribute)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr Attribute
attr2
CInt
result <- Ptr Attribute -> Ptr Attribute -> IO CInt
pango_attribute_equal Ptr Attribute
attr1' Ptr Attribute
attr2'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= 0) CInt
result
Attribute -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr Attribute
attr1
Attribute -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr Attribute
attr2
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data AttributeEqualMethodInfo
instance (signature ~ (Attribute -> m Bool), MonadIO m) => O.MethodInfo AttributeEqualMethodInfo Attribute signature where
overloadedMethod = attributeEqual
#endif
foreign import ccall "pango_attribute_init" pango_attribute_init ::
Ptr Attribute ->
Ptr Pango.AttrClass.AttrClass ->
IO ()
attributeInit ::
(B.CallStack.HasCallStack, MonadIO m) =>
Attribute
-> Pango.AttrClass.AttrClass
-> m ()
attributeInit :: Attribute -> AttrClass -> m ()
attributeInit attr :: Attribute
attr klass :: AttrClass
klass = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Attribute
attr' <- Attribute -> IO (Ptr Attribute)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr Attribute
attr
Ptr AttrClass
klass' <- AttrClass -> IO (Ptr AttrClass)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr AttrClass
klass
Ptr Attribute -> Ptr AttrClass -> IO ()
pango_attribute_init Ptr Attribute
attr' Ptr AttrClass
klass'
Attribute -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr Attribute
attr
AttrClass -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr AttrClass
klass
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AttributeInitMethodInfo
instance (signature ~ (Pango.AttrClass.AttrClass -> m ()), MonadIO m) => O.MethodInfo AttributeInitMethodInfo Attribute signature where
overloadedMethod = attributeInit
#endif
#if defined(ENABLE_OVERLOADING)
type family ResolveAttributeMethod (t :: Symbol) (o :: *) :: * where
ResolveAttributeMethod "destroy" o = AttributeDestroyMethodInfo
ResolveAttributeMethod "equal" o = AttributeEqualMethodInfo
ResolveAttributeMethod "init" o = AttributeInitMethodInfo
ResolveAttributeMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveAttributeMethod t Attribute, O.MethodInfo info Attribute p) => OL.IsLabel t (Attribute -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#endif