tools-yj 0.1.0.43 → 0.1.0.44
raw patch · 2 files changed
+7/−1 lines, 2 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Data.Word.ToolsYj: instance GHC.Read.Read Data.Word.ToolsYj.Word4
+ Data.Word.ToolsYj: instance GHC.Show.Show Data.Word.ToolsYj.Word4
Files
- src/Data/Word/ToolsYj.hs +6/−0
- tools-yj.cabal +1/−1
src/Data/Word/ToolsYj.hs view
@@ -12,6 +12,12 @@ newtype Word4 = Word4_ { unWord4 :: Word8 } +instance Show Word4 where+ showsPrec p x = showsPrec p (fromIntegral x :: Int)++instance Read Word4 where+ readsPrec p s = [(fromIntegral (x :: Int), r) | (x, r) <- readsPrec p s]+ instance Bits Word4 where Word4_ w1 .&. Word4_ w2 = Word4_ $ w1 .&. w2 Word4_ w1 .|. Word4_ w2 = Word4_ $ w1 .|. w2
tools-yj.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: tools-yj-version: 0.1.0.43+version: 0.1.0.44 synopsis: Tribial tools description: Please see the README on GitHub at <https://github.com/YoshikuniJujo/tools-yj#readme> category: Tools