packages feed

tools-yj 0.1.0.19 → 0.1.0.20

raw patch · 2 files changed

+6/−2 lines, 2 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Data.Bits.ToolsYj: bitsList :: FiniteBits bs => bs -> [bs]

Files

src/Data/Bits/ToolsYj.hs view
@@ -1,8 +1,12 @@ {-# OPTIONS_GHC -Wall -fno-warn-tabs #-} -module Data.Bits.ToolsYj (checkBits) where+module Data.Bits.ToolsYj (checkBits, bitsList) where  import Data.Bits  checkBits :: Bits bs => bs -> bs -> Bool checkBits wnt = (== wnt) . (.&. wnt)++bitsList :: FiniteBits bs => bs -> [bs]+bitsList bs =+	filter (/= zeroBits) $ map ((bs .&.) . bit) [0 .. finiteBitSize bs - 1]
tools-yj.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           tools-yj-version:        0.1.0.19+version:        0.1.0.20 synopsis:       Tribial tools description:    Please see the README on GitHub at <https://github.com/YoshikuniJujo/tools-yj#readme> category:       Tools