Skip to content

Instantly share code, notes, and snippets.

@BekaValentine
Created September 5, 2018 10:00
Show Gist options
  • Select an option

  • Save BekaValentine/2a21edf833d9e3e0f264569f64893e2c to your computer and use it in GitHub Desktop.

Select an option

Save BekaValentine/2a21edf833d9e3e0f264569f64893e2c to your computer and use it in GitHub Desktop.
-- Define names for convenience, these aren't real, just meta-level
Data_Bool :: forall r :: *.
(forall bool :: *.
bool ->
bool ->
(forall a. bool -> (() -> a) -> (() -> a) -> a) ->
r)
-> r
Data_Bool dependee =
dependee {forall a. (() -> a) -> (() -> a) -> a}
(\t f -> t ())
(\t f -> f ())
(\c t f -> c t f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment