Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class IsCodeLabel (sym :: Symbol) a where
- codeFromLabel :: SpliceQ a
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
codeFromLabel :: SpliceQ a Source #