Created
August 6, 2017 04:09
-
-
Save 3noch/ee701840dd63f8be65661427782bd6a3 to your computer and use it in GitHub Desktop.
Function Application at Type Level (a.k.a. Open GADT)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE PolyKinds, TypeFamilies, TypeOperators #-} | |
type family ($) (f :: k1) (x :: k2) :: k3 | |
data Id | |
type instance Id $ x = x | |
data DoSomething | |
type instance DoSomething $ x = Either x x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment