HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.Compiler.MAlonzo.Misc

  • 10 types
  • 1 class
  • 55 values
  • PackageAgda-2.7.0.1
  • Exports66
  • LanguageHaskell2010
  • LicenceMIT
  • SourceMisc.hs
datadata GHCEnv
#
Instances1ReadGHCOpts
  • Monad m => ReadGHCOpts (ReaderT GHCEnv m)Defined in Agda-2.7.0.1 · Agda.Compiler.MAlonzo.Compiler
classclass Monad m => ReadGHCModuleEnv (m :: Type -> Type) where
#
Instances6ReadGHCModuleEnv
typetype HsCompileM = HsCompileT TCM
#

The default compilation monad is the entire TCM (☹️) enriched with our state and module info

Whether the current module is expected to have the main function. This corresponds to the IsMain flag provided to the backend, not necessarily whether the GHC module actually has a main function defined.

This is the same value as curMName, but does not rely on the TCM's state. (curMName and co. should be removed, but the current Backend interface is not sufficient yet to allow that)

datadata VariableKind
#

Different kinds of variables: those starting with a, those starting with v, and those starting with x.

valueencodeString :: NameKind -> String -> String
#

Turns strings into valid Haskell identifiers.

In order to avoid clashes with names of regular Haskell definitions (those not generated from Agda definitions), make sure that the Haskell names are always used qualified, with the exception of names from the prelude.

valueduname :: QName -> Name
#

Name for definition stripped of unused arguments

valueisModChar :: Char -> Bool
#

Can the character be used in a Haskell module name part (conid)? This function is more restrictive than what the Haskell report allows.