File: Test045.ML

package info (click to toggle)
polyml 5.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 40,616 kB
  • sloc: cpp: 44,142; ansic: 26,963; sh: 22,002; asm: 13,486; makefile: 602; exp: 525; python: 253; awk: 91
file content (61 lines) | stat: -rw-r--r-- 1,365 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
(* Three different bugs to do with where-type constraints. *)


signature EXPORTTREESIG =
sig
    (* Export tree. *)
    type ptProperties 
    include sig type exportTree end where type exportTree = int * ptProperties list
end;

functor INITIALISE_ (

    structure VALUEOPS : sig
        type location
        end where type location = int;

    structure EXPORTTREE: EXPORTTREESIG

    structure MAKE :
    sig
        type exportTree
    end where type exportTree = EXPORTTREE.exportTree;

) =
struct end;

(* I think I've identified these. *)

functor INITIALISE_ (

structure EXPORTTREE: sig
    type exportTree
end where type exportTree = int

structure MAKE :
sig
    type exportTree
end where type exportTree = EXPORTTREE.exportTree;


) = struct end;

(* I think I've identified this one. *)

signature EXPORTTREESIG =
sig
    type ptProperties
    include sig type location end where     type location =
        { file: string, startLine: int, startPosition: int, endLine: int, endPosition: int }
    
    include sig type exportTree end where type exportTree = location * ptProperties list
    
    include sig type navigation end where type navigation =
        {parent: (unit -> exportTree) option,
         next: (unit -> exportTree) option,
         previous: (unit -> exportTree) option}

end;
functor F(structure E: EXPORTTREESIG) = struct end;