xmobar

Portabilityunportable
Stabilityunstable
MaintainerJose A. Ortega Ruiz <jao@gnu.org>
Safe HaskellNone

Runnable

Description

The existential type to store the list of commands to be executed. I must thank Claus Reinke for the help in understanding the mysteries of reading existential types. The Read instance of Runnable must be credited to him.

See here: http://www.haskell.org/pipermail/haskell-cafe/2007-July/028227.html

Synopsis

Documentation

data Runnable

Constructors

forall r . (Exec r, Read r, Show r) => Run r 

Instances

Read Runnable 
Show Runnable 
Exec Runnable 
(Show t, Read t, Exec t, ReadAsAnyOf ts Runnable) => ReadAsAnyOf (t, ts) Runnable 

class ReadAsAnyOf ts ex where

Methods

readAsAnyOf :: ts -> ReadPrec ex

Reads an existential type as any of hidden types ts

Instances

ReadAsAnyOf () ex 
(Show t, Read t, Exec t, ReadAsAnyOf ts Runnable) => ReadAsAnyOf (t, ts) Runnable 

readRunnable :: ReadPrec Runnable

The Read parser for the Runnable existential type. It needs an undefined with a type signature containing the list of all possible types hidden within Runnable. See runnableTypes. Each hidden type must have a Read instance.