Idris2/tests/ideMode/ideMode005/SimpleData.idr
Ohad Kammar e58bcfc7ef
Semantic highlighting (#1335)
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-05-10 09:05:43 +01:00

9 lines
148 B
Idris

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)