Idris2/tests/idris2/warning/warning002/Foo.idr
2023-09-07 14:57:22 +01:00

24 lines
293 B
Idris

module Foo
%deprecate
export
dep1 : String
dep1 = "hello"
||| Just use the string "world" directly from now on.
%deprecate
export
dep2 : String
dep2 = "world"
%deprecate
export
dep3 : String -> String
dep3 x = x ++ "!"
%deprecate
public export
0 foo : (0 a : Type) -> Type
foo x = List x