File: enum4.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 (4 lines) | stat: -rw-r--r-- 117 bytes parent folder | download | duplicates (4)
1
2
3
4
(* Enum for extending polymorphic variant types *)
type t1 = [`A] deriving (Enum)

type t2 = [`B|t1] deriving (Enum)