Skip to content

Instantly share code, notes, and snippets.

@ikedaisuke
Created March 11, 2011 21:18
Show Gist options
  • Save ikedaisuke/866600 to your computer and use it in GitHub Desktop.
Save ikedaisuke/866600 to your computer and use it in GitHub Desktop.
How to use agda2-make-case
module Agdacase where
data Nat : Set where
zero : Nat
succ : (n : Nat) -> Nat
-- an example : n += 2
succsucc : Nat -> Nat
succsucc n = {! !} -- try to type C-c C-c `in the goal'
-- then you should type the variable `n' in the minibuffer
-- finally you must get the following instead!
-- succsucc : Nat -> Nat
-- succsucc zero = {!!}
-- succsucc (succ n) = {!!}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment