hakaru-0.3.0: A probabilistic programming language

Safe HaskellNone
LanguageHaskell2010

Language.Hakaru.Syntax.Value

Documentation

data Value :: Hakaru -> * where Source #

Constructors

VNat :: !Nat -> Value HNat 
VInt :: !Int -> Value HInt 
VProb :: !LogFloat -> Value HProb 
VReal :: !Double -> Value HReal 
VDatum :: !(Datum Value (HData' t)) -> Value (HData' t) 
VLam :: (Value a -> Value b) -> Value (a :-> b) 
VMeasure :: (Value HProb -> GenIO -> IO (Maybe (Value a, Value HProb))) -> Value (HMeasure a) 
VArray :: !(Vector (Value a)) -> Value (HArray a) 

Instances

Coerce Value Source # 

Methods

coerceTo :: Coercion a b -> Value a -> Value b Source #

coerceFrom :: Coercion a b -> Value b -> Value a Source #

PrimCoerce Value Source # 
Eq1 Hakaru Value Source # 

Methods

eq1 :: a i -> a i -> Bool Source #

Show1 Hakaru Value Source # 

Methods

showsPrec1 :: Int -> a i -> ShowS Source #

show1 :: a i -> String Source #

Eq (Value a) Source # 

Methods

(==) :: Value a -> Value a -> Bool #

(/=) :: Value a -> Value a -> Bool #

Show (Value a) Source # 

Methods

showsPrec :: Int -> Value a -> ShowS #

show :: Value a -> String #

showList :: [Value a] -> ShowS #

lam2 :: Value (a :-> (b :-> c)) -> Value a -> Value b -> Value c Source #