Module

Neon.Class.HasInspect

Package
purescript-neon
Repository
tfausak/purescript-neon

#HasInspect Source

class HasInspect a  where

Represents types that can be converting to a string. This is typically used for debugging. The result of inspect x should be a valid PureScript expression.

inspect 123 -- "123"
inspect (Just 123) -- "Just (123)"

The instance for functions and objects do not return valid expressions. This is because there is no way in general to generate an expression for them.

inspect identity -- "{- Function -}"
inspect {} -- "{- Object -}"

Members

Instances