Agda-2.6.2.2: A dependently typed functional programming language and proof assistant

Safe Haskell | Safe-Inferred
Language | Haskell2010

Agda.Compiler.Common

Synopsis

- data IsMain
  - = IsMain
  - | NotMain
- doCompile :: Monoid r => (IsMain -> Interface -> TCM r) -> IsMain -> Interface -> TCM r
- doCompile' :: Monoid r => (IsMain -> Interface -> TCM r) -> IsMain -> Interface -> StateT (Set ModuleName) TCM r
- setInterface :: Interface -> TCM ()
- curIF :: ReadTCState m => m Interface
- curMName :: ReadTCState m => m ModuleName
- curDefs :: ReadTCState m => m Definitions
- sortDefs :: Definitions -> [(QName, Definition)]
- compileDir :: HasOptions m => m FilePath
- repl :: [String] -> String -> String
- inCompilerEnv :: CheckResult -> TCM a -> TCM a
- topLevelModuleName :: ReadTCState m => ModuleName -> m ModuleName

# Documentation

data IsMain Source #

Constructors

IsMain |
NotMain |

#### Instances

Instances details

Monoid IsMain Source # |
Instance details Defined in Agda.Compiler.Common Methods mempty :: IsMain Source # mappend :: IsMain -> IsMain -> IsMain Source # mconcat :: [IsMain] -> IsMain Source #
Semigroup IsMain Source # | Conjunctive semigroup (`NotMain` is absorbing).
Instance details Defined in Agda.Compiler.Common Methods (<>) :: IsMain -> IsMain -> IsMain Source # sconcat :: NonEmpty IsMain -> IsMain Source # stimes :: Integral b => b -> IsMain -> IsMain Source #
Show IsMain Source # |
Instance details Defined in Agda.Compiler.Common Methods showsPrec :: Int -> IsMain -> ShowS Source # show :: IsMain -> String Source # showList :: [IsMain] -> ShowS Source #
Eq IsMain Source # |
Instance details Defined in Agda.Compiler.Common Methods (==) :: IsMain -> IsMain -> Bool Source # (/=) :: IsMain -> IsMain -> Bool Source #

doCompile :: Monoid r => (IsMain -> Interface -> TCM r) -> IsMain -> Interface -> TCM r Source #

doCompile' :: Monoid r => (IsMain -> Interface -> TCM r) -> IsMain -> Interface -> StateT (Set ModuleName) TCM r Source #

setInterface :: Interface -> TCM () Source #

curIF :: ReadTCState m => m Interface Source #

curMName :: ReadTCState m => m ModuleName Source #

curDefs :: ReadTCState m => m Definitions Source #

sortDefs :: Definitions -> [(QName, Definition)] Source #

compileDir :: HasOptions m => m FilePath Source #

repl :: [String] -> String -> String Source #

inCompilerEnv :: CheckResult -> TCM a -> TCM a Source #

Sets up the compilation environment.

topLevelModuleName :: ReadTCState m => ModuleName -> m ModuleName Source #