sized-types-0.5.0: Sized types in Haskell using the GHC Nat kind.

Safe HaskellNone
LanguageHaskell98

Data.Sized.Unsigned

Description

Unsigned, fixed sized numbers.

Copyright: (c) 2009 University of Kansas License: BSD3

Maintainer: Andy Gill andygill@ku.edu Stability: unstable Portability: ghc

Synopsis

Documentation

data Unsigned ix Source

Instances

SingI Nat ix => Bounded (Unsigned ix) 
SingI Nat ix => Enum (Unsigned ix) 
Eq (Unsigned ix) 
SingI Nat ix => Integral (Unsigned ix) 
SingI Nat ix => Num (Unsigned ix) 
Ord (Unsigned ix) 
SingI Nat ix => Read (Unsigned ix) 
SingI Nat ix => Real (Unsigned ix) 
Show (Unsigned ix) 
SingI Nat ix => Ix (Unsigned ix) 
SingI Nat ix => Bits (Unsigned ix) 
SingI Nat ix => FiniteBits (Unsigned ix) 
Typeable (Nat -> *) Unsigned 

toVector :: forall ix. SingI ix => Unsigned ix -> Vector ix Bool Source

type U1 = Unsigned 1 Source

common; numerically boolean.

type U2 = Unsigned 2 Source

type U3 = Unsigned 3 Source

type U4 = Unsigned 4 Source

type U5 = Unsigned 5 Source

type U6 = Unsigned 6 Source

type U7 = Unsigned 7 Source

type U8 = Unsigned 8 Source

type U9 = Unsigned 9 Source

type U10 = Unsigned 10 Source

type U11 = Unsigned 11 Source

type U12 = Unsigned 12 Source

type U13 = Unsigned 13 Source

type U14 = Unsigned 14 Source

type U15 = Unsigned 15 Source

type U16 = Unsigned 16 Source

type U17 = Unsigned 17 Source

type U18 = Unsigned 18 Source

type U19 = Unsigned 19 Source

type U20 = Unsigned 20 Source

type U21 = Unsigned 21 Source

type U22 = Unsigned 22 Source

type U23 = Unsigned 23 Source

type U24 = Unsigned 24 Source

type U25 = Unsigned 25 Source

type U26 = Unsigned 26 Source

type U27 = Unsigned 27 Source

type U28 = Unsigned 28 Source

type U29 = Unsigned 29 Source

type U30 = Unsigned 30 Source

type U31 = Unsigned 31 Source

type U32 = Unsigned 32 Source