boltzmann-brain-1.4: Boltzmann sampler compiler for combinatorial systems.

Copyright(c) Maciej Bendkowski 2017-2018
LicenseBSD3
Maintainermaciej.bendkowski@tcs.uj.edu.pl
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.Boltzmann.Compiler.Haskell.Helpers

Description

General utilities used across system compilers.

Synopsis

Documentation

systemNote :: PSystem Double -> [String] Source #

Prepares a system/module note.

importFrom :: String -> [ImportSpec] -> ImportDecl Source #

Simple import declaration.

declTFun :: String -> Type -> [String] -> Exp -> [Decl] Source #

Simple function declaration.

less :: Exp -> Exp -> Exp Source #

and :: Exp -> Exp -> Exp Source #

lessF :: Real a => Exp -> a -> Exp Source #

sub :: Exp -> Exp -> Exp Source #

add :: Exp -> Exp -> Exp Source #

applyF :: Exp -> [Exp] -> Exp Source #

dot :: Exp -> Exp -> Exp Source #

declADT :: Bool -> (String, [Cons a]) -> Decl Source #