在 Agda 中导入 Cubical Agda 模块

Importing Cubical Agda modules in Agda

我在 Emacs 模式下使用 agda。我正在尝试启动一个依赖立方库的项目。我想导入模块 Cubical.Core.Everything。我只写了以下内容

{-# OPTIONS --without-K #-}

open import Cubical.Core.Everything

当我尝试加载文件时收到以下错误

/home/rymndbkr/myHoTT/Agda/intro.agda:3,1-36
Importing module Cubical.Core.Everything using the
--cubical/--erased-cubical flag from a module which does not.
when scope checking the declaration
  open import Cubical.Core.Everything
/home/rymndbkr/myHoTT/Agda/intro.agda:3,1-36
Importing module Cubical.Core.Everything using the --two-level flag
from a module which does not.
when scope checking the declaration
  open import Cubical.Core.Everything

我已经通读了相关的 agda 文档,但没有看到任何解决此问题的内容。有人知道这里发生了什么吗?

Cubical Agda 库只能从 Cubical Agda 使用。错误消息告诉您更改源文件以使用 Cubical 模式:

{-# OPTIONS --cubical #-}