Last active
August 29, 2015 14:07
-
-
Save beala/a252fcb54970b7968cd4 to your computer and use it in GitHub Desktop.
Type of arbitrarily nested list
This file contains 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
λ: newtype Fix f = Nest {unFix :: f (Fix f)} | |
λ: :t Nest [] | |
Nest [] :: Fix [] | |
λ: :t Nest [Nest []] | |
Nest [Nest []] :: Fix [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment