view paper/src/AgdaRecord.agda @ 86:e437746d6038

Fix lstinput
author atton <atton@cr.ie.u-ryukyu.ac.jp>
date Thu, 09 Feb 2017 15:40:11 +0900
parents fb42478e4c96
children
line wrap: on
line source

record Point : Set where
  field
    x : Nat
    y : Nat

makePoint : Nat -> Nat -> Point
makePoint a b = record { x = a ; y = b }