File: deriving_Functor.mli

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 (9 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
module type Functor = 
sig
  type 'a f
  val map : ('a -> 'b) -> 'a f -> 'b f 
end
module MonadFunctor (M : Deriving_monad.Monad) : Functor with type 'a f = 'a M.m
module Functor_option : Functor with type 'a f = 'a option
module Functor_list : Functor with type 'a f = 'a list
module Functor_map (O : Map.OrderedType) : Functor with type 'a f = 'a Map.Make(O).t