set-cover-0.0.8: Solve exact set cover problems like Sudoku, 8 Queens, Soma Cube, Tetris Cube
Math.SetCover.BitPosition
class C bits => C bits where Source #
Minimal complete definition
bit, bitPositionPlain, unpack
Methods
unpack :: Set bits -> [Int] Source #
Instances
bit :: Int -> Integer
bitPositionPlain :: Integer -> Int
unpack :: Set Integer -> [Int] Source #
bit :: Int -> Word8
bitPositionPlain :: Word8 -> Int
unpack :: Set Word8 -> [Int] Source #
bit :: Int -> Word16
bitPositionPlain :: Word16 -> Int
unpack :: Set Word16 -> [Int] Source #
bit :: Int -> Word32
bitPositionPlain :: Word32 -> Int
unpack :: Set Word32 -> [Int] Source #
bit :: Int -> Word64
bitPositionPlain :: Word64 -> Int
unpack :: Set Word64 -> [Int] Source #
Instantiating a with Integer will end badly because it has no fixed size!
a
Integer
bit :: Int -> Sum a b
bitPositionPlain :: Sum a b -> Int
unpack :: Set (Sum a b) -> [Int] Source #
unpack :: C bits => Set bits -> [Int] Source #
singleton :: C bits => Int -> Set bits Source #
bitPosition :: C bits => Set bits -> Int Source #