Idris2/tests/ideMode/ideMode005/SimpleData.idr

9 lines
148 B
Idris
Raw Normal View History

module SimpleData
data Fwd a = FNil | (<|) a (Fwd a)
data Bwd a = BNil | (|>) (Bwd a) a
data Tree n l
= Leaf l
| Node (Tree n l) n (Tree n l)