Safe Haskell | None |
---|---|
Language | Haskell98 |
Present
Contents
Description
Generate presentations for types.
- presentIt :: Q Exp
- presentName :: Name -> Q Exp
- presentType :: Q Type -> Q Exp
- toShow :: Bool -> Value -> String
- toWHNF :: [Integer] -> Value -> WHNF
- whnfJson :: WHNF -> String
- presentShow :: Q Type -> Q Exp
- data Value
- = DataValue String String [Value]
- | TypeVariableValue String
- | PrimitiveValue String
- | FunctionValue String
- | CharValue String String
- | IntegerValue String String
- | ChoiceValue String [(String, Value)]
- | RecordValue String String [(String, Value)]
- | ListValue String [Value]
- | StringValue String String
- | TupleValue String [Value]
- | ExceptionValue String String
- data WHNF
- = DataWHNF String String [(String, [Integer])]
- | TypeVariableWHNF String
- | PrimitiveWHNF String
- | FunctionWHNF String
- | CharWHNF String String
- | IntegerWHNF String String
- | ChoiceWHNF String [(String, [Integer])]
- | RecordWHNF String String [(String, String, [Integer])]
- | ListConsWHNF String [Integer] [Integer]
- | ListEndWHNF String
- | StringWHNF String String
- | TupleWHNF String [(String, [Integer])]
- | ExceptionWHNF String String
- class Present0 a where
- class Present1 a where
- class Present2 a where
- class Present3 a where
- class Present4 a where
- class Present5 a where
- class Present6 a where
Presenting functions
Presentation mediums
Arguments
:: [Integer] | Cursor. |
-> Value | Value to cursor into. |
-> WHNF | A WHNF presentation of the value at |
Produce a presentation of the value to WHNF.
Debugging convenience functions
Types
Constructors
A presentation of a value up to WHNF.
Constructors