Module

Data.Shift

Package
purescript-numerics
Repository
proclivis/purescript-numerics

A Shift typeclass that defines bitwise shifting operations.

#Shift Source

class (Bounded a, Ord a) <= Shift a  where

The Shift typeclass that requires the internal type to be both Bounded and Ord.

Members

  • shr :: a -> UInt -> a

    Shift bits right, zero fill

  • zshr :: a -> UInt -> a

    Shift bits right, one fill

  • shl :: a -> UInt -> a

    Shift bits left, zero fill

  • cshr :: a -> UInt -> a

    Shift bits right, circular

  • cshl :: a -> UInt -> a

    Shift bits left, circular