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

Safe HaskellSafe
LanguageHaskell98

Math.SetCover.Bit

Synopsis

Documentation

class Eq bits => C bits where Source

This class is similar to the Bits class from the base package but adds keepMinimum and misses the rotation stuff.

Methods

empty :: bits Source

complement, keepMinimum :: bits -> bits Source

xor, (.&.), (.|.) :: bits -> bits -> bits infixl 7 .&.infixl 5 .|. Source

data Sum a b Source

Constructors

Sum !a !b 

Instances

(Eq a, Eq b) => Eq (Sum a b) Source 
(Show a, Show b) => Show (Sum a b) Source 
(C a, C b) => C (Sum a b) Source 

bitLeft :: (Bits a, C b) => Int -> Sum a b Source

bitRight :: (C a, Bits b) => Int -> Sum a b Source