mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 12:14:26 +03:00
63e127094e
The tokenizer for literate modes was incorretly detecting code lines in text. This PR fixes that, and allows for empty code lines.
17 lines
217 B
Idris
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)
|