~ubuntu-branches/ubuntu/wily/agda/wily-proposed

« back to all changes in this revision

Viewing changes to benchmark/misc/LateMetaVariableInstantiation.agda

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-08-05 06:38:12 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140805063812-io8e77niomivhd49
Tags: 2.4.0.2-1
* [6e140ac] Imported Upstream version 2.4.0.2
* [2049fc8] Update Build-Depends to match control
* [93dc4d4] Install the new primitives
* [e48f40f] Fix typo dev→doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
module LateMetaVariableInstantiation where
2
 
 
3
 
data ℕ : Set where
4
 
  zero : ℕ
5
 
  suc  : (n : ℕ) → ℕ
6
 
 
7
 
{-# BUILTIN NATURAL ℕ    #-}
8
 
{-# BUILTIN ZERO    zero #-}
9
 
{-# BUILTIN SUC     suc  #-}
10
 
 
11
 
postulate
12
 
  yippie : (A : Set) → A
13
 
 
14
 
slow : (A : Set) → ℕ → A
15
 
slow A zero    = yippie A
16
 
slow A (suc n) = slow _ n
17
 
 
18
 
data _≡_ {A : Set} (x : A) : A → Set where
19
 
  refl : x ≡ x
20
 
 
21
 
foo : slow ℕ 1000 ≡ yippie ℕ
22
 
foo = refl
23
 
 
24
 
 
25
 
 
26
 
 
27