BSD Ports

lang/idris2 0.7.0 NetBSD

Functional Programming Language with Dependent Types

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
modified-bsd
Categories
lang
Package size
15106.1 KiB, 107975.7 KiB installed

Description

Idris is a programming language designed to encourage Type-Driven Development.

In type-driven development, types are tools for constructing programs. We treat the type as the plan for a program, and use the compiler and type checker as our assistant, guiding us to a complete program that satisfies the type. The more expressive the type is that we give up front, the more confidence we can have that the resulting program will be correct.

In Idris, types are first-class constructs in the langauge. This means types can be passed as arguments to functions, and returned from functions just like any other value, such as numbers, strings, or lists. This is a small but powerful idea, enabling:

* relationships to be expressed between values; for example, that two lists have the same length.

* assumptions to be made explicit and checked by the compiler. For example, if you assume that a list is non-empty, Idris can ensure this assumption always holds before the program is run.

* if desired, properties of program behaviour to be formally stated and proven.

Install

Binary package:

pkgin install idris2

From pkgsrc:

cd /usr/pkgsrc/lang/idris2 && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.7.0
NetBSD 10.1 aarch640.7.0
SmartOS / illumos x86_64-
macOS 15 arm64-

Dependencies

Run dependencies 2

No port depends on this one.