code-conjure-0.4.2: conjure Haskell functions out of partial definitions
Copyright(c) 2021 Rudy Matela
License3-Clause BSD (see the file LICENSE)
MaintainerRudy Matela <rudy@matela.com.br>
Safe HaskellNone
LanguageHaskell2010

Conjure.Prim

Description

This module is part of Conjure.

The Prim type and utilities involving it.

You are probably better off importing Conjure.

Synopsis

Documentation

type Prim = (Expr, Reification) Source #

A primtive expression (paired with instance reification).

prim :: Conjurable a => String -> a -> Prim Source #

Provides a primitive value to Conjure. To be used on values that are not Show instances such as functions. (cf. pr)

pr :: (Conjurable a, Show a) => a -> Prim Source #

Provides a primitive value to Conjure. To be used on Show instances. (cf. prim)

prif :: Conjurable a => a -> Prim Source #

Provides an if condition bound to the given return type.

cjTiersFor :: [Prim] -> Expr -> [[Expr]] Source #

cjAreEqual :: [Prim] -> Int -> Expr -> Expr -> Bool Source #