copilot-language-2.2.0: A Haskell-embedded DSL for monitoring hard real-time distributed systems.

Safe HaskellTrustworthy
LanguageHaskell2010

Copilot.Language.Operators.BitWise

Description

Bitwise operators.

Synopsis

Documentation

class Eq a => Bits a where

The Bits class defines bitwise operations over integral types.

  • Bits are numbered from 0 with bit 0 being the least significant bit.

Methods

(.&.) :: a -> a -> a infixl 7

Bitwise "and"

(.|.) :: a -> a -> a infixl 5

Bitwise "or"

complement :: a -> a

Reverse all the bits in the argument

(.^.) :: Bits a => a -> a -> a Source

(.<<.) :: (Bits a, Typed a, Typed b, Integral b) => Stream a -> Stream b -> Stream a Source

(.>>.) :: (Bits a, Typed a, Typed b, Integral b) => Stream a -> Stream b -> Stream a Source