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

Overloaded.CodeStrings

Synopsis

Documentation

class IsCodeString a where Source #

Class for auto-spliced string literals

The string literals "beer" is desugared into $$(codeFromString @"beer") splice.

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

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

Instances

Instances details
IsCodeString ByteString Source # 
Instance details

Defined in Overloaded.CodeStrings

a ~ Char => IsCodeString [a] Source # 
Instance details

Defined in Overloaded.CodeStrings