battleship-combinatorics-0.0.0.2: Compute number of possible arrangements in the battleship game
Combinatorics.Battleship.Count.Counter
class C a Source #
Minimal complete definition
zero, one, add
Defined in Combinatorics.Battleship.Count.Counter
Methods
zero :: Word8 Source #
one :: Word8 Source #
add :: Word8 -> Word8 -> Word8 Source #
zero :: Word32 Source #
one :: Word32 Source #
add :: Word32 -> Word32 -> Word32 Source #
zero :: Word64 Source #
one :: Word64 Source #
add :: Word64 -> Word64 -> Word64 Source #
zero :: Composed hi lo Source #
one :: Composed hi lo Source #
add :: Composed hi lo -> Composed hi lo -> Composed hi lo Source #
Defined in Combinatorics.Battleship.Count.ShortenShip.Distribution
zero :: Distr w h a Source #
one :: Distr w h a Source #
add :: Distr w h a -> Distr w h a -> Distr w h a Source #
data Composed hi lo Source #
(==) :: Composed hi lo -> Composed hi lo -> Bool #
(/=) :: Composed hi lo -> Composed hi lo -> Bool #
compare :: Composed hi lo -> Composed hi lo -> Ordering #
(<) :: Composed hi lo -> Composed hi lo -> Bool #
(<=) :: Composed hi lo -> Composed hi lo -> Bool #
(>) :: Composed hi lo -> Composed hi lo -> Bool #
(>=) :: Composed hi lo -> Composed hi lo -> Bool #
max :: Composed hi lo -> Composed hi lo -> Composed hi lo #
min :: Composed hi lo -> Composed hi lo -> Composed hi lo #
showsPrec :: Int -> Composed hi lo -> ShowS #
show :: Composed hi lo -> String #
showList :: [Composed hi lo] -> ShowS #
arbitrary :: Gen (Composed a b) #
shrink :: Composed a b -> [Composed a b] #
This instance expects that there is no need for padding for alignment
sizeOf :: Composed a b -> Int #
alignment :: Composed a b -> Int #
peekElemOff :: Ptr (Composed a b) -> Int -> IO (Composed a b) #
pokeElemOff :: Ptr (Composed a b) -> Int -> Composed a b -> IO () #
peekByteOff :: Ptr b0 -> Int -> IO (Composed a b) #
pokeByteOff :: Ptr b0 -> Int -> Composed a b -> IO () #
peek :: Ptr (Composed a b) -> IO (Composed a b) #
poke :: Ptr (Composed a b) -> Composed a b -> IO () #
zero, one :: C a => a Source #
add :: C a => a -> a -> a Source #
sum :: C a => [a] -> a Source #
toInteger :: Integ a => a -> Integer Source #
propAdd :: Composed (Composed Word64 Word32) (Composed Word32 Word32) -> Composed (Composed Word64 Word32) (Composed Word32 Word32) -> Bool Source #