Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
type family DefaultDecoded a :: Type where ... Source #
Compute the default Decoded
Type
for every functor-wrapper.
Useful for instances using default signatures.
DefaultDecoded (f a) = f (Decoded a) |
Lift values to SMT-Values or decode them.
Nothing
decode :: Solution -> a -> Maybe (Decoded a) Source #
Decode a value using given solution.
default decode :: (Traversable f, Codec b, a ~ f b, Decoded a ~ f (Decoded b)) => Solution -> a -> Maybe (Decoded a) Source #
encode :: Decoded a -> a Source #
Encode a value as constant.
Instances
Codec () Source # | |
Codec a => Codec (IntMap a) Source # | |
Codec a => Codec (Seq a) Source # | |
Codec a => Codec (Tree a) Source # | |
KnownSMTSort t => Codec (Expr t) Source # | Decode and evaluate expressions |
Codec a => Codec (Maybe a) Source # | |
Codec a => Codec [a] Source # | |
(Codec a, Codec b) => Codec (Either a b) Source # | |
Codec a => Codec (Map k a) Source # | |
(Codec a, Codec b) => Codec (a, b) Source # | |
(Codec a, Codec b, Codec c) => Codec (a, b, c) Source # | |
(Codec a, Codec b, Codec c, Codec d) => Codec (a, b, c, d) Source # | |
(Codec a, Codec b, Codec c, Codec d, Codec e) => Codec (a, b, c, d, e) Source # | |
(Codec a, Codec b, Codec c, Codec d, Codec e, Codec f) => Codec (a, b, c, d, e, f) Source # | |
(Codec a, Codec b, Codec c, Codec d, Codec e, Codec f, Codec g) => Codec (a, b, c, d, e, f, g) Source # | |
(Codec a, Codec b, Codec c, Codec d, Codec e, Codec f, Codec g, Codec h) => Codec (a, b, c, d, e, f, g, h) Source # | |