~ubuntu-branches/ubuntu/precise/ghc/precise

« back to all changes in this revision

Viewing changes to libraries/haskell2010/Data/Bits.hs

  • Committer: Bazaar Package Importer
  • Author(s): Joachim Breitner
  • Date: 2011-01-17 12:49:24 UTC
  • Revision ID: james.westby@ubuntu.com-20110117124924-do1pym1jlf5o636m
Tags: upstream-7.0.1
ImportĀ upstreamĀ versionĀ 7.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- |
 
2
-- This module defines bitwise operations for signed and unsigned
 
3
-- integers.
 
4
 
 
5
module Data.Bits (
 
6
  Bits(
 
7
    (.&.), (.|.), xor, -- :: a -> a -> a
 
8
    complement,        -- :: a -> a
 
9
    shift,             -- :: a -> Int -> a
 
10
    rotate,            -- :: a -> Int -> a
 
11
    bit,               -- :: Int -> a
 
12
    setBit,            -- :: a -> Int -> a
 
13
    clearBit,          -- :: a -> Int -> a
 
14
    complementBit,     -- :: a -> Int -> a
 
15
    testBit,           -- :: a -> Int -> Bool
 
16
    bitSize,           -- :: a -> Int
 
17
    isSigned,          -- :: a -> Bool
 
18
    shiftL, shiftR,    -- :: a -> Int -> a
 
19
    rotateL, rotateR   -- :: a -> Int -> a
 
20
  )
 
21
  ) where
 
22
import "base" Data.Bits