Idris2/tests/idris2/literate013/Lit.lidr
Jan de Muijnck-Hughes 63e127094e Improved parsing for literate modes.
The tokenizer for literate modes was incorretly detecting code lines in text.
This PR fixes that, and allows for empty code lines.
2020-06-11 12:51:47 +01:00

17 lines
217 B
Idris

> module Lit
>
> %default total
a > b
a < b
> data V a = Empty | Extend a (V a)
> isCons : V a -> Bool
> isCons Empty = False
> isCons (Extend _ _) = True
< namespace Hidden
< data U a = Empty | Extend a (U a)