File: dump2.ml

package info (click to toggle)
ocaml-deriving-ocsigen 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 628 kB
  • ctags: 1,159
  • sloc: ml: 6,334; makefile: 63; sh: 18
file content (5 lines) | stat: -rw-r--r-- 171 bytes parent folder | download | duplicates (4)
1
2
3
4
5
(* records with mutable fields cannot be instances of Dump
   (because it doesn't preserve sharing *)

type t = { x : int; mutable y : int ; z : int }
    deriving (Dump)