mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-15 14:23:32 +03:00
e8eab6d763
This saves a small amount of allocation, especially since we never actually look at the tag in a record. We can use null? for Nothing just like for Nil.
23 lines
540 B
Plaintext
23 lines
540 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: [contype [record]]
|
|
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: [contype [record]]
|
|
Main> Bye for now!
|