mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 08:11:45 +03:00
69ec410890
This is added to functions which are guaranteed to be productive. The check is currently very conservative - just added when every clause is constructor headed (or headed by an AllGuarded function), and there are no other function applications.
23 lines
508 B
Plaintext
23 lines
508 B
Plaintext
1/1: Building Main (Main.idr)
|
|
Main> Main.MkFoo ==> DataCon 0 1 (newtype by (False, 0))
|
|
RigW
|
|
Erasable args: []
|
|
Detaggable arg types: []
|
|
Specialise args: []
|
|
Inferrable args: []
|
|
Compiled: Constructor tag Just 0 arity 1 (newtype by 0)
|
|
Refers to: []
|
|
Refers to (runtime): []
|
|
Flags: []
|
|
Main> Main.MkBar ==> DataCon 0 1
|
|
RigW
|
|
Erasable args: []
|
|
Detaggable arg types: []
|
|
Specialise args: []
|
|
Inferrable args: []
|
|
Compiled: Constructor tag Just 0 arity 1
|
|
Refers to: []
|
|
Refers to (runtime): []
|
|
Flags: []
|
|
Main> Bye for now!
|