From 8fdda20dcc6c63cd1d2b3b067636b220b811b130 Mon Sep 17 00:00:00 2001 From: rowanG077 Date: Wed, 4 Jan 2023 18:56:26 +0100 Subject: [PATCH] Add `ShowX` instance for `CUShort`. --- changelog/2023-01-04T14_23_01+01_00_showx_cushort | 1 + clash-prelude/src/Clash/XException.hs | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 changelog/2023-01-04T14_23_01+01_00_showx_cushort diff --git a/changelog/2023-01-04T14_23_01+01_00_showx_cushort b/changelog/2023-01-04T14_23_01+01_00_showx_cushort new file mode 100644 index 0000000000..b71e72faea --- /dev/null +++ b/changelog/2023-01-04T14_23_01+01_00_showx_cushort @@ -0,0 +1 @@ +ADDED: Add `Clash.XException.ShowX` instance for `Foreign.C.Types.CUShort`. diff --git a/clash-prelude/src/Clash/XException.hs b/clash-prelude/src/Clash/XException.hs index 260a0fe7fa..a019b5143c 100644 --- a/clash-prelude/src/Clash/XException.hs +++ b/clash-prelude/src/Clash/XException.hs @@ -440,6 +440,9 @@ instance ShowX Word32 where instance ShowX Word64 where showsPrecX = showsPrecXWith showsPrec +instance ShowX CUShort where + showsPrecX = showsPrecXWith showsPrec + instance ShowX a => ShowX (Maybe a) instance ShowX a => ShowX (Ratio a) where