plutus-tx-plugin-1.63.0.0: The Plutus Tx compiler and GHC plugin
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusTx.Compiler.Utils

Synopsis

Documentation

data SomeStarIn uni Source #

Identical to SomeTypeIn but without existential kind. Having kind fixed to Type makes it easier to pattern match and construct a different type within universe. See how it's used in compileMkNil.

Constructors

∀ a. SomeStarIn !(uni (Esc a)) 

lookupGhcTyConCompiling uni fun m ann ⇒ Name → m TyCon Source #

Get the TyCon for a given Name stored in the builtin name info, failing if it is missing.

lookupGhcNameCompiling uni fun m ann ⇒ Name → m Name Source #

Get the Name for a given Name stored in the builtin name info, failing if it is missing.

lookupGhcIdCompiling uni fun m ann ⇒ Name → m Id Source #

Get the Id for a given Name stored in the builtin name info, failing if it is missing.

sdToTxtMonadReader (CompileContext uni fun) m ⇒ SDoc → m Text Source #

throwSd ∷ (MonadError (CompileError uni fun ann) m, MonadReader (CompileContext uni fun) m) ⇒ (TextError uni fun ann) → SDoc → m a Source #

getPackageNameHscEnvModuleString Source #

Get the package name for the module being compiled. Tries lookupUnit first (works for installed packages), then thisPackageName from DynFlags (works for home library units), and finally falls back to stripping the version from the unit ID string.