Created
June 9, 2015 02:18
-
-
Save zaphar/1adc8d461097c52ff32f to your computer and use it in GitHub Desktop.
Hoon type fail example
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
|% | |
++ showcode :: This works as expected. | |
|= [code=tape] | |
;code | |
;pre: {code} | |
;pre: {<.*(~ (make (crip code)))>} | |
== | |
++ newline :: This works as expected. | |
|* [a=tape b=tape] | |
;: welp | |
a | |
"\0a" | |
b | |
== | |
++ testcode :: This works as expected. | |
;: newlines | |
"=+ a=1" | |
"a" | |
== | |
++ test | |
(showcode testcode) :: This apparently causes a type fail. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment