Is it possible to use Agda as a library?

后端 未结 1 1746
没有蜡笔的小新
没有蜡笔的小新 2021-01-20 18:50

Instead of using Agda on a filesystem (with EMACS, terminal, etc.), is it possible to use it directly from Haskell, as a library? For example:

-- UsingAgda.h         


        
1条回答
  •  醉话见心
    2021-01-20 18:52

    Yes, it is possible. Agda was designed as a Haskell library plus a main module.

    You can see a couple of small examples here. As a bigger example, I wrote Apia (shameless plug), which uses Agda as a library.

    Please keep in mind that the current Agda description says:

    Note that the Agda package does not follow the package versioning policy, because it is not intended to be used by third-party packages.

    Of course, it could change.

    0 讨论(0)
提交回复
热议问题