foundation-0.0.23: Alternative prelude with batteries and no dependencies

Foundation

Description

I tried to picture clusters of information As they moved through the computer What do they look like?

Alternative Prelude

Synopsis

# Standard

## Operators

($) :: (a -> b) -> a -> b infixr 0 # Application operator. This operator is redundant, since ordinary application (f x) means the same as (f$ x). However, $has low, right-associative binding precedence, so it sometimes allows parentheses to be omitted; for example: f$ g $h x = f (g (h x)) It is also useful in higher-order situations, such as map ($ 0) xs, or zipWith ($) fs xs. Note that ($) is levity-polymorphic in its result type, so that foo $True where foo :: Bool -> Int# is well-typed ($!) :: (a -> b) -> a -> b infixr 0 #

Strict (call-by-value) application operator. It takes a function and an argument, evaluates the argument to weak head normal form (WHNF), then calls the function with that value.

(&&) :: Bool -> Bool -> Bool infixr 3 #

Boolean "and"

(||) :: Bool -> Bool -> Bool infixr 2 #

Boolean "or"

(.) :: Category cat => cat b c -> cat a b -> cat a c infixr 9 #

morphism composition

## Functions

not :: Bool -> Bool #

Boolean "not"

otherwise is defined as the value True. It helps to make guards more readable. eg.

f x | x < 0     = ...
| otherwise = ...

data Tuple2 a b Source #

Strict tuple (a,b)

Constructors

 Tuple2 !a !b
Instances
 Source # Instance detailsDefined in Foundation.Tuple Methodsbimap :: (a -> b) -> (c -> d) -> Tuple2 a c -> Tuple2 b d #first :: (a -> b) -> Tuple2 a c -> Tuple2 b c #second :: (b -> c) -> Tuple2 a b -> Tuple2 a c # Nthable 1 (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple.Nth Associated Typestype NthTy 1 (Tuple2 a b) :: Type Source # Methodsnth :: proxy 1 -> Tuple2 a b -> NthTy 1 (Tuple2 a b) Source # Nthable 2 (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple.Nth Associated Typestype NthTy 2 (Tuple2 a b) :: Type Source # Methodsnth :: proxy 2 -> Tuple2 a b -> NthTy 2 (Tuple2 a b) Source # (Eq a, Eq b) => Eq (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple Methods(==) :: Tuple2 a b -> Tuple2 a b -> Bool #(/=) :: Tuple2 a b -> Tuple2 a b -> Bool # (Data a, Data b) => Data (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple Methodsgfoldl :: (forall d b0. Data d => c (d -> b0) -> d -> c b0) -> (forall g. g -> c g) -> Tuple2 a b -> c (Tuple2 a b) #gunfold :: (forall b0 r. Data b0 => c (b0 -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Tuple2 a b) #toConstr :: Tuple2 a b -> Constr #dataTypeOf :: Tuple2 a b -> DataType #dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Tuple2 a b)) #dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Tuple2 a b)) #gmapT :: (forall b0. Data b0 => b0 -> b0) -> Tuple2 a b -> Tuple2 a b #gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Tuple2 a b -> r #gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Tuple2 a b -> r #gmapQ :: (forall d. Data d => d -> u) -> Tuple2 a b -> [u] #gmapQi :: Int -> (forall d. Data d => d -> u) -> Tuple2 a b -> u #gmapM :: Monad m => (forall d. Data d => d -> m d) -> Tuple2 a b -> m (Tuple2 a b) #gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Tuple2 a b -> m (Tuple2 a b) #gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Tuple2 a b -> m (Tuple2 a b) # (Ord a, Ord b) => Ord (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple Methodscompare :: Tuple2 a b -> Tuple2 a b -> Ordering #(<) :: Tuple2 a b -> Tuple2 a b -> Bool #(<=) :: Tuple2 a b -> Tuple2 a b -> Bool #(>) :: Tuple2 a b -> Tuple2 a b -> Bool #(>=) :: Tuple2 a b -> Tuple2 a b -> Bool #max :: Tuple2 a b -> Tuple2 a b -> Tuple2 a b #min :: Tuple2 a b -> Tuple2 a b -> Tuple2 a b # (Show a, Show b) => Show (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple MethodsshowsPrec :: Int -> Tuple2 a b -> ShowS #show :: Tuple2 a b -> String #showList :: [Tuple2 a b] -> ShowS # Generic (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype Rep (Tuple2 a b) :: Type -> Type # Methodsfrom :: Tuple2 a b -> Rep (Tuple2 a b) x #to :: Rep (Tuple2 a b) x -> Tuple2 a b # (NormalForm a, NormalForm b) => NormalForm (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple MethodstoNormalForm :: Tuple2 a b -> () # Sndable (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductSecond (Tuple2 a b) :: Type Source # Methodssnd :: Tuple2 a b -> ProductSecond (Tuple2 a b) Source # Fstable (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductFirst (Tuple2 a b) :: Type Source # Methodsfst :: Tuple2 a b -> ProductFirst (Tuple2 a b) Source # (Hashable a, Hashable b) => Hashable (Tuple2 a b) Source # Instance detailsDefined in Foundation.Hashing.Hashable MethodshashMix :: Hasher st => Tuple2 a b -> st -> st Source # type NthTy 1 (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple.Nth type NthTy 1 (Tuple2 a b) = a type NthTy 2 (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple.Nth type NthTy 2 (Tuple2 a b) = b type Rep (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple type Rep (Tuple2 a b) = D1 (MetaData "Tuple2" "Foundation.Tuple" "foundation-0.0.23-DlcbMFpy6pi5za90bHsb6b" False) (C1 (MetaCons "Tuple2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 a) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 b))) type ProductSecond (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple type ProductSecond (Tuple2 a b) = b type ProductFirst (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple type ProductFirst (Tuple2 a b) = a

data Tuple3 a b c Source #

Strict tuple (a,b,c)

Constructors

 Tuple3 !a !b !c
