grisette-0.8.0.0: Symbolic evaluation as a library
Copyright(c) Sirui Lu 2021-2023
LicenseBSD-3-Clause (see the LICENSE file)
Maintainersiruilu@cs.washington.edu
StabilityExperimental
PortabilityGHC only
Safe HaskellSafe-Inferred
LanguageHaskell2010

Grisette.Internal.SymPrim.Prim.ModelValue

Description

 
Synopsis

Documentation

data ModelValue where Source #

A value with its type information.

Constructors

ModelValue :: forall v. (Show v, Eq v, Hashable v) => TypeRep v -> v -> ModelValue 

toModelValue :: forall a. (Show a, Eq a, Hashable a, Typeable a) => a -> ModelValue Source #

Convert to a model value.

unsafeFromModelValue :: forall a. Typeable a => ModelValue -> a Source #

Convert from a model value. Crashes if the types does not match.