Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
type family DefaultDecoded a :: Type where ... Source #
DefaultDecoded (t a b c d e f g h) = t (Decoded a) (Decoded b) (Decoded c) (Decoded d) (Decoded e) (Decoded f) (Decoded g) (Decoded h) | |
DefaultDecoded (t a b c d e f g) = t (Decoded a) (Decoded b) (Decoded c) (Decoded d) (Decoded e) (Decoded f) (Decoded g) | |
DefaultDecoded (t a b c d e f) = t (Decoded a) (Decoded b) (Decoded c) (Decoded d) (Decoded e) (Decoded f) | |
DefaultDecoded (t a b c d e) = t (Decoded a) (Decoded b) (Decoded c) (Decoded d) (Decoded e) | |
DefaultDecoded (t a b c d) = t (Decoded a) (Decoded b) (Decoded c) (Decoded d) | |
DefaultDecoded (t a b c) = t (Decoded a) (Decoded b) (Decoded c) | |
DefaultDecoded (t a b) = t (Decoded a) (Decoded b) | |
DefaultDecoded (t a) = t (Decoded a) | |
DefaultDecoded x = TypeError (((((Text "DefaultDecoded (" :<>: ShowType x) :<>: Text ") is not allowed.") :$$: ((Text "Try providing the associated Type Decoded (" :<>: ShowType x) :<>: Text ") manually:")) :$$: ((Text "instance Codec (" :<>: ShowType x) :<>: Text ") where ")) :$$: ((Text " type Decoded (" :<>: ShowType x) :<>: Text ") = ... ")) |
Lift values to SMT-Values or decode them.
You can derive an instance of this class if your type is Generic
.
Nothing
decode :: Solution -> a -> Maybe (Decoded a) Source #
Decode a value using given solution.
default decode :: (Generic a, Generic (Decoded a), GCodec (Rep a), GDecoded (Rep a) x ~ Rep (Decoded a) x) => Solution -> a -> Maybe (Decoded a) Source #
encode :: Decoded a -> a Source #
Encode a value as constant.