hw-prim-0.4.0.5: Primitive functions and data types

Safe HaskellSafe
LanguageHaskell2010

HaskellWorks.Data.Sign

Documentation

class Sign a where Source #

Minimal complete definition

sign

Associated Types

type SignOf a Source #

Methods

sign :: a -> SignOf a Source #

Instances

Sign Int Source # 

Associated Types

type SignOf Int :: * Source #

Methods

sign :: Int -> SignOf Int Source #

Sign Int8 Source # 

Associated Types

type SignOf Int8 :: * Source #

Methods

sign :: Int8 -> SignOf Int8 Source #

Sign Int16 Source # 

Associated Types

type SignOf Int16 :: * Source #

Methods

sign :: Int16 -> SignOf Int16 Source #

Sign Int32 Source # 

Associated Types

type SignOf Int32 :: * Source #

Methods

sign :: Int32 -> SignOf Int32 Source #

Sign Int64 Source # 

Associated Types

type SignOf Int64 :: * Source #

Methods

sign :: Int64 -> SignOf Int64 Source #

Sign Word Source # 

Associated Types

type SignOf Word :: * Source #

Methods

sign :: Word -> SignOf Word Source #

Sign Word8 Source # 

Associated Types

type SignOf Word8 :: * Source #

Methods

sign :: Word8 -> SignOf Word8 Source #

Sign Word16 Source # 

Associated Types

type SignOf Word16 :: * Source #

Sign Word32 Source # 

Associated Types

type SignOf Word32 :: * Source #

Sign Word64 Source # 

Associated Types

type SignOf Word64 :: * Source #