mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-15 22:32:19 +03:00
3063218d46
This is (for once) not a breaking changes, instead backends will need to opt in to this change, using the utilities in Compiler.NoMangle. See the js backend for an example of how to do this. This is the first step to being able to use idris to create libraries usable by other languages.
12 lines
140 B
Idris
12 lines
140 B
Idris
|
|
%nomangle
|
|
continue : Int -> Int
|
|
continue x = x + 1
|
|
|
|
%nomangle "refc:break"
|
|
break : Int -> Int
|
|
break x = x + 1
|
|
|
|
main : IO ()
|
|
main = pure ()
|