{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -Wno-unused-foralls #-}
{-# OPTIONS_GHC -fomit-interface-pragmas #-}
module PlutusTx.Plugin.Utils where
import Data.Proxy
import GHC.TypeLits
import PlutusTx.Code
import PlutusTx.Utils
plc :: forall (loc :: Symbol) a. Proxy loc -> a -> CompiledCode a
plc :: forall (loc :: Symbol) a. Proxy loc -> a -> CompiledCode a
plc Proxy loc
_ a
_ = ByteString
-> Maybe ByteString
-> CoverageIndex
-> CompiledCodeIn DefaultUni DefaultFun a
forall (uni :: * -> *) fun a.
ByteString
-> Maybe ByteString -> CoverageIndex -> CompiledCodeIn uni fun a
SerializedCode (String -> ByteString
forall a. String -> a
mustBeReplaced String
"plc") (String -> Maybe ByteString
forall a. String -> a
mustBeReplaced String
"pir") (String -> CoverageIndex
forall a. String -> a
mustBeReplaced String
"covidx")
{-# OPAQUE plc #-}
plinthc :: forall a. a -> CompiledCode a
plinthc :: forall a. a -> CompiledCode a
plinthc a
_ = ByteString
-> Maybe ByteString
-> CoverageIndex
-> CompiledCodeIn DefaultUni DefaultFun a
forall (uni :: * -> *) fun a.
ByteString
-> Maybe ByteString -> CoverageIndex -> CompiledCodeIn uni fun a
SerializedCode (String -> ByteString
forall a. String -> a
mustBeReplaced String
"plc") (String -> Maybe ByteString
forall a. String -> a
mustBeReplaced String
"pir") (String -> CoverageIndex
forall a. String -> a
mustBeReplaced String
"covidx")
{-# OPAQUE plinthc #-}
anchor :: forall (loc :: Symbol) a. a -> a
anchor :: forall (loc :: Symbol) a. a -> a
anchor a
a = a
a
{-# OPAQUE anchor #-}
unsupported :: forall (err :: Symbol) (loc :: Symbol) a. a -> a
unsupported :: forall (err :: Symbol) (loc :: Symbol) a. a -> a
unsupported a
x = a
x
{-# OPAQUE unsupported #-}