set-cover-0.0.9: Solve exact set cover problems like Sudoku, 8 Queens, Soma Cube, Tetris Cube

Safe HaskellSafe
LanguageHaskell98

Math.SetCover.BitPosition

Documentation

class C bits => C bits where Source #

Minimal complete definition

bit, bitPositionPlain, unpack

Methods

unpack :: Set bits -> [Int] Source #

Instances

C Integer Source # 
C Word8 Source # 
C Word16 Source # 
C Word32 Source # 
C Word64 Source # 
(Integral a, C a, C b) => C (Sum a b) Source #

Instantiating a with Integer will end badly because it has no fixed size!

Methods

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 #