overloaded-0.3.1: Overloaded pragmas as a plugin
Safe HaskellSafe-Inferred
LanguageHaskell2010

Overloaded.CodeLabels

Synopsis

Documentation

class IsCodeLabel (sym :: Symbol) a where Source #

Class for auto-spliced labels

The labels #lbl is desugared into $$(codeFromlabel @"lbl") splice.

{-# OPTIONS -fplugin=Overloaded -fplugin-opt=Overloaded:CodeLabels #-}

This feature is not very usable, see https://gitlab.haskell.org/ghc/ghc/-/issues/18211