Cancel

GHC extensions

Language

·

April 15, 2021

AllowAmbiguousTypes

since 7.8

The ambiguity check rejects functions that can never be called.

ScopedTypeVariables

since 6.8.1

Enable lexical scoping of type variables explicitly introduced with forall.

TypeApplications

since 8.0.1

Allow the use of type application syntax. (类型构造器)

本来只能:

> show (read "5"::Int)
"5"

现在可以使用这种语法:

> show (read @Int "5" )
"5"

TypeFamilies

facilitate type-level programming

© minghu6

·

theme

Simplex theme logo

by golas