~ubuntu-branches/ubuntu/wily/coq-doc/wily

« back to all changes in this revision

Viewing changes to test-suite/modules/Demo.v

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu, Stéphane Glondu, Samuel Mimram
  • Date: 2010-01-07 22:50:39 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107225039-n3cq82589u0qt0s2
Tags: 8.2pl1-1
[ Stéphane Glondu ]
* New upstream release (Closes: #563669)
  - remove patches
* Packaging overhaul:
  - use git, advertise it in Vcs-* fields of debian/control
  - use debhelper 7 and dh with override
  - use source format 3.0 (quilt)
* debian/control:
  - set Maintainer to d-o-m, set Uploaders to Sam and myself
  - add Homepage field
  - bump Standards-Version to 3.8.3
* Register PDF documentation into doc-base
* Add debian/watch
* Update debian/copyright

[ Samuel Mimram ]
* Change coq-doc's description to mention that it provides documentation in
  pdf format, not postscript, closes: #543545.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Module M.
 
2
  Definition t := nat.
 
3
  Definition x := 0.
 
4
End M.
 
5
 
 
6
Print M.t.
 
7
 
 
8
 
 
9
Module Type SIG.
 
10
  Parameter t : Set.
 
11
  Parameter x : t.
 
12
End SIG.
 
13
 
 
14
 
 
15
Module F (X: SIG).
 
16
  Definition t := X.t -> X.t.
 
17
  Definition x : t.
 
18
    intro.
 
19
    exact X.x.
 
20
  Defined.
 
21
  Definition y := X.x.
 
22
End F.
 
23
 
 
24
 
 
25
Module N := F M.
 
26
 
 
27
Print N.t.
 
28
Eval compute in N.t.
 
29
 
 
30
 
 
31
Module N' : SIG := N.
 
32
 
 
33
Print N'.t.
 
34
Eval compute in N'.t.
 
35
 
 
36
 
 
37
Module N'' <: SIG := F N.
 
38
 
 
39
Print N''.t.
 
40
Eval compute in N''.t.
 
41
 
 
42
Eval compute in N''.x.
 
43
 
 
44
 
 
45
Module N''' : SIG with Definition t := nat -> nat := N.
 
46
 
 
47
Print N'''.t.
 
48
Eval compute in N'''.t.
 
49
 
 
50
Print N'''.x.
 
51
 
 
52
 
 
53
Import N'''.
 
54
 
 
55
Print t.
 
 
b'\\ No newline at end of file'