Debian Codegraph @

theories/Corelib/extraction/ExtrHaskellBasic.v

raw
1 (** Extraction to Haskell : use of basic Haskell types *)
2
3 Require Corelib.extraction.Extraction.
4
5 Extract Inductive bool => "Prelude.Bool" [ "Prelude.True" "Prelude.False" ].
6 Extract Inductive option => "Prelude.Maybe" [ "Prelude.Just" "Prelude.Nothing" ].
7 Extract Inductive unit => "()" [ "()" ].
8 Extract Inductive list => "([])" [ "([])" "(:)" ].
9 Extract Inductive prod => "(,)" [ "(,)" ].
10
11 Extract Inductive sumbool => "Prelude.Bool" [ "Prelude.True" "Prelude.False" ].
12 Extract Inductive sumor => "Prelude.Maybe" [ "Prelude.Just" "Prelude.Nothing" ].
13 Extract Inductive sum => "Prelude.Either" [ "Prelude.Left" "Prelude.Right" ].
14
15 Extract Inlined Constant andb => "(Prelude.&&)".
16 Extract Inlined Constant orb => "(Prelude.||)".
17 Extract Inlined Constant negb => "Prelude.not".