package preface

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file joker.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
module To_bifunctor (F : Preface_specs.Functor.CORE) =
Bifunctor.Via_bimap (struct
  type ('a, 'b) t = 'b F.t

  let bimap _ f x = F.map f x
end)

module To_profunctor (F : Preface_specs.Functor.CORE) =
Profunctor.Via_dimap (struct
  type ('a, 'b) t = 'b F.t

  let dimap _ f x = F.map f x
end)
OCaml

Innovation. Community. Security.