File: polyrecord.ml

package info (click to toggle)
ocaml-deriving-ocsigen 0.3c-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 600 kB
  • sloc: ml: 5,788; makefile: 298
file content (8 lines) | stat: -rw-r--r-- 242 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
(* Polymorphic variant definitions within polymorphic record field
   types *)
type r = {
  (* I think this could be supported without too much difficulty, but
     it doesn't have much benefit *)
  x : 'a. [`Foo of 'a] 
    
} deriving (Eq)