Skip to content

Commit

Permalink
Add ShowX instance for CUShort.
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanG077 committed Jan 4, 2023
1 parent ec016d4 commit 9ae8ee2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/2023-01-04T14_23_01+01_00_showx_cushort
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ADDED: Add `Clash.XException.ShowX` instance for `Foreign.C.Types.CUShort`.
3 changes: 3 additions & 0 deletions clash-prelude/src/Clash/XException.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ae8ee2

Please sign in to comment.