1
Fork 0

Add Bits and Word packages.

master
Joshua Potter 2018-02-28 21:15:20 -08:00
parent a82f99a5c5
commit 639a17b4dd
1 changed files with 34 additions and 0 deletions

View File

@ -105,6 +105,32 @@ import Control.Monad.Trans.Writer as X
, WriterT, WriterT(WriterT), runWriterT
)
import Data.Bits as X
( Bits
, (.&.)
, (.|.)
, bit
, bitSize
, bitSizeMaybe
, clearBit
, complement
, complementBit
, isSigned
, popCount
, rotate
, rotateL
, rotateR
, setBit
, shift
, shiftL
, shiftR
, testBit
, unsafeShiftL
, unsafeShiftR
, xor
, zeroBits
)
import Data.Bool as X
( Bool, Bool(False), Bool(True)
, (&&)
@ -198,6 +224,14 @@ import Data.Traversable as X
( Traversable, mapM, sequence, sequenceA, traverse
)
import Data.Word as X
( Word
, Word8
, Word16
, Word32
, Word64
)
import GHC.Enum as X
( Bounded, maxBound, minBound
, Enum