on master help sign in
Add missing Show instance for CtorArg
commit603b06cf013aca943518def6325782229d3c6f38 authorDavid Raymond Christiansen <david@davidchristiansen.dk> dateWed 12 Aug 2015, 18:07 (11 years ago) parent30585fc
1 file changed+4
libs/base/Language/Reflection/Utils.idr+4
libs/base/Language/Reflection/Utils.idr+4
@@ -342,6 +342,10 @@ instance Show FunArg where
342342 showPrec d (MkFunArg n ty plic era) = showCon d "MkFunArg" $ showArg n ++
343343 showArg ty ++ showArg plic ++ showArg era
344344
345+instance Show CtorArg where
346+ showPrec d (CtorParameter fa) = showCon d "CtorParameter" $ showArg fa
347+ showPrec d (CtorField fa) = showCon d "CtorField" $ showArg fa
348+
345349instance Show TyDecl where
346350 showPrec d (Declare fn args ret) = showCon d "Declare" $ showArg fn ++
347351 showArg args ++ showArg ret