hyper-0.1.0.3: Display class for the HyperHaskell graphical Haskell interpreter

Safe HaskellNone
LanguageHaskell98

Hyper.Internal

Contents

Synopsis

Synopsis

Internal data types used by the HyperHaskell back-end to analyze values constructed with the Hyper module.

Documentation

data Graphic Source #

A graphical representation of data.

Constructors

Graphic 

Fields

Instances
NFData Graphic Source # 
Instance details

Defined in Hyper.Internal

Methods

rnf :: Graphic -> () #

Display Graphic Source # 
Instance details

Defined in Hyper.Internal

string :: String -> Graphic Source #

Render a String as a Graphic.

html :: Text -> Graphic Source #

Render arbitrary HTML code as a Graphic.

NOTE: This function does not do check whether the input is well-formed HTML.

NOTE: This function will probably deprecated once we figure out how to do this properly, but for now, just use it.

class Display a where Source #

Class for displaying Haskell values.

Minimal complete definition

display

Methods

display :: a -> Graphic Source #

Instances
Display Bool Source # 
Instance details

Defined in Hyper.Internal

Methods

display :: Bool -> Graphic Source #

Display Double Source # 
Instance details

Defined in Hyper.Internal

Display Int Source # 
Instance details

Defined in Hyper.Internal

Methods

display :: Int -> Graphic Source #

Display Integer Source # 
Instance details

Defined in Hyper.Internal

Display () Source # 
Instance details

Defined in Hyper.Internal

Methods

display :: () -> Graphic Source #

Display String Source # 
Instance details

Defined in Hyper.Internal

Display Graphic Source # 
Instance details

Defined in Hyper.Internal

Display [Int] Source # 
Instance details

Defined in Hyper.Internal

Methods

display :: [Int] -> Graphic Source #

Display [String] Source # 
Instance details

Defined in Hyper.Internal

Methods

display :: [String] -> Graphic Source #

displayIO :: DisplayIO a => a -> IO Graphic Source #