TrailingImplicits.agda 333 B

1234567891011121314151617
  1. module TrailingImplicits where
  2. -- see also https://lists.chalmers.se/pipermail/agda-dev/2015-January/000041.html
  3. open import Common.IO
  4. open import Common.Unit
  5. open import Common.Nat
  6. f : (m : Nat) {l : Nat} -> Nat
  7. f zero {l = l} = l
  8. f (suc y) = y
  9. main : IO Unit
  10. main = printNat (f 0 {1}) ,,
  11. putStr "\n" ,,
  12. printNat (f 30 {1})