Instances
 Nthable 1 (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple.Nth Associated Typestype NthTy 1 (Tuple3 a b c) :: Type Source # Methodsnth :: proxy 1 -> Tuple3 a b c -> NthTy 1 (Tuple3 a b c) Source # Nthable 2 (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple.Nth Associated Typestype NthTy 2 (Tuple3 a b c) :: Type Source # Methodsnth :: proxy 2 -> Tuple3 a b c -> NthTy 2 (Tuple3 a b c) Source # Nthable 3 (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple.Nth Associated Typestype NthTy 3 (Tuple3 a b c) :: Type Source # Methodsnth :: proxy 3 -> Tuple3 a b c -> NthTy 3 (Tuple3 a b c) Source # (Eq a, Eq b, Eq c) => Eq (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple Methods(==) :: Tuple3 a b c -> Tuple3 a b c -> Bool #(/=) :: Tuple3 a b c -> Tuple3 a b c -> Bool # (Data a, Data b, Data c) => Data (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple Methodsgfoldl :: (forall d b0. Data d => c0 (d -> b0) -> d -> c0 b0) -> (forall g. g -> c0 g) -> Tuple3 a b c -> c0 (Tuple3 a b c) #gunfold :: (forall b0 r. Data b0 => c0 (b0 -> r) -> c0 r) -> (forall r. r -> c0 r) -> Constr -> c0 (Tuple3 a b c) #toConstr :: Tuple3 a b c -> Constr #dataTypeOf :: Tuple3 a b c -> DataType #dataCast1 :: Typeable t => (forall d. Data d => c0 (t d)) -> Maybe (c0 (Tuple3 a b c)) #dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c0 (t d e)) -> Maybe (c0 (Tuple3 a b c)) #gmapT :: (forall b0. Data b0 => b0 -> b0) -> Tuple3 a b c -> Tuple3 a b c #gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Tuple3 a b c -> r #gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Tuple3 a b c -> r #gmapQ :: (forall d. Data d => d -> u) -> Tuple3 a b c -> [u] #gmapQi :: Int -> (forall d. Data d => d -> u) -> Tuple3 a b c -> u #gmapM :: Monad m => (forall d. Data d => d -> m d) -> Tuple3 a b c -> m (Tuple3 a b c) #gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Tuple3 a b c -> m (Tuple3 a b c) #gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Tuple3 a b c -> m (Tuple3 a b c) # (Ord a, Ord b, Ord c) => Ord (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple Methodscompare :: Tuple3 a b c -> Tuple3 a b c -> Ordering #(<) :: Tuple3 a b c -> Tuple3 a b c -> Bool #(<=) :: Tuple3 a b c -> Tuple3 a b c -> Bool #(>) :: Tuple3 a b c -> Tuple3 a b c -> Bool #(>=) :: Tuple3 a b c -> Tuple3 a b c -> Bool #max :: Tuple3 a b c -> Tuple3 a b c -> Tuple3 a b c #min :: Tuple3 a b c -> Tuple3 a b c -> Tuple3 a b c # (Show a, Show b, Show c) => Show (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple MethodsshowsPrec :: Int -> Tuple3 a b c -> ShowS #show :: Tuple3 a b c -> String #showList :: [Tuple3 a b c] -> ShowS # Generic (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype Rep (Tuple3 a b c) :: Type -> Type # Methodsfrom :: Tuple3 a b c -> Rep (Tuple3 a b c) x #to :: Rep (Tuple3 a b c) x -> Tuple3 a b c # (NormalForm a, NormalForm b, NormalForm c) => NormalForm (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple MethodstoNormalForm :: Tuple3 a b c -> () # Thdable (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductThird (Tuple3 a b c) :: Type Source # Methodsthd :: Tuple3 a b c -> ProductThird (Tuple3 a b c) Source # Sndable (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductSecond (Tuple3 a b c) :: Type Source # Methodssnd :: Tuple3 a b c -> ProductSecond (Tuple3 a b c) Source # Fstable (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductFirst (Tuple3 a b c) :: Type Source # Methodsfst :: Tuple3 a b c -> ProductFirst (Tuple3 a b c) Source # (Hashable a, Hashable b, Hashable c) => Hashable (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Hashing.Hashable MethodshashMix :: Hasher st => Tuple3 a b c -> st -> st Source # type NthTy 1 (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple.Nth type NthTy 1 (Tuple3 a b c) = a type NthTy 2 (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple.Nth type NthTy 2 (Tuple3 a b c) = b type NthTy 3 (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple.Nth type NthTy 3 (Tuple3 a b c) = c type Rep (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple type Rep (Tuple3 a b c) = D1 (MetaData "Tuple3" "Foundation.Tuple" "foundation-0.0.23-DlcbMFpy6pi5za90bHsb6b" False) (C1 (MetaCons "Tuple3" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 a) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 b) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 c)))) type ProductThird (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple type ProductThird (Tuple3 a b c) = c type ProductSecond (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple type ProductSecond (Tuple3 a b c) = b type ProductFirst (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple type ProductFirst (Tuple3 a b c) = a

data Tuple4 a b c d Source #

Strict tuple (a,b,c,d)

Constructors

 Tuple4 !a !b !c !d
Instances
 Nthable 1 (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple.Nth Associated Typestype NthTy 1 (Tuple4 a b c d) :: Type Source # Methodsnth :: proxy 1 -> Tuple4 a b c d -> NthTy 1 (Tuple4 a b c d) Source # Nthable 2 (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple.Nth Associated Typestype NthTy 2 (Tuple4 a b c d) :: Type Source # Methodsnth :: proxy 2 -> Tuple4 a b c d -> NthTy 2 (Tuple4 a b c d) Source # Nthable 3 (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple.Nth Associated Typestype NthTy 3 (Tuple4 a b c d) :: Type Source # Methodsnth :: proxy 3 -> Tuple4 a b c d -> NthTy 3 (Tuple4 a b c d) Source # Nthable 4 (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple.Nth Associated Typestype NthTy 4 (Tuple4 a b c d) :: Type Source # Methodsnth :: proxy 4 -> Tuple4 a b c d -> NthTy 4 (Tuple4 a b c d) Source # (Eq a, Eq b, Eq c, Eq d) => Eq (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple Methods(==) :: Tuple4 a b c d -> Tuple4 a b c d -> Bool #(/=) :: Tuple4 a b c d -> Tuple4 a b c d -> Bool # (Data a, Data b, Data c, Data d) => Data (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple Methodsgfoldl :: (forall d0 b0. Data d0 => c0 (d0 -> b0) -> d0 -> c0 b0) -> (forall g. g -> c0 g) -> Tuple4 a b c d -> c0 (Tuple4 a b c d) #gunfold :: (forall b0 r. Data b0 => c0 (b0 -> r) -> c0 r) -> (forall r. r -> c0 r) -> Constr -> c0 (Tuple4 a b c d) #toConstr :: Tuple4 a b c d -> Constr #dataTypeOf :: Tuple4 a b c d -> DataType #dataCast1 :: Typeable t => (forall d0. Data d0 => c0 (t d0)) -> Maybe (c0 (Tuple4 a b c d)) #dataCast2 :: Typeable t => (forall d0 e. (Data d0, Data e) => c0 (t d0 e)) -> Maybe (c0 (Tuple4 a b c d)) #gmapT :: (forall b0. Data b0 => b0 -> b0) -> Tuple4 a b c d -> Tuple4 a b c d #gmapQl :: (r -> r' -> r) -> r -> (forall d0. Data d0 => d0 -> r') -> Tuple4 a b c d -> r #gmapQr :: (r' -> r -> r) -> r -> (forall d0. Data d0 => d0 -> r') -> Tuple4 a b c d -> r #gmapQ :: (forall d0. Data d0 => d0 -> u) -> Tuple4 a b c d -> [u] #gmapQi :: Int -> (forall d0. Data d0 => d0 -> u) -> Tuple4 a b c d -> u #gmapM :: Monad m => (forall d0. Data d0 => d0 -> m d0) -> Tuple4 a b c d -> m (Tuple4 a b c d) #gmapMp :: MonadPlus m => (forall d0. Data d0 => d0 -> m d0) -> Tuple4 a b c d -> m (Tuple4 a b c d) #gmapMo :: MonadPlus m => (forall d0. Data d0 => d0 -> m d0) -> Tuple4 a b c d -> m (Tuple4 a b c d) # (Ord a, Ord b, Ord c, Ord d) => Ord (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple Methodscompare :: Tuple4 a b c d -> Tuple4 a b c d -> Ordering #(<) :: Tuple4 a b c d -> Tuple4 a b c d -> Bool #(<=) :: Tuple4 a b c d -> Tuple4 a b c d -> Bool #(>) :: Tuple4 a b c d -> Tuple4 a b c d -> Bool #(>=) :: Tuple4 a b c d -> Tuple4 a b c d -> Bool #max :: Tuple4 a b c d -> Tuple4 a b c d -> Tuple4 a b c d #min :: Tuple4 a b c d -> Tuple4 a b c d -> Tuple4 a b c d # (Show a, Show b, Show c, Show d) => Show (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple MethodsshowsPrec :: Int -> Tuple4 a b c d -> ShowS #show :: Tuple4 a b c d -> String #showList :: [Tuple4 a b c d] -> ShowS # Generic (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype Rep (Tuple4 a b c d) :: Type -> Type # Methodsfrom :: Tuple4 a b c d -> Rep (Tuple4 a b c d) x #to :: Rep (Tuple4 a b c d) x -> Tuple4 a b c d # (NormalForm a, NormalForm b, NormalForm c, NormalForm d) => NormalForm (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple MethodstoNormalForm :: Tuple4 a b c d -> () # Thdable (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductThird (Tuple4 a b c d) :: Type Source # Methodsthd :: Tuple4 a b c d -> ProductThird (Tuple4 a b c d) Source # Sndable (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductSecond (Tuple4 a b c d) :: Type Source # Methodssnd :: Tuple4 a b c d -> ProductSecond (Tuple4 a b c d) Source # Fstable (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductFirst (Tuple4 a b c d) :: Type Source # Methodsfst :: Tuple4 a b c d -> ProductFirst (Tuple4 a b c d) Source # (Hashable a, Hashable b, Hashable c, Hashable d) => Hashable (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Hashing.Hashable MethodshashMix :: Hasher st => Tuple4 a b c d -> st -> st Source # type NthTy 1 (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple.Nth type NthTy 1 (Tuple4 a b c d) = a type NthTy 2 (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple.Nth type NthTy 2 (Tuple4 a b c d) = b type NthTy 3 (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple.Nth type NthTy 3 (Tuple4 a b c d) = c type NthTy 4 (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple.Nth type NthTy 4 (Tuple4 a b c d) = d type Rep (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple type Rep (Tuple4 a b c d) = D1 (MetaData "Tuple4" "Foundation.Tuple" "foundation-0.0.23-DlcbMFpy6pi5za90bHsb6b" False) (C1 (MetaCons "Tuple4" PrefixI False) ((S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 a) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 b)) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 c) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 d)))) type ProductThird (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple type ProductThird (Tuple4 a b c d) = c type ProductSecond (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple type ProductSecond (Tuple4 a b c d) = b type ProductFirst (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple type ProductFirst (Tuple4 a b c d) = a

class Fstable a where Source #

Class of product types that have a first element

Associated Types

type ProductFirst a Source #

Methods

fst :: a -> ProductFirst a Source #

Instances
 Fstable (a, b) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductFirst (a, b) :: Type Source # Methodsfst :: (a, b) -> ProductFirst (a, b) Source # Fstable (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductFirst (Tuple2 a b) :: Type Source # Methodsfst :: Tuple2 a b -> ProductFirst (Tuple2 a b) Source # Fstable (a, b, c) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductFirst (a, b, c) :: Type Source # Methodsfst :: (a, b, c) -> ProductFirst (a, b, c) Source # Fstable (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductFirst (Tuple3 a b c) :: Type Source # Methodsfst :: Tuple3 a b c -> ProductFirst (Tuple3 a b c) Source # Fstable (a, b, c, d) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductFirst (a, b, c, d) :: Type Source # Methodsfst :: (a, b, c, d) -> ProductFirst (a, b, c, d) Source # Fstable (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductFirst (Tuple4 a b c d) :: Type Source # Methodsfst :: Tuple4 a b c d -> ProductFirst (Tuple4 a b c d) Source #

class Sndable a where Source #

Class of product types that have a second element

Associated Types

type ProductSecond a Source #

Methods

snd :: a -> ProductSecond a Source #

Instances
 Sndable (a, b) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductSecond (a, b) :: Type Source # Methodssnd :: (a, b) -> ProductSecond (a, b) Source # Sndable (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductSecond (Tuple2 a b) :: Type Source # Methodssnd :: Tuple2 a b -> ProductSecond (Tuple2 a b) Source # Sndable (a, b, c) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductSecond (a, b, c) :: Type Source # Methodssnd :: (a, b, c) -> ProductSecond (a, b, c) Source # Sndable (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductSecond (Tuple3 a b c) :: Type Source # Methodssnd :: Tuple3 a b c -> ProductSecond (Tuple3 a b c) Source # Sndable (a, b, c, d) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductSecond (a, b, c, d) :: Type Source # Methodssnd :: (a, b, c, d) -> ProductSecond (a, b, c, d) Source # Sndable (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductSecond (Tuple4 a b c d) :: Type Source # Methodssnd :: Tuple4 a b c d -> ProductSecond (Tuple4 a b c d) Source #

class Thdable a where Source #

Class of product types that have a third element

Associated Types

type ProductThird a Source #

Methods

thd :: a -> ProductThird a Source #

Instances
 Thdable (a, b, c) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductThird (a, b, c) :: Type Source # Methodsthd :: (a, b, c) -> ProductThird (a, b, c) Source # Thdable (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductThird (Tuple3 a b c) :: Type Source # Methodsthd :: Tuple3 a b c -> ProductThird (Tuple3 a b c) Source # Thdable (a, b, c, d) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductThird (a, b, c, d) :: Type Source # Methodsthd :: (a, b, c, d) -> ProductThird (a, b, c, d) Source # Thdable (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple Associated Typestype ProductThird (Tuple4 a b c d) :: Type Source # Methodsthd :: Tuple4 a b c d -> ProductThird (Tuple4 a b c d) Source #

id :: Category cat => cat a a #

the identity morphism

maybe :: b -> (a -> b) -> Maybe a -> b #

The maybe function takes a default value, a function, and a Maybe value. If the Maybe value is Nothing, the function returns the default value. Otherwise, it applies the function to the value inside the Just and returns the result.

#### Examples

Expand

Basic usage:

>>> maybe False odd (Just 3)
True
>>> maybe False odd Nothing
False

Read an integer from a string using readMaybe. If we succeed, return twice the integer; that is, apply (*2) to it. If instead we fail to parse an integer, return 0 by default:

>>> maybe 0 (*2) (readMaybe "5")
10
>>> maybe 0 (*2) (readMaybe "")
0

Apply show to a Maybe Int. If we have Just n, we want to show the underlying Int n. But if we have Nothing, we return the empty string instead of (for example) "Nothing":

>>> maybe "" show (Just 5)
"5"
>>> maybe "" show Nothing
""

either :: (a -> c) -> (b -> c) -> Either a b -> c #

Case analysis for the Either type. If the value is Left a, apply the first function to a; if it is Right b, apply the second function to b.

#### Examples

Expand

We create two values of type Either String Int, one using the Left constructor and another using the Right constructor. Then we apply "either" the length function (if we have a String) or the "times-two" function (if we have an Int):

>>> let s = Left "foo" :: Either String Int
>>> let n = Right 3 :: Either String Int
>>> either length (*2) s
3
>>> either length (*2) n
6

flip :: (a -> b -> c) -> b -> a -> c #

flip f takes its (first) two arguments in the reverse order of f.

>>> flip (++) "hello" "world"
"worldhello"

const :: a -> b -> a #

const x is a unary function which evaluates to x for all inputs.

>>> const 42 "hello"
42
>>> map (const 42) [0..3]
[42,42,42,42]

error :: HasCallStack => String -> a #

stop execution and displays an error message

putStr :: String -> IO () Source #

Print a string to standard output

putStrLn :: String -> IO () Source #

Print a string with a newline to standard output

getArgs :: IO [String] #

Returns a list of the program's command line arguments (not including the program name).

uncurry :: (a -> b -> c) -> (a, b) -> c #

uncurry converts a curried function to a function on pairs.

#### Examples

Expand
>>> uncurry (+) (1,2)
3
>>> uncurry ($) (show, 1) "1" >>> map (uncurry max) [(1,2), (3,4), (6,8)] [2,4,8] curry :: ((a, b) -> c) -> a -> b -> c # curry converts an uncurried function to a curried function. #### Examples Expand >>> curry fst 1 2 1 swap :: (a, b) -> (b, a) # Swap the components of a pair. until :: (a -> Bool) -> (a -> a) -> a -> a # until p f yields the result of applying f until p holds. asTypeOf :: a -> a -> a # asTypeOf is a type-restricted version of const. It is usually used as an infix operator, and its typing forces its first argument (which is usually overloaded) to have the same type as the second. undefined :: HasCallStack => a # A special case of error. It is expected that compilers will recognize this and insert error messages which are more appropriate to the context in which undefined appears. seq :: a -> b -> b # The value of seq a b is bottom if a is bottom, and otherwise equal to b. In other words, it evaluates the first argument a to weak head normal form (WHNF). seq is usually introduced to improve performance by avoiding unneeded laziness. A note on evaluation order: the expression seq a b does not guarantee that a will be evaluated before b. The only guarantee given by seq is that the both a and b will be evaluated before seq returns a value. In particular, this means that b may be evaluated before a. If you need to guarantee a specific order of evaluation, you must use the function pseq from the "parallel" package. class NormalForm a # Data that can be fully evaluated in Normal Form Minimal complete definition toNormalForm Instances  Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Bool -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Char -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Double -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Float -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Int -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Int8 -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Int16 -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Int32 -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Int64 -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Integer -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Natural -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Word -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Word8 -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Word16 -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Word32 -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Word64 -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: () -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CChar -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CSChar -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CUChar -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CShort -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CUShort -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CInt -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CUInt -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CLong -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CULong -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CLLong -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CULLong -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CFloat -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CDouble -> () # Instance detailsDefined in Basement.UTF8.Base MethodstoNormalForm :: String -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Word256 -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Word128 -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Char7 -> () # Source # Instance detailsDefined in Foundation.Format.CSV.Types MethodstoNormalForm :: CSV -> () # Source # Instance detailsDefined in Foundation.Format.CSV.Types MethodstoNormalForm :: Row -> () # Source # Instance detailsDefined in Foundation.Format.CSV.Types MethodstoNormalForm :: Escaping -> () # Source # Instance detailsDefined in Foundation.Format.CSV.Types MethodstoNormalForm :: Field -> () # Source # Instance detailsDefined in Foundation.Network.IPv6 MethodstoNormalForm :: IPv6 -> () # Source # Instance detailsDefined in Foundation.Network.IPv4 MethodstoNormalForm :: IPv4 -> () # Source # Instance detailsDefined in Foundation.UUID MethodstoNormalForm :: UUID -> () # NormalForm a => NormalForm [a] Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: [a] -> () # NormalForm a => NormalForm (Maybe a) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Maybe a -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Ptr a -> () # NormalForm a => NormalForm (Array a) Instance detailsDefined in Basement.BoxedArray MethodstoNormalForm :: Array a -> () # NormalForm (UArray ty) Instance detailsDefined in Basement.UArray.Base MethodstoNormalForm :: UArray ty -> () # NormalForm (Block ty) Instance detailsDefined in Basement.Block.Base MethodstoNormalForm :: Block ty -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Offset a -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: CountOf a -> () # Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Zn64 n -> () # NormalForm (Zn n) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Zn n -> () # NormalForm a => NormalForm (LE a) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: LE a -> () # NormalForm a => NormalForm (BE a) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: BE a -> () # Source # Instance detailsDefined in Foundation.Array.Chunked.Unboxed MethodstoNormalForm :: ChunkedUArray ty -> () # (NormalForm l, NormalForm r) => NormalForm (Either l r) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: Either l r -> () # (NormalForm a, NormalForm b) => NormalForm (a, b) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: (a, b) -> () # NormalForm (BlockN n a) Instance detailsDefined in Basement.Sized.Block MethodstoNormalForm :: BlockN n a -> () # NormalForm a => NormalForm (ListN n a) Instance detailsDefined in Basement.Sized.List MethodstoNormalForm :: ListN n a -> () # (NormalForm a, NormalForm b) => NormalForm (These a b) Instance detailsDefined in Basement.These MethodstoNormalForm :: These a b -> () # (NormalForm a, NormalForm b) => NormalForm (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple MethodstoNormalForm :: Tuple2 a b -> () # (NormalForm a, NormalForm b, NormalForm c) => NormalForm (a, b, c) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: (a, b, c) -> () # (NormalForm a, NormalForm b, NormalForm c) => NormalForm (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple MethodstoNormalForm :: Tuple3 a b c -> () # (NormalForm a, NormalForm b, NormalForm c, NormalForm d) => NormalForm (a, b, c, d) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: (a, b, c, d) -> () # (NormalForm a, NormalForm b, NormalForm c, NormalForm d) => NormalForm (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple MethodstoNormalForm :: Tuple4 a b c d -> () # (NormalForm a, NormalForm b, NormalForm c, NormalForm d, NormalForm e) => NormalForm (a, b, c, d, e) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: (a, b, c, d, e) -> () # (NormalForm a, NormalForm b, NormalForm c, NormalForm d, NormalForm e, NormalForm f) => NormalForm (a, b, c, d, e, f) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: (a, b, c, d, e, f) -> () # (NormalForm a, NormalForm b, NormalForm c, NormalForm d, NormalForm e, NormalForm f, NormalForm g) => NormalForm (a, b, c, d, e, f, g) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: (a, b, c, d, e, f, g) -> () # (NormalForm a, NormalForm b, NormalForm c, NormalForm d, NormalForm e, NormalForm f, NormalForm g, NormalForm h) => NormalForm (a, b, c, d, e, f, g, h) Instance detailsDefined in Basement.NormalForm MethodstoNormalForm :: (a, b, c, d, e, f, g, h) -> () # deepseq :: NormalForm a => a -> b -> b # force :: NormalForm a => a -> a # ## Type classes class Show a # Conversion of values to readable Strings. Derived instances of Show have the following properties, which are compatible with derived instances of Read: • The result of show is a syntactically correct Haskell expression containing only constants, given the fixity declarations in force at the point where the type is declared. It contains only the constructor names defined in the data type, parentheses, and spaces. When labelled constructor fields are used, braces, commas, field names, and equal signs are also used. • If the constructor is defined to be an infix operator, then showsPrec will produce infix applications of the constructor. • the representation will be enclosed in parentheses if the precedence of the top-level constructor in x is less than d (associativity is ignored). Thus, if d is 0 then the result is never surrounded in parentheses; if d is 11 it is always surrounded in parentheses, unless it is an atomic expression. • If the constructor is defined using record syntax, then show will produce the record-syntax form, with the fields given in the same order as the original declaration. For example, given the declarations infixr 5 :^: data Tree a = Leaf a | Tree a :^: Tree a the derived instance of Show is equivalent to instance (Show a) => Show (Tree a) where showsPrec d (Leaf m) = showParen (d > app_prec)$
showString "Leaf " . showsPrec (app_prec+1) m
where app_prec = 10

showsPrec d (u :^: v) = showParen (d > up_prec) \$
showsPrec (up_prec+1) u .
showString " :^: "      .
showsPrec (up_prec+1) v
where up_prec = 5

Note that right-associativity of :^: is ignored. For example,

• show (Leaf 1 :^: Leaf 2 :^: Leaf 3) produces the string "Leaf 1 :^: (Leaf 2 :^: Leaf 3)".

Minimal complete definition

Instances
 Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> Bool -> ShowS #show :: Bool -> String #showList :: [Bool] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> Char -> ShowS #show :: Char -> String #showList :: [Char] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> Int -> ShowS #show :: Int -> String #showList :: [Int] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsshowsPrec :: Int -> Int8 -> ShowS #show :: Int8 -> String #showList :: [Int8] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsshowsPrec :: Int -> Int16 -> ShowS #show :: Int16 -> String #showList :: [Int16] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsshowsPrec :: Int -> Int32 -> ShowS #show :: Int32 -> String #showList :: [Int32] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsshowsPrec :: Int -> Int64 -> ShowS #show :: Int64 -> String #showList :: [Int64] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowList :: [Integer] -> ShowS # Since: base-4.8.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [Natural] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowList :: [Ordering] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> Word -> ShowS #show :: Word -> String #showList :: [Word] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsshowsPrec :: Int -> Word8 -> ShowS #show :: Word8 -> String #showList :: [Word8] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsshowsPrec :: Int -> Word16 -> ShowS #showList :: [Word16] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsshowsPrec :: Int -> Word32 -> ShowS #showList :: [Word32] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsshowsPrec :: Int -> Word64 -> ShowS #showList :: [Word64] -> ShowS # Since: base-4.11.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [RuntimeRep] -> ShowS # Since: base-4.11.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [VecCount] -> ShowS # Since: base-4.11.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [VecElem] -> ShowS # Since: base-4.9.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [CallStack] -> ShowS # Since: base-4.10.0.0 Instance detailsDefined in Data.Typeable.Internal MethodsshowList :: [SomeTypeRep] -> ShowS # Show () Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> () -> ShowS #show :: () -> String #showList :: [()] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> TyCon -> ShowS #show :: TyCon -> String #showList :: [TyCon] -> ShowS # Since: base-4.9.0.0 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> Module -> ShowS #showList :: [Module] -> ShowS # Since: base-4.9.0.0 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> TrName -> ShowS #showList :: [TrName] -> ShowS # Instance detailsDefined in GHC.Show MethodsshowList :: [KindRep] -> ShowS # Since: base-4.11.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [TypeLitSort] -> ShowS # Show FD Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.FD MethodsshowsPrec :: Int -> FD -> ShowS #show :: FD -> String #showList :: [FD] -> ShowS # Show HandleType Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Handle.Types MethodsshowsPrec :: Int -> HandleType -> ShowS #show :: HandleType -> String #showList :: [HandleType] -> ShowS # Since: base-4.0.0.0 Instance detailsDefined in Data.Data MethodsshowList :: [DataType] -> ShowS # Since: base-4.0.0.0 Instance detailsDefined in Data.Data MethodsshowsPrec :: Int -> Constr -> ShowS #showList :: [Constr] -> ShowS # Since: base-4.0.0.0 Instance detailsDefined in Data.Data MethodsshowList :: [DataRep] -> ShowS # Since: base-4.0.0.0 Instance detailsDefined in Data.Data MethodsshowList :: [ConstrRep] -> ShowS # Since: base-4.0.0.0 Instance detailsDefined in Data.Data MethodsshowsPrec :: Int -> Fixity -> ShowS #showList :: [Fixity] -> ShowS # Since: base-4.10.0.0 Instance detailsDefined in GHC.Stats MethodsshowList :: [RTSStats] -> ShowS # Since: base-4.10.0.0 Instance detailsDefined in GHC.Stats MethodsshowList :: [GCDetails] -> ShowS # Since: base-2.1 Instance detailsDefined in Data.Version MethodsshowList :: [Version] -> ShowS # Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Handle MethodsshowList :: [HandlePosn] -> ShowS # Since: base-4.0 Instance detailsDefined in Control.Exception.Base MethodsshowList :: [PatternMatchFail] -> ShowS # Since: base-4.0 Instance detailsDefined in Control.Exception.Base MethodsshowList :: [RecSelError] -> ShowS # Since: base-4.0 Instance detailsDefined in Control.Exception.Base MethodsshowList :: [RecConError] -> ShowS # Since: base-4.0 Instance detailsDefined in Control.Exception.Base MethodsshowList :: [RecUpdError] -> ShowS # Since: base-4.0 Instance detailsDefined in Control.Exception.Base MethodsshowList :: [NoMethodError] -> ShowS # Since: base-4.9.0.0 Instance detailsDefined in Control.Exception.Base MethodsshowList :: [TypeError] -> ShowS # Since: base-4.0 Instance detailsDefined in Control.Exception.Base MethodsshowList :: [NonTermination] -> ShowS # Since: base-4.0 Instance detailsDefined in Control.Exception.Base MethodsshowList :: [NestedAtomically] -> ShowS # Since: base-4.2.0.0 Instance detailsDefined in GHC.Conc.Sync MethodsshowList :: [ThreadId] -> ShowS # Since: base-4.3.0.0 Instance detailsDefined in GHC.Conc.Sync MethodsshowList :: [BlockReason] -> ShowS # Since: base-4.3.0.0 Instance detailsDefined in GHC.Conc.Sync MethodsshowList :: [ThreadStatus] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CDev -> ShowS #show :: CDev -> String #showList :: [CDev] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CIno -> ShowS #show :: CIno -> String #showList :: [CIno] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CMode -> ShowS #show :: CMode -> String #showList :: [CMode] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> COff -> ShowS #show :: COff -> String #showList :: [COff] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CPid -> ShowS #show :: CPid -> String #showList :: [CPid] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CSsize -> ShowS #showList :: [CSsize] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CGid -> ShowS #show :: CGid -> String #showList :: [CGid] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CNlink -> ShowS #showList :: [CNlink] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CUid -> ShowS #show :: CUid -> String #showList :: [CUid] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CCc -> ShowS #show :: CCc -> String #showList :: [CCc] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CSpeed -> ShowS #showList :: [CSpeed] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CTcflag] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CRLim -> ShowS #show :: CRLim -> String #showList :: [CRLim] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CBlkSize] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CBlkCnt] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CClockId] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CFsBlkCnt] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CFsFilCnt] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CId -> ShowS #show :: CId -> String #showList :: [CId] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CKey -> ShowS #show :: CKey -> String #showList :: [CKey] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> CTimer -> ShowS #showList :: [CTimer] -> ShowS # Instance detailsDefined in System.Posix.Types MethodsshowsPrec :: Int -> Fd -> ShowS #show :: Fd -> String #showList :: [Fd] -> ShowS # Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [Deadlock] -> ShowS # Since: base-4.7.1.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.10.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [CompactionFailed] -> ShowS # Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [AssertionFailed] -> ShowS # Since: base-4.7.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [SomeAsyncException] -> ShowS # Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [AsyncException] -> ShowS # Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [ArrayException] -> ShowS # Since: base-4.11.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [FixIOException] -> ShowS # Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [ExitCode] -> ShowS # Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [IOErrorType] -> ShowS # Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Handle.Types MethodsshowsPrec :: Int -> Handle -> ShowS #showList :: [Handle] -> ShowS # Since: base-4.2.0.0 Instance detailsDefined in GHC.IO.Handle.Types MethodsshowList :: [BufferMode] -> ShowS # Since: base-4.3.0.0 Instance detailsDefined in GHC.IO.Handle.Types MethodsshowList :: [Newline] -> ShowS # Since: base-4.3.0.0 Instance detailsDefined in GHC.IO.Handle.Types MethodsshowList :: [NewlineMode] -> ShowS # Since: base-4.2.0.0 Instance detailsDefined in GHC.IO.Device MethodsshowList :: [SeekMode] -> ShowS # Since: base-4.3.0.0 Instance detailsDefined in GHC.IO.Encoding.Types MethodsshowList :: [TextEncoding] -> ShowS # Since: base-4.4.0.0 Instance detailsDefined in GHC.IO.Encoding.Types MethodsshowList :: [CodingProgress] -> ShowS # Since: base-4.3.0.0 Instance detailsDefined in GHC.IO MethodsshowList :: [MaskingState] -> ShowS # Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [IOException] -> ShowS # Since: base-4.0.0.0 Instance detailsDefined in GHC.Exception MethodsshowList :: [ErrorCall] -> ShowS # Since: base-4.0.0.0 Instance detailsDefined in GHC.Exception.Type MethodsshowList :: [ArithException] -> ShowS # Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal MethodsshowsPrec :: Int -> All -> ShowS #show :: All -> String #showList :: [All] -> ShowS # Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal MethodsshowsPrec :: Int -> Any -> ShowS #show :: Any -> String #showList :: [Any] -> ShowS # Since: base-4.6.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> Fixity -> ShowS #showList :: [Fixity] -> ShowS # Since: base-4.6.0.0 Instance detailsDefined in GHC.Generics MethodsshowList :: [Associativity] -> ShowS # Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowList :: [SourceUnpackedness] -> ShowS # Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowList :: [SourceStrictness] -> ShowS # Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowList :: [DecidedStrictness] -> ShowS # Since: base-4.7.0.0 Instance detailsDefined in GHC.TypeLits MethodsshowList :: [SomeSymbol] -> ShowS # Since: base-4.7.0.0 Instance detailsDefined in GHC.TypeNats MethodsshowList :: [SomeNat] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CChar -> ShowS #show :: CChar -> String #showList :: [CChar] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CSChar -> ShowS #showList :: [CSChar] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CUChar -> ShowS #showList :: [CUChar] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CShort -> ShowS #showList :: [CShort] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CUShort] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CInt -> ShowS #show :: CInt -> String #showList :: [CInt] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CUInt -> ShowS #show :: CUInt -> String #showList :: [CUInt] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CLong -> ShowS #show :: CLong -> String #showList :: [CLong] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CULong -> ShowS #showList :: [CULong] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CLLong -> ShowS #showList :: [CLLong] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CULLong] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CBool -> ShowS #show :: CBool -> String #showList :: [CBool] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CFloat -> ShowS #showList :: [CFloat] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CDouble] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CPtrdiff] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CSize -> ShowS #show :: CSize -> String #showList :: [CSize] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CWchar -> ShowS #showList :: [CWchar] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CSigAtomic] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CClock -> ShowS #showList :: [CClock] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowsPrec :: Int -> CTime -> ShowS #show :: CTime -> String #showList :: [CTime] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CUSeconds] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CSUSeconds] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CIntPtr] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CUIntPtr] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CIntMax] -> ShowS # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CUIntMax] -> ShowS # Instance detailsDefined in Foreign.Ptr MethodsshowList :: [WordPtr] -> ShowS # Instance detailsDefined in Foreign.Ptr MethodsshowsPrec :: Int -> IntPtr -> ShowS #showList :: [IntPtr] -> ShowS # Since: base-4.2.0.0 Instance detailsDefined in GHC.IO.IOMode MethodsshowsPrec :: Int -> IOMode -> ShowS #showList :: [IOMode] -> ShowS # Since: base-2.1 Instance detailsDefined in Text.Read.Lex MethodsshowsPrec :: Int -> Lexeme -> ShowS #showList :: [Lexeme] -> ShowS # Since: base-4.6.0.0 Instance detailsDefined in Text.Read.Lex MethodsshowsPrec :: Int -> Number -> ShowS #showList :: [Number] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.Unicode MethodsshowList :: [GeneralCategory] -> ShowS # Since: base-4.9.0.0 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> SrcLoc -> ShowS #showList :: [SrcLoc] -> ShowS # Since: base-3.0 Instance detailsDefined in GHC.Exception.Type MethodsshowList :: [SomeException] -> ShowS # Show ASCII7_Invalid Instance detailsDefined in Basement.String.Encoding.ASCII7 MethodsshowsPrec :: Int -> ASCII7_Invalid -> ShowS #show :: ASCII7_Invalid -> String #showList :: [ASCII7_Invalid] -> ShowS # Show ISO_8859_1_Invalid Instance detailsDefined in Basement.String.Encoding.ISO_8859_1 MethodsshowsPrec :: Int -> ISO_8859_1_Invalid -> ShowS #show :: ISO_8859_1_Invalid -> String #showList :: [ISO_8859_1_Invalid] -> ShowS # Show UTF16_Invalid Instance detailsDefined in Basement.String.Encoding.UTF16 MethodsshowsPrec :: Int -> UTF16_Invalid -> ShowS #show :: UTF16_Invalid -> String #showList :: [UTF16_Invalid] -> ShowS # Show UTF32_Invalid Instance detailsDefined in Basement.String.Encoding.UTF32 MethodsshowsPrec :: Int -> UTF32_Invalid -> ShowS #show :: UTF32_Invalid -> String #showList :: [UTF32_Invalid] -> ShowS # Instance detailsDefined in Basement.String MethodsshowList :: [Encoding] -> ShowS # Instance detailsDefined in Basement.UTF8.Base MethodsshowsPrec :: Int -> String -> ShowS #showList :: [String] -> ShowS # Instance detailsDefined in Basement.UTF8.Types MethodsshowList :: [ValidationFailure] -> ShowS # Instance detailsDefined in Basement.Types.AsciiString MethodsshowList :: [AsciiString] -> ShowS # Instance detailsDefined in Basement.Exception Methods Instance detailsDefined in Basement.Exception MethodsshowList :: [OutOfBound] -> ShowS # Instance detailsDefined in Basement.Exception MethodsshowList :: [RecastSourceSize] -> ShowS # Instance detailsDefined in Basement.Exception Methods Instance detailsDefined in Basement.Exception MethodsshowList :: [InvalidRecast] -> ShowS # Instance detailsDefined in Basement.Exception Methods Instance detailsDefined in Basement.Types.OffsetSize MethodsshowList :: [FileSize] -> ShowS # Instance detailsDefined in Basement.Types.Word256 MethodsshowList :: [Word256] -> ShowS # Instance detailsDefined in Basement.Types.Word128 MethodsshowList :: [Word128] -> ShowS # Instance detailsDefined in Basement.Types.Char7 MethodsshowsPrec :: Int -> Char7 -> ShowS #show :: Char7 -> String #showList :: [Char7] -> ShowS # Instance detailsDefined in Basement.Endianness MethodsshowList :: [Endianness] -> ShowS # Source # Instance detailsDefined in Foundation.Array.Bitmap MethodsshowsPrec :: Int -> Bitmap -> ShowS #showList :: [Bitmap] -> ShowS # Source # Instance detailsDefined in Foundation.Partial MethodsshowList :: [PartialError] -> ShowS # Source # Instance detailsDefined in Foundation.Parser MethodsshowsPrec :: Int -> And -> ShowS #show :: And -> String #showList :: [And] -> ShowS # Source # Instance detailsDefined in Foundation.Parser MethodsshowList :: [Condition] -> ShowS # Source # Instance detailsDefined in Foundation.Format.CSV.Types MethodsshowsPrec :: Int -> CSV -> ShowS #show :: CSV -> String #showList :: [CSV] -> ShowS # Source # Instance detailsDefined in Foundation.Format.CSV.Types MethodsshowsPrec :: Int -> Row -> ShowS #show :: Row -> String #showList :: [Row] -> ShowS # Source # Instance detailsDefined in Foundation.Format.CSV.Types MethodsshowList :: [Escaping] -> ShowS # Source # Instance detailsDefined in Foundation.Format.CSV.Types MethodsshowsPrec :: Int -> Field -> ShowS #show :: Field -> String #showList :: [Field] -> ShowS # Source # Instance detailsDefined in Foundation.System.Info MethodsshowsPrec :: Int -> Arch -> ShowS #show :: Arch -> String #showList :: [Arch] -> ShowS # Source # Instance detailsDefined in Foundation.System.Info MethodsshowsPrec :: Int -> OS -> ShowS #show :: OS -> String #showList :: [OS] -> ShowS # Source # Instance detailsDefined in Foundation.Time.Types MethodsshowList :: [Seconds] -> ShowS # Source # Instance detailsDefined in Foundation.Time.Types MethodsshowList :: [NanoSeconds] -> ShowS # Source # Instance detailsDefined in Foundation.Network.IPv6 MethodsshowsPrec :: Int -> IPv6 -> ShowS #show :: IPv6 -> String #showList :: [IPv6] -> ShowS # Source # Instance detailsDefined in Foundation.Network.IPv4 MethodsshowsPrec :: Int -> IPv4 -> ShowS #show :: IPv4 -> String #showList :: [IPv4] -> ShowS # Source # Instance detailsDefined in Foundation.UUID MethodsshowsPrec :: Int -> UUID -> ShowS #show :: UUID -> String #showList :: [UUID] -> ShowS # Source # Instance detailsDefined in Foundation.VFS.FilePath MethodsshowList :: [FileName] -> ShowS # Source # Instance detailsDefined in Foundation.VFS.FilePath MethodsshowList :: [FilePath] -> ShowS # Source # Instance detailsDefined in Foundation.VFS.FilePath MethodsshowList :: [Relativity] -> ShowS # Show a => Show [a] Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> [a] -> ShowS #show :: [a] -> String #showList :: [[a]] -> ShowS # Show a => Show (Maybe a) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> Maybe a -> ShowS #show :: Maybe a -> String #showList :: [Maybe a] -> ShowS # Show a => Show (Ratio a) Since: base-2.0.1 Instance detailsDefined in GHC.Real MethodsshowsPrec :: Int -> Ratio a -> ShowS #show :: Ratio a -> String #showList :: [Ratio a] -> ShowS # Show (Ptr a) Since: base-2.1 Instance detailsDefined in GHC.Ptr MethodsshowsPrec :: Int -> Ptr a -> ShowS #show :: Ptr a -> String #showList :: [Ptr a] -> ShowS # Show (FunPtr a) Since: base-2.1 Instance detailsDefined in GHC.Ptr MethodsshowsPrec :: Int -> FunPtr a -> ShowS #show :: FunPtr a -> String #showList :: [FunPtr a] -> ShowS # Show p => Show (Par1 p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> Par1 p -> ShowS #show :: Par1 p -> String #showList :: [Par1 p] -> ShowS # Show a => Show (Min a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> Min a -> ShowS #show :: Min a -> String #showList :: [Min a] -> ShowS # Show a => Show (Max a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> Max a -> ShowS #show :: Max a -> String #showList :: [Max a] -> ShowS # Show a => Show (First a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> First a -> ShowS #show :: First a -> String #showList :: [First a] -> ShowS # Show a => Show (Last a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> Last a -> ShowS #show :: Last a -> String #showList :: [Last a] -> ShowS # Show m => Show (WrappedMonoid m) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> WrappedMonoid m -> ShowS #show :: WrappedMonoid m -> String #showList :: [WrappedMonoid m] -> ShowS # Show a => Show (Option a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> Option a -> ShowS #show :: Option a -> String #showList :: [Option a] -> ShowS # Show a => Show (ZipList a) Since: base-4.7.0.0 Instance detailsDefined in Control.Applicative MethodsshowsPrec :: Int -> ZipList a -> ShowS #show :: ZipList a -> String #showList :: [ZipList a] -> ShowS # Show a => Show (Identity a) This instance would be equivalent to the derived instances of the Identity newtype if the runIdentity field were removedSince: base-4.8.0.0 Instance detailsDefined in Data.Functor.Identity MethodsshowsPrec :: Int -> Identity a -> ShowS #show :: Identity a -> String #showList :: [Identity a] -> ShowS # Since: base-2.1 Instance detailsDefined in GHC.ForeignPtr MethodsshowsPrec :: Int -> ForeignPtr a -> ShowS #show :: ForeignPtr a -> String #showList :: [ForeignPtr a] -> ShowS # Show a => Show (First a) Since: base-2.1 Instance detailsDefined in Data.Monoid MethodsshowsPrec :: Int -> First a -> ShowS #show :: First a -> String #showList :: [First a] -> ShowS # Show a => Show (Last a) Since: base-2.1 Instance detailsDefined in Data.Monoid MethodsshowsPrec :: Int -> Last a -> ShowS #show :: Last a -> String #showList :: [Last a] -> ShowS # Show a => Show (Dual a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal MethodsshowsPrec :: Int -> Dual a -> ShowS #show :: Dual a -> String #showList :: [Dual a] -> ShowS # Show a => Show (Sum a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal MethodsshowsPrec :: Int -> Sum a -> ShowS #show :: Sum a -> String #showList :: [Sum a] -> ShowS # Show a => Show (Product a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal MethodsshowsPrec :: Int -> Product a -> ShowS #show :: Product a -> String #showList :: [Product a] -> ShowS # Show a => Show (Down a) Since: base-4.7.0.0 Instance detailsDefined in Data.Ord MethodsshowsPrec :: Int -> Down a -> ShowS #show :: Down a -> String #showList :: [Down a] -> ShowS # Show a => Show (NonEmpty a) Since: base-4.11.0.0 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> NonEmpty a -> ShowS #show :: NonEmpty a -> String #showList :: [NonEmpty a] -> ShowS # Show a => Show (Array a) Instance detailsDefined in Basement.BoxedArray MethodsshowsPrec :: Int -> Array a -> ShowS #show :: Array a -> String #showList :: [Array a] -> ShowS # (PrimType ty, Show ty) => Show (UArray ty) Instance detailsDefined in Basement.UArray.Base MethodsshowsPrec :: Int -> UArray ty -> ShowS #show :: UArray ty -> String #showList :: [UArray ty] -> ShowS # Show (Bits n) Instance detailsDefined in Basement.Bits MethodsshowsPrec :: Int -> Bits n -> ShowS #show :: Bits n -> String #showList :: [Bits n] -> ShowS # (PrimType ty, Show ty) => Show (Block ty) Instance detailsDefined in Basement.Block.Base MethodsshowsPrec :: Int -> Block ty -> ShowS #show :: Block ty -> String #showList :: [Block ty] -> ShowS # Show a => Show (NonEmpty a) Instance detailsDefined in Basement.NonEmpty MethodsshowsPrec :: Int -> NonEmpty a -> ShowS #show :: NonEmpty a -> String #showList :: [NonEmpty a] -> ShowS # Show (Offset ty) Instance detailsDefined in Basement.Types.OffsetSize MethodsshowsPrec :: Int -> Offset ty -> ShowS #show :: Offset ty -> String #showList :: [Offset ty] -> ShowS # Show (CountOf ty) Instance detailsDefined in Basement.Types.OffsetSize MethodsshowsPrec :: Int -> CountOf ty -> ShowS #show :: CountOf ty -> String #showList :: [CountOf ty] -> ShowS # Show (Zn64 n) Instance detailsDefined in Basement.Bounded MethodsshowsPrec :: Int -> Zn64 n -> ShowS #show :: Zn64 n -> String #showList :: [Zn64 n] -> ShowS # Show (Zn n) Instance detailsDefined in Basement.Bounded MethodsshowsPrec :: Int -> Zn n -> ShowS #show :: Zn n -> String #showList :: [Zn n] -> ShowS # Show (FinalPtr a) Instance detailsDefined in Basement.FinalPtr MethodsshowsPrec :: Int -> FinalPtr a -> ShowS #show :: FinalPtr a -> String #showList :: [FinalPtr a] -> ShowS # Show a => Show (LE a) Instance detailsDefined in Basement.Endianness MethodsshowsPrec :: Int -> LE a -> ShowS #show :: LE a -> String #showList :: [LE a] -> ShowS # Show a => Show (BE a) Instance detailsDefined in Basement.Endianness MethodsshowsPrec :: Int -> BE a -> ShowS #show :: BE a -> String #showList :: [BE a] -> ShowS # Show a => Show (DList a) Source # Instance detailsDefined in Foundation.List.DList MethodsshowsPrec :: Int -> DList a -> ShowS #show :: DList a -> String #showList :: [DList a] -> ShowS # (PrimType ty, Show ty) => Show (ChunkedUArray ty) Source # Instance detailsDefined in Foundation.Array.Chunked.Unboxed MethodsshowsPrec :: Int -> ChunkedUArray ty -> ShowS #show :: ChunkedUArray ty -> String #showList :: [ChunkedUArray ty] -> ShowS # Show input => Show (ParseError input) Source # Instance detailsDefined in Foundation.Parser MethodsshowsPrec :: Int -> ParseError input -> ShowS #show :: ParseError input -> String #showList :: [ParseError input] -> ShowS # Source # Instance detailsDefined in Foundation.Parser MethodsshowList :: [ParseError String] -> ShowS # (Show a, Show b) => Show (Either a b) Since: base-3.0 Instance detailsDefined in Data.Either MethodsshowsPrec :: Int -> Either a b -> ShowS #show :: Either a b -> String #showList :: [Either a b] -> ShowS # Show (V1 p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> V1 p -> ShowS #show :: V1 p -> String #showList :: [V1 p] -> ShowS # Show (U1 p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> U1 p -> ShowS #show :: U1 p -> String #showList :: [U1 p] -> ShowS # Show (TypeRep a) Instance detailsDefined in Data.Typeable.Internal MethodsshowsPrec :: Int -> TypeRep a -> ShowS #show :: TypeRep a -> String #showList :: [TypeRep a] -> ShowS # (Show a, Show b) => Show (a, b) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b) -> ShowS #show :: (a, b) -> String #showList :: [(a, b)] -> ShowS # (Ix a, Show a, Show b) => Show (Array a b) Since: base-2.1 Instance detailsDefined in GHC.Arr MethodsshowsPrec :: Int -> Array a b -> ShowS #show :: Array a b -> String #showList :: [Array a b] -> ShowS # (Show a, Show b) => Show (Arg a b) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> Arg a b -> ShowS #show :: Arg a b -> String #showList :: [Arg a b] -> ShowS # Show (Proxy s) Since: base-4.7.0.0 Instance detailsDefined in Data.Proxy MethodsshowsPrec :: Int -> Proxy s -> ShowS #show :: Proxy s -> String #showList :: [Proxy s] -> ShowS # Show (ST s a) Since: base-2.1 Instance detailsDefined in GHC.ST MethodsshowsPrec :: Int -> ST s a -> ShowS #show :: ST s a -> String #showList :: [ST s a] -> ShowS # (PrimType a, Show a) => Show (BlockN n a) Instance detailsDefined in Basement.Sized.Block MethodsshowsPrec :: Int -> BlockN n a -> ShowS #show :: BlockN n a -> String #showList :: [BlockN n a] -> ShowS # Show a => Show (ListN n a) Instance detailsDefined in Basement.Sized.List MethodsshowsPrec :: Int -> ListN n a -> ShowS #show :: ListN n a -> String #showList :: [ListN n a] -> ShowS # (Show a, Show b) => Show (These a b) Instance detailsDefined in Basement.These MethodsshowsPrec :: Int -> These a b -> ShowS #show :: These a b -> String #showList :: [These a b] -> ShowS # (Show k, Show input) => Show (Result input k) Source # Instance detailsDefined in Foundation.Parser MethodsshowsPrec :: Int -> Result input k -> ShowS #show :: Result input k -> String #showList :: [Result input k] -> ShowS # (Show a, Show b) => Show (Tuple2 a b) Source # Instance detailsDefined in Foundation.Tuple MethodsshowsPrec :: Int -> Tuple2 a b -> ShowS #show :: Tuple2 a b -> String #showList :: [Tuple2 a b] -> ShowS # Show (f p) => Show (Rec1 f p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> Rec1 f p -> ShowS #show :: Rec1 f p -> String #showList :: [Rec1 f p] -> ShowS # Show (URec Char p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> URec Char p -> ShowS #show :: URec Char p -> String #showList :: [URec Char p] -> ShowS # Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> URec Double p -> ShowS #show :: URec Double p -> String #showList :: [URec Double p] -> ShowS # Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> URec Float p -> ShowS #show :: URec Float p -> String #showList :: [URec Float p] -> ShowS # Show (URec Int p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> URec Int p -> ShowS #show :: URec Int p -> String #showList :: [URec Int p] -> ShowS # Show (URec Word p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> URec Word p -> ShowS #show :: URec Word p -> String #showList :: [URec Word p] -> ShowS # (Show a, Show b, Show c) => Show (a, b, c) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c) -> ShowS #show :: (a, b, c) -> String #showList :: [(a, b, c)] -> ShowS # Show a => Show (Const a b) This instance would be equivalent to the derived instances of the Const newtype if the runConst field were removedSince: base-4.8.0.0 Instance detailsDefined in Data.Functor.Const MethodsshowsPrec :: Int -> Const a b -> ShowS #show :: Const a b -> String #showList :: [Const a b] -> ShowS # Show (f a) => Show (Ap f a) Since: base-4.12.0.0 Instance detailsDefined in Data.Monoid MethodsshowsPrec :: Int -> Ap f a -> ShowS #show :: Ap f a -> String #showList :: [Ap f a] -> ShowS # Show (f a) => Show (Alt f a) Since: base-4.8.0.0 Instance detailsDefined in Data.Semigroup.Internal MethodsshowsPrec :: Int -> Alt f a -> ShowS #show :: Alt f a -> String #showList :: [Alt f a] -> ShowS # Show (Coercion a b) Since: base-4.7.0.0 Instance detailsDefined in Data.Type.Coercion MethodsshowsPrec :: Int -> Coercion a b -> ShowS #show :: Coercion a b -> String #showList :: [Coercion a b] -> ShowS # Show (a :~: b) Since: base-4.7.0.0 Instance detailsDefined in Data.Type.Equality MethodsshowsPrec :: Int -> (a :~: b) -> ShowS #show :: (a :~: b) -> String #showList :: [a :~: b] -> ShowS # (Show a, Show b, Show c) => Show (Tuple3 a b c) Source # Instance detailsDefined in Foundation.Tuple MethodsshowsPrec :: Int -> Tuple3 a b c -> ShowS #show :: Tuple3 a b c -> String #showList :: [Tuple3 a b c] -> ShowS # Show c => Show (K1 i c p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> K1 i c p -> ShowS #show :: K1 i c p -> String #showList :: [K1 i c p] -> ShowS # (Show (f p), Show (g p)) => Show ((f :+: g) p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> (f :+: g) p -> ShowS #show :: (f :+: g) p -> String #showList :: [(f :+: g) p] -> ShowS # (Show (f p), Show (g p)) => Show ((f :*: g) p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> (f :*: g) p -> ShowS #show :: (f :*: g) p -> String #showList :: [(f :*: g) p] -> ShowS # (Show a, Show b, Show c, Show d) => Show (a, b, c, d) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d) -> ShowS #show :: (a, b, c, d) -> String #showList :: [(a, b, c, d)] -> ShowS # Show (a :~~: b) Since: base-4.10.0.0 Instance detailsDefined in Data.Type.Equality MethodsshowsPrec :: Int -> (a :~~: b) -> ShowS #show :: (a :~~: b) -> String #showList :: [a :~~: b] -> ShowS # (Show a, Show b, Show c, Show d) => Show (Tuple4 a b c d) Source # Instance detailsDefined in Foundation.Tuple MethodsshowsPrec :: Int -> Tuple4 a b c d -> ShowS #show :: Tuple4 a b c d -> String #showList :: [Tuple4 a b c d] -> ShowS # Show (f p) => Show (M1 i c f p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> M1 i c f p -> ShowS #show :: M1 i c f p -> String #showList :: [M1 i c f p] -> ShowS # Show (f (g p)) => Show ((f :.: g) p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> (f :.: g) p -> ShowS #show :: (f :.: g) p -> String #showList :: [(f :.: g) p] -> ShowS # (Show a, Show b, Show c, Show d, Show e) => Show (a, b, c, d, e) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e) -> ShowS #show :: (a, b, c, d, e) -> String #showList :: [(a, b, c, d, e)] -> ShowS # (Show a, Show b, Show c, Show d, Show e, Show f) => Show (a, b, c, d, e, f) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f) -> ShowS #show :: (a, b, c, d, e, f) -> String #showList :: [(a, b, c, d, e, f)] -> ShowS # (Show a, Show b, Show c, Show d, Show e, Show f, Show g) => Show (a, b, c, d, e, f, g) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g) -> ShowS #show :: (a, b, c, d, e, f, g) -> String #showList :: [(a, b, c, d, e, f, g)] -> ShowS # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h) => Show (a, b, c, d, e, f, g, h) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h) -> ShowS #show :: (a, b, c, d, e, f, g, h) -> String #showList :: [(a, b, c, d, e, f, g, h)] -> ShowS # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i) => Show (a, b, c, d, e, f, g, h, i) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i) -> ShowS #show :: (a, b, c, d, e, f, g, h, i) -> String #showList :: [(a, b, c, d, e, f, g, h, i)] -> ShowS # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j) => Show (a, b, c, d, e, f, g, h, i, j) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j) -> ShowS #show :: (a, b, c, d, e, f, g, h, i, j) -> String #showList :: [(a, b, c, d, e, f, g, h, i, j)] -> ShowS # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j, Show k) => Show (a, b, c, d, e, f, g, h, i, j, k) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k) -> ShowS #show :: (a, b, c, d, e, f, g, h, i, j, k) -> String #showList :: [(a, b, c, d, e, f, g, h, i, j, k)] -> ShowS # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j, Show k, Show l) => Show (a, b, c, d, e, f, g, h, i, j, k, l) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l) -> ShowS #show :: (a, b, c, d, e, f, g, h, i, j, k, l) -> String #showList :: [(a, b, c, d, e, f, g, h, i, j, k, l)] -> ShowS # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j, Show k, Show l, Show m) => Show (a, b, c, d, e, f, g, h, i, j, k, l, m) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> ShowS #show :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> String #showList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m)] -> ShowS # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j, Show k, Show l, Show m, Show n) => Show (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> ShowS #show :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> String #showList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m, n)] -> ShowS # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j, Show k, Show l, Show m, Show n, Show o) => Show (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> ShowS #show :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> String #showList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)] -> ShowS #

show :: Show a => a -> String #

Use the Show class to create a String.

Note that this is not efficient, since an intermediate [Char] is going to be created before turning into a real String.

class Eq a => Ord a where #

The Ord class is used for totally ordered datatypes.

Instances of Ord can be derived for any user-defined datatype whose constituent types are in Ord. The declared order of the constructors in the data declaration determines the ordering in derived Ord instances. The Ordering datatype allows a single comparison to determine the precise ordering of two objects.

The Haskell Report defines no laws for Ord. However, <= is customarily expected to implement a non-strict partial order and have the following properties:

Transitivity
if x <= y && y <= z = True, then x <= z = True
Reflexivity
x <= x = True
Antisymmetry
if x <= y && y <= x = True, then x == y = True

Note that the following operator interactions are expected to hold:

1. x >= y = y <= x
2. x < y = x <= y && x /= y
3. x > y = y < x
4. x < y = compare x y == LT
5. x > y = compare x y == GT
6. x == y = compare x y == EQ
7. min x y == if x <= y then x else y = True
8. max x y == if x >= y then x else y = True

Minimal complete definition: either compare or <=. Using compare can be more efficient for complex types.

Minimal complete definition

Methods

compare :: a -> a -> Ordering #

(<) :: a -> a -> Bool infix 4 #

(<=) :: a -> a -> Bool infix 4 #

(>) :: a -> a -> Bool infix 4 #

(>=) :: a -> a -> Bool infix 4 #

max :: a -> a -> a #

min :: a -> a -> a #

Instances