Methods
fromLabel :: a
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Moduleghc-internal-9.1003.0Haskell2010
This module defines the IsLabel class used by the
OverloadedLabels extension. See the
wiki page
for more details.
When OverloadedLabels is enabled, if GHC sees an occurrence of
the overloaded label syntax #foo, it is replaced with
fromLabel @"foo" :: alphaplus a wanted constraint IsLabel "foo" alpha.
Note that if RebindableSyntax is enabled, the desugaring of
overloaded label syntax will make use of whatever fromLabel is in
scope.
fromLabel :: a