mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 01:01:59 +03:00
86c060ef13
* Reimplement %nomangle in terms of %export Also deprecate %nomangle * [ lint ] fix linter errors
16 lines
248 B
Idris
16 lines
248 B
Idris
%nomangle "javascript:foo"
|
|
foo : Int -> Int
|
|
foo x = x
|
|
|
|
%nomangle "node:$_baz"
|
|
baz : Int -> Int
|
|
baz x = x
|
|
|
|
%nomangle "refc:idr_another_name"
|
|
"javascript:another_name"
|
|
anotherName : Int -> Int
|
|
anotherName x = x
|
|
|
|
main : IO ()
|
|
main = pure ()
|