uncons.agda 342 B

1234567891011121314
  1. open import Agda.Builtin.Char
  2. open import Agda.Builtin.String
  3. open import Agda.Builtin.Maybe
  4. open import Agda.Builtin.Sigma
  5. open import Common.IO
  6. printTail : String → IO _
  7. printTail str with primStringUncons str
  8. ... | just (_ , tl) = putStr tl
  9. ... | nothing = putStr ""
  10. main : _
  11. main = printTail "/test/Compiler/simple/uncons.agda"