ice1000 / arend-io

A toy IO library for Arend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arend IO

check

An experiment with adding IO and strings in Arend. Works Arend v1.5.0 release.

If you're using Arend 1.4.0 or 1.4.1, please use the v1.0 release.

Build

See GitHub Actions workflow.

Basically, you need to build the subproject under meta directory with ./gradlew classes. After that, you could import this library.

Example

For more examples, see Example.ard.

Given this code:

\func execution => unsafePerformIO
    (readProc "java --version" >>= print)

Typechecking it gives the following message (depends on environment):

[INFO] openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment JBR-11.0.7.10-944.16-jcef (build 11.0.7+10-b944.16)
OpenJDK 64-Bit Server VM JBR-11.0.7.10-944.16-jcef (build 11.0.7+10-b944.16, mixed mode)

About

A toy IO library for Arend

License:Apache License 2.0


Languages

Language:Java 90.8%Language:Kotlin 9.2%