12345678910111213141516171819202122232425262728293031323334353637(************************************************************************)(* v * The Coq Proof Assistant / The Coq Development Team *)(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2016 *)(* \VV/ **************************************************************)(* // * This file is distributed under the terms of the *)(* * GNU Lesser General Public License Version 2.1 *)(************************************************************************)(************************************************************************)(* Coq serialization API/Plugin *)(* Copyright 2022 Inria *)(************************************************************************)openSexplib.StdopenPpx_hash_lib.Std.Hash.BuiltinopenPpx_compare_lib.BuiltinmoduleSL=structtype'a_t=|Nil|Consof'a*'a_t|Defaultofint*'a_t[@@derivingsexp,yojson,hash,compare]type'at='aSList.tendincludeSerType.Pierce1(SL)letrec_mapf=function|SL.Nil->SL.Nil|SL.Cons(x,xs)->SL.Cons(fx,_mapfxs)|SL.Default(n,l)->SL.Default(n,_mapfl)letmap(f:'a->'b)(x:'aSList.t):'bSList.t=Obj.magic(_mapf(Obj.magicx))