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

« back to all changes in this revision

Viewing changes to test/succeed/Issue593.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 Issue593 where
2
 
 
3
 
import Common.Level
4
 
open import Common.Equality
5
 
open import Common.Irrelevance
6
 
 
7
 
record Unit : Set where
8
 
  constructor unit
9
 
 
10
 
bla6 : (F : Unit -> Set) ->
11
 
  let X : Unit -> Unit -> Set
12
 
      X = _
13
 
  in (z : Unit) -> X z z ≡ F z
14
 
bla6 F z = refl
15
 
 
16
 
bla7 : (F : Unit -> Set) ->
17
 
  let X : Set
18
 
      X = _
19
 
  in (z : Unit) -> X ≡ F z
20
 
bla7 F z = refl
21
 
 
22
 
 
23
 
record R (A : Set) : Set where
24
 
  constructor r
25
 
  field
26
 
    f1 : A -> Unit
27
 
    f2 : A
28
 
 
29
 
Sing : Set1
30
 
Sing = (A : Set) -> A -> R (A -> Unit)
31
 
 
32
 
test : (F : Sing -> Set) ->
33
 
  let X : Set
34
 
      X = _
35
 
  in (z : Sing) -> X ≡ F z
36
 
test F z = refl
37
 
 
38
 
 
39
 
Sing' : Set1
40
 
Sing' = (A : Set) -> A -> R (Squash A)
41
 
 
42
 
test' : (F : Sing' -> Set) ->
43
 
  let X : Sing' -> Sing' -> Set
44
 
      X = _
45
 
  in (z : Sing') -> X z z ≡ F z
46
 
test' F z = refl