Haskell Hierarchical Libraries (base package)ContentsIndex
Data.Either
Portability portable
Stability experimental
Maintainer libraries@haskell.org
Description
The Either type, and associated operations.
Synopsis
data Either a b
= Left a
| Right b
either :: (a -> c) -> (b -> c) -> Either a b -> c
Documentation
data Either a b

The Either type represents values with two possibilities: a value of type Either a b is either Left a or Right b.

The Either type is sometimes used to represent a value which is either correct or an error8 >

Stability experimental
Maintainer libraries@haskell.org
Contents
The Dynamic type
Converting to and from Dynamic
Applying functions of dynamic type
Description

The Dynamic interface provides basic support for dynamic types.

Operations for injecting values of arbitrary type into a dynamically typed value, Dynamic, are provided, together with operations for converting dynamic values into a concrete (monomorphic) type.

Synopsis
module Data.Typeable
data Dynamic
toDyn :: Typeable a => a -> Dynamic
fromDyn :: Typeable a => Dynamic -> a -> a
fromDynamic :: Typeable a => Dynamic -> Maybe a
dynApply :: Dynamic -> Dynamic -> Maybe Dynamic
dynApp :: Dynamic -> Dynamic -> Dynamic
Documentationmodule Data.T