-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Display class for the HyperHaskell graphical Haskell interpreter -- -- This package is part of the HyperHaskell project and provides -- the Display class for visualizing and pretty printing Haskell -- values. @package hyper @version 0.2.1.1 module Hyper.Internal -- | A graphical representation of data. data Graphic Graphic :: Text -> Graphic [gHtml] :: Graphic -> Text -- | Render a String as a Graphic. string :: String -> Graphic -- | 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. html :: Text -> Graphic -- | Class for displaying Haskell values. class Display a display :: Display a => a -> Graphic displayIO :: Display a => a -> IO Graphic finalizeSession :: IO () addFinalizerSession :: IO () -> IO () instance Hyper.Internal.Display () instance Hyper.Internal.Display Hyper.Internal.Graphic instance Hyper.Internal.Display GHC.Types.Bool instance Hyper.Internal.Display GHC.Types.Double instance Hyper.Internal.Display GHC.Integer.Type.Integer instance Hyper.Internal.Display GHC.Types.Int instance Hyper.Internal.Display GHC.Base.String instance Hyper.Internal.Display [GHC.Types.Int] instance Hyper.Internal.Display [GHC.Base.String] instance Hyper.Internal.Display a => Hyper.Internal.Display (GHC.Types.IO a) instance Control.DeepSeq.NFData Hyper.Internal.Graphic module Hyper -- | A graphical representation of data. data Graphic -- | Render a String as a Graphic. string :: String -> Graphic -- | 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. html :: Text -> Graphic -- | Class for displaying Haskell values. class Display a display :: Display a => a -> Graphic displayIO :: Display a => a -> IO Graphic displayIO :: Display a => a -> IO Graphic addFinalizerSession :: IO () -> IO ()