Derive decoding for tuples

This commit is contained in:
Ayaz Hafiz 2023-03-22 16:43:52 -05:00
parent e96be7c746
commit cb5a21cb20
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
6 changed files with 1057 additions and 6 deletions

View file

@ -12,7 +12,7 @@ use crate::decoding::wrap_in_decode_custom_decode_with;
use crate::synth_var;
use crate::util::Env;
pub fn decoder(env: &mut Env<'_>, _def_symbol: Symbol) -> (Expr, Variable) {
pub(crate) fn decoder(env: &mut Env<'_>, _def_symbol: Symbol) -> (Expr, Variable) {
// Build
//
// def_symbol : Decoder (List elem) fmt | elem has Decoding, fmt has DecoderFormatting