ocaml-export-0.3.0.0: Convert Haskell types in OCaml types

CopyrightPlow Technologies 2017
LicenseBSD3
Maintainermchaver@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

OCaml.BuckleScript.Internal.Module

Description

 

Synopsis

Documentation

data OCamlModule (modules :: [Symbol]) Source #

An OCamlModule as a Haskell type. File level modules is relative to a root directory prvoiided in the mkPackage function.

Instances

(KnownSymbols modules, HasOCamlTypeMetaData' k1 api) => HasOCamlTypeMetaData * ((:>) * k1 (OCamlModule modules) api) Source #

single module

(KnownSymbols modules, HasOCamlModule' k1 api) => HasOCamlModule * ((:>) * k1 (OCamlModule modules) api) Source # 

data OCamlSubModule (subModules :: Symbol) Source #

Symobl will be expaneded to "module SymbolName = struct ... end".

data OCamlTypeInFile a (filePath :: Symbol) Source #

A handwritten OCaml type, encoder and decoder from a file.

class HasOCamlType api where Source #

Convert a Haskell type into OCaml source code.

Minimal complete definition

mkType, mkInterface, mkSpec

Instances

((~) Nat (HasOCamlTypeFlag a) flag, HasOCamlType' * flag a) => HasOCamlType * a Source # 

class HasEmbeddedFile api where Source #

Use Template Haskell to load OCaml files for an OCaml Module at compile time. '$(mkFile (Proxy :: Proxy Package))'.

Minimal complete definition

mkFiles

Methods

mkFiles :: Bool -> Bool -> Proxy api -> Q Exp Source #

Instances

HasEmbeddedFile' k api => HasEmbeddedFile k api Source # 

Methods

mkFiles :: Bool -> Bool -> Proxy api api -> Q Exp Source #