-
-
Save lenary/7abb7ad5d533bf376804 to your computer and use it in GitHub Desktop.
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
module Main | |
main : IO () | |
main = putStrLn "Hello World!" |
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
% Generated by the Idris -> Erlang Compiler. | |
% Here be dragons. | |
-module(test). | |
-compile(export_all). | |
-compile(nowarn_unused_function). | |
-compile(nowarn_shadow_vars). | |
'Main_main'() -> {'U_Prelude_putStr1', "Hello World!\n"}. | |
'mkForeignPrim'() -> 'nothing'. | |
'mkLazyForeignPrim'() -> 'nothing'. | |
'Prelude_putStr'(E0, W0) -> io:put_chars(E0). | |
'run__IO'(E0) -> 'APPLY0'(E0, 'TheWorld'). | |
'unsafePerformPrimIO'() -> 'nothing'. | |
'APPLY0'(Fn0, Arg0) -> case Fn0 of | |
{'U_Prelude_putStr1', P_c0} -> 'Prelude_putStr'(P_c0, Arg0); | |
_Default -> 'nothing' | |
end. | |
'EVAL0'(Arg0) -> case Arg0 of | |
_Default -> Arg0 | |
end. | |
'runMain0'() -> 'EVAL0'('APPLY0'('Main_main'(), 'TheWorld')). | |
'Decidable_Equality_@Decidable_Equality_DecEq$Char:!decEq:0:primitiveNotEq:0'() -> 'nothing'. | |
'Decidable_Equality_@Decidable_Equality_DecEq$Float:!decEq:0:primitiveNotEq:0'() -> 'nothing'. | |
'Decidable_Equality_@Decidable_Equality_DecEq$Int:!decEq:0:primitiveNotEq:0'() -> 'nothing'. | |
'Decidable_Equality_@Decidable_Equality_DecEq$Integer:!decEq:0:primitiveNotEq:0'() -> 'nothing'. | |
'Decidable_Equality_@Decidable_Equality_DecEq$String:!decEq:0:primitiveNotEq:0'() -> 'nothing'. | |
'Void_case'() -> 'nothing'. | |
'Void_elim'() -> 'nothing'. |
That's actually pretty small, considering. Well done!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Load
test.erl
up in an erlang shell:To escape the erlang shell, Ctrl-G, then q then enter.