TypeEquality 0.2.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package TypeEquality --version 0.2.4
NuGet\Install-Package TypeEquality -Version 0.2.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TypeEquality" Version="0.2.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TypeEquality --version 0.2.4
#r "nuget: TypeEquality, 0.2.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TypeEquality as a Cake Addin
#addin nuget:?package=TypeEquality&version=0.2.4

// Install TypeEquality as a Cake Tool
#tool nuget:?package=TypeEquality&version=0.2.4

TypeEquality

NuGet latest release NuGet latest pre-release Build status

Type equalities for F#

This library contains type equalities (Teqs) for F#. These equalities allow us to create type-safe abstractions by allowing us to encode Generalised Algebraic Data Types (GADTs), as found in languages like Haskell.

Usage

To use Teqs in your projects, you'll want to reference the main TypeEquality project. The project is available as a nuget package - https://www.nuget.org/packages/TypeEquality.
This project provides a type Teq<'a,'b> of proofs that 'a and 'b are the same type. By including these in the declaration of a generic discriminated union, you can constrain the types each case applies to, encoding a GADT. An example of this may be found in the Example folder.

For more advanced usage, TypeEquality also allows you to reason about Teqs using the functions in the Teq and Teq.Cong (congruence) modules.

The library has some unit tests in the Test/TypeEquality.Test.fsproj project.

Contributing

We welcome new contributors! We'll happily receive PRs for bug fixes or small changes. If you're contemplating something larger please get in touch first by opening a GitHub Issue describing the problem and how you propose to solve it.

License

Copyright 2018 G-Research

Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on TypeEquality:

Package Downloads
HCollections

Heterogeneous collections for F#. Using heterogeneous collections, it's possible to act on arbitrary sum and product types in a generic way.

Parsy

A lightweight parser combinator library for F#.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.0 30,291 1/14/2020
0.2.4 797 10/7/2019
0.2.3 786 10/5/2019
0.2.2 620 9/28/2019
0.2.1 1,408 1/9/2019
0.2.0 644 1/2/2019
0.0.1 652 11/7/2